CVE-2021-32740 Regular Expression Denial of Service in Addressable templates
- Published
- Updated
- Exploit status
- Proof-of-concept only
- Technology
- UbuntuDebian
Description
Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. An uncontrolled resource consumption vulnerability exists after version 2.3.0 through version 2.7.0. Within the URI template implementation in Addressable, a maliciously crafted template may result in uncontrolled resource consumption, leading to denial of service when matched against a URI. In typical usage, templates would not normally be read from untrusted user input, but nonetheless, no previous security advisory for Addressable has cautioned against doing this. Users of the parsing capabilities in Addressable but not the URI template capabilities are unaffected. The vulnerability is patched in version 2.8.0. As a workaround, only create Template objects from trusted sources that have been validated not to produce catastrophic backtracking.
Upgrade path
20 packages: 15 fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/ruby-addressable(Ubuntu Pro 16.04) | = 2.3.8-1; = 2.3.8-1ubuntu0.1~esm1; All versions | No fix listed | No fix yet |
| ubuntu/ruby-addressable(Ubuntu Pro 18.04) | = 2.5.1-2; = 2.5.2-1; = 2.5.2-1ubuntu0.1~esm1; All versions | No fix listed | No fix yet |
| ubuntu/ruby-addressable(Ubuntu Pro 20.04) | = 2.5.2-1; = 2.7.0-1; = 2.7.0-1ubuntu0.1~esm1; All versions | No fix listed | No fix yet |
| addressable project addressable | >= 2.3.0, < 2.8.0 | 2.8.0 | Fixed |
| alpine/ruby-addressable(Alpine v3.15) | >= 2.3.0, < 2.8.0-r0 | 2.8.0-r0 | Fixed |
| alpine/ruby-addressable(Alpine v3.16) | >= 2.3.0, < 2.8.0-r0 | 2.8.0-r0 | Fixed |
| alpine/ruby-addressable(Alpine v3.17) | >= 2.3.0, < 2.8.0-r0 | 2.8.0-r0 | Fixed |
| alpine/ruby-addressable(Alpine v3.18) | >= 2.3.0, < 2.8.0-r0 | 2.8.0-r0 | Fixed |
| alpine/ruby-addressable(Alpine v3.19) | >= 2.3.0, < 2.8.0-r0 | 2.8.0-r0 | Fixed |
| alpine/ruby-addressable(Alpine v3.20) | >= 2.3.0, < 2.8.0-r0 | 2.8.0-r0 | Fixed |
| alpine/ruby-addressable(Alpine v3.21) | >= 2.3.0, < 2.8.0-r0 | 2.8.0-r0 | Fixed |
| alpine/ruby-addressable(Alpine v3.22) | >= 2.3.0, < 2.8.0-r0 | 2.8.0-r0 | Fixed |
| alpine/ruby-addressable(Alpine v3.23) | >= 2.3.0, < 2.8.0-r0 | 2.8.0-r0 | Fixed |
| alpine/ruby-addressable(Alpine v3.24) | >= 2.3.0, < 2.8.0-r0 | 2.8.0-r0 | Fixed |
| debian/ruby-addressable(Debian 12) | < 2.7.0-2 | 2.7.0-2 | Fixed |
| debian/ruby-addressable(Debian 13) | < 2.7.0-2 | 2.7.0-2 | Fixed |
| debian/ruby-addressable(Debian 14) | < 2.7.0-2 | 2.7.0-2 | Fixed |
| rubygems addressable(RubyGems) | = 2.3.2; = 2.3.3; = 2.3.4; = 2.3.5 +11 more | 2.8.0 | Fixed |
| fedoraproject fedora | = 33; = 34 | No fix listed | Versions listed |
| sporkmonger addressable | = > 2.3.0, <= 2.7.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems addressable(RubyGems) | >= 2.3.0, < 2.8.0 | 2.8.0 |
| rubygems addressable(RubyGems) | = 2.3.2 | No fix listed |
| rubygems addressable(RubyGems) | = 2.3.3 | No fix listed |
| rubygems addressable(RubyGems) | = 2.3.4 | No fix listed |
| rubygems addressable(RubyGems) | = 2.3.5 | No fix listed |
| rubygems addressable(RubyGems) | = 2.3.6 | No fix listed |
| rubygems addressable(RubyGems) | = 2.3.7 | No fix listed |
| rubygems addressable(RubyGems) | = 2.3.8 | No fix listed |
| rubygems addressable(RubyGems) | = 2.4.0 | No fix listed |
| rubygems addressable(RubyGems) | = 2.5.0 | No fix listed |
| rubygems addressable(RubyGems) | = 2.5.1 | No fix listed |
| rubygems addressable(RubyGems) | = 2.5.2 | No fix listed |
| rubygems addressable(RubyGems) | = 2.6.0 | No fix listed |
| rubygems addressable(RubyGems) | = 2.7.0 | No fix listed |
| debian/ruby-addressable(Debian:12) | < 2.7.0-2 | 2.7.0-2 |
| debian/ruby-addressable(Debian:13) | < 2.7.0-2 | 2.7.0-2 |
| debian/ruby-addressable(Debian:14) | < 2.7.0-2 | 2.7.0-2 |
| rubygems addressable(RubyGems) | >= 2.3.0, <= 2.7.0 | No fix listed |
| addressable project addressable | >= 2.3.0, < 2.8.0 | 2.8.0 |
| fedoraproject fedora | = 33 | No fix listed |
| fedoraproject fedora | = 34 | No fix listed |
| alpine/ruby-addressable(Alpine:v3.15) | >= 2.3.0, < 2.8.0-r0 | 2.8.0-r0 |
| alpine/ruby-addressable(Alpine:v3.16) | >= 2.3.0, < 2.8.0-r0 | 2.8.0-r0 |
| alpine/ruby-addressable(Alpine:v3.17) | >= 2.3.0, < 2.8.0-r0 | 2.8.0-r0 |
| alpine/ruby-addressable(Alpine:v3.18) | >= 2.3.0, < 2.8.0-r0 | 2.8.0-r0 |
Show 18 more
| Product | Affected versions | Fixed in |
|---|---|---|
| alpine/ruby-addressable(Alpine:v3.19) | >= 2.3.0, < 2.8.0-r0 | 2.8.0-r0 |
| alpine/ruby-addressable(Alpine:v3.20) | >= 2.3.0, < 2.8.0-r0 | 2.8.0-r0 |
| alpine/ruby-addressable(Alpine:v3.21) | >= 2.3.0, < 2.8.0-r0 | 2.8.0-r0 |
| alpine/ruby-addressable(Alpine:v3.22) | >= 2.3.0, < 2.8.0-r0 | 2.8.0-r0 |
| alpine/ruby-addressable(Alpine:v3.23) | >= 2.3.0, < 2.8.0-r0 | 2.8.0-r0 |
| alpine/ruby-addressable(Alpine:v3.24) | >= 2.3.0, < 2.8.0-r0 | 2.8.0-r0 |
| sporkmonger addressable | = > 2.3.0, <= 2.7.0 | No fix listed |
| ubuntu/ruby-addressable(Ubuntu:Pro:16.04) | All versions | No fix listed |
| ubuntu/ruby-addressable(Ubuntu:Pro:16.04) | = 2.3.8-1 | No fix listed |
| ubuntu/ruby-addressable(Ubuntu:Pro:16.04) | = 2.3.8-1ubuntu0.1~esm1 | No fix listed |
| ubuntu/ruby-addressable(Ubuntu:Pro:18.04) | All versions | No fix listed |
| ubuntu/ruby-addressable(Ubuntu:Pro:18.04) | = 2.5.1-2 | No fix listed |
| ubuntu/ruby-addressable(Ubuntu:Pro:18.04) | = 2.5.2-1 | No fix listed |
| ubuntu/ruby-addressable(Ubuntu:Pro:18.04) | = 2.5.2-1ubuntu0.1~esm1 | No fix listed |
| ubuntu/ruby-addressable(Ubuntu:Pro:20.04) | All versions | No fix listed |
| ubuntu/ruby-addressable(Ubuntu:Pro:20.04) | = 2.5.2-1 | No fix listed |
| ubuntu/ruby-addressable(Ubuntu:Pro:20.04) | = 2.7.0-1 | No fix listed |
| ubuntu/ruby-addressable(Ubuntu:Pro:20.04) | = 2.7.0-1ubuntu0.1~esm1 | No fix listed |
References
- github.com issue-tracking third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch release-notes third-party-advisory
- github.com patch
- github.com patch
- github.com vendor-advisory
- github.com exploit
- github.com product
- lists.fedoraproject.org
- lists.fedoraproject.org
- Debian Security Tracker CVE-2021-32740 vendor-advisory
- FEDORA-2021-e9fc035565 vendor-advisory
- FEDORA-2021-5d14763df8 vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking
- ubuntu.com issue-tracking
- github.com issue-tracking
- www.cve.org issue-tracking