CVE-2021-32740
CVE-2021-32740 · Regular Expression Denial of Service in Addressable templates
CVSS 7.5 · High · EPSS 2.1% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- addressableNo fix published
- ruby-addressable Alpine 3.15Update to 2.8.0-r0
- ruby-addressable Alpine 3.16Update to 2.8.0-r0
- ruby-addressable Alpine 3.17Update to 2.8.0-r0
- and 14 more
Check the installed version:
apk list -I -o ruby-addressableAssess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- RHSA-2021:4702 · Red Hat satellite 6.10 el7, Red Hat satellite capsule 6.10 el7 ·
- openSUSE-SU-2024:12247-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2024:13157-1 · openSUSE Tumbleweed ·
- SUSE-SU-2021:2928-1 · SUSE OpenStack Cloud Crowbar 8 ·
- SUSE-SU-2021:2927-1 · SUSE OpenStack Cloud Crowbar 9 ·
Affected products and versions
addressable
- Versions
- > 2.3.0, <= 2.7.0: Affected
No fix published
ruby-addressable Alpine 3.15
- Affected ranges
- ECOSYSTEM: ≥ 2.3.0, < 2.8.0-r0
Update to 2.8.0-r0
ruby-addressable Alpine 3.16
- Affected ranges
- ECOSYSTEM: ≥ 2.3.0, < 2.8.0-r0
Update to 2.8.0-r0
ruby-addressable Alpine 3.17
- Affected ranges
- ECOSYSTEM: ≥ 2.3.0, < 2.8.0-r0
Update to 2.8.0-r0
ruby-addressable Alpine 3.18
- Affected ranges
- ECOSYSTEM: ≥ 2.3.0, < 2.8.0-r0
Update to 2.8.0-r0
ruby-addressable Alpine 3.19
- Affected ranges
- ECOSYSTEM: ≥ 2.3.0, < 2.8.0-r0
Update to 2.8.0-r0
ruby-addressable Alpine 3.20
- Affected ranges
- ECOSYSTEM: ≥ 2.3.0, < 2.8.0-r0
Update to 2.8.0-r0
ruby-addressable Alpine 3.21
- Affected ranges
- ECOSYSTEM: ≥ 2.3.0, < 2.8.0-r0
Update to 2.8.0-r0
ruby-addressable Alpine 3.22
- Affected ranges
- ECOSYSTEM: ≥ 2.3.0, < 2.8.0-r0
Update to 2.8.0-r0
ruby-addressable Alpine 3.23
- Affected ranges
- ECOSYSTEM: ≥ 2.3.0, < 2.8.0-r0
Update to 2.8.0-r0
ruby-addressable Alpine 3.24
- Affected ranges
- ECOSYSTEM: ≥ 2.3.0, < 2.8.0-r0
Update to 2.8.0-r0
ruby-addressable Debian 12
- Affected ranges
- ECOSYSTEM: < 2.7.0-2
Update to 2.7.0-2
ruby-addressable Debian 13
- Affected ranges
- ECOSYSTEM: < 2.7.0-2
Update to 2.7.0-2
ruby-addressable Debian 14
- Affected ranges
- ECOSYSTEM: < 2.7.0-2
Update to 2.7.0-2
addressable RubyGems
- Versions
- 2.3.2
- 2.3.3
- 2.3.4
- 2.3.5
- 2.3.6
- 2.3.7
All versions (13)
- 2.3.8
- 2.4.0
- 2.5.0
- 2.5.1
- 2.5.2
- 2.6.0
- 2.7.0
- Affected ranges
- ECOSYSTEM: ≥ 2.3.0, < 2.8.0
Update to 2.8.0
ruby-addressable Ubuntu Pro 16.04 LTS
- Versions
- 2.3.8-1
- 2.3.8-1ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-addressable Ubuntu Pro 18.04 LTS
- Versions
- 2.5.1-2
- 2.5.2-1
- 2.5.2-1ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-addressable Ubuntu Pro 20.04 LTS
- Versions
- 2.5.2-1
- 2.7.0-1
- 2.7.0-1ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://github.com/sporkmonger/addressable/security/advisories/GHSA-jxhc-q857-3j6g
- https://github.com/sporkmonger/addressable/commit/0d8a3127e35886ce9284810a7f2438bff6b43cbc
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WYPVOOQU7UB277UUERJMCNQLRCXRCIQ5/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SDFQM2NHNAZ3NNUQZEJTYECYZYXV4UDS/
- https://nvd.nist.gov/vuln/detail/CVE-2021-32740