CVE-2021-32740
published high CVSS 3.1 · 7.5Regular Expression Denial of Service in Addressable templates
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| sporkmonger | — | addressable> 2.3.0, <= 2.7.0 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | ruby-addressable | Fixed | 2.8.0-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-httpaarch64 | Advisory build | 5.0.4-1.1 | OPENSUSE-SU-2024:11592-1 |
| Alpine Linux | v3.15 | ruby-addressable | Fixed | 2.8.0-r0 | Package fix record |
| Alpine Linux | v3.16 | ruby-addressable | Fixed | 2.8.0-r0 | Package fix record |
| Alpine Linux | v3.17 | ruby-addressable | Fixed | 2.8.0-r0 | Package fix record |
| Alpine Linux | v3.18 | ruby-addressable | Fixed | 2.8.0-r0 | Package fix record |
| Alpine Linux | v3.19 | ruby-addressable | Fixed | 2.8.0-r0 | Package fix record |
Show 20 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.20 | ruby-addressable | Fixed | 2.8.0-r0 | Package fix record |
| Alpine Linux | v3.21 | ruby-addressable | Fixed | 2.8.0-r0 | Package fix record |
| Alpine Linux | v3.22 | ruby-addressable | Fixed | 2.8.0-r0 | Package fix record |
| Alpine Linux | v3.23 | ruby-addressable | Fixed | 2.8.0-r0 | Package fix record |
| Alpine Linux | v3.24 | ruby-addressable | Fixed | 2.8.0-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-httpppc64le | Advisory build | 5.0.4-1.1 | OPENSUSE-SU-2024:11592-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-https390x | Advisory build | 5.0.4-1.1 | OPENSUSE-SU-2024:11592-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby2.7-rubygem-httpx86_64 | Advisory build | 5.0.4-1.1 | OPENSUSE-SU-2024:11592-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-httpaarch64 | Advisory build | 5.0.4-1.1 | OPENSUSE-SU-2024:11592-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-httpppc64le | Advisory build | 5.0.4-1.1 | OPENSUSE-SU-2024:11592-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-https390x | Advisory build | 5.0.4-1.1 | OPENSUSE-SU-2024:11592-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.0-rubygem-httpx86_64 | Advisory build | 5.0.4-1.1 | OPENSUSE-SU-2024:11592-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-httpaarch64 | Advisory build | 5.1.0-1.1 | OPENSUSE-SU-2024:12247-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-httpppc64le | Advisory build | 5.1.0-1.1 | OPENSUSE-SU-2024:12247-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-https390x | Advisory build | 5.1.0-1.1 | OPENSUSE-SU-2024:12247-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-httpx86_64 | Advisory build | 5.1.0-1.1 | OPENSUSE-SU-2024:12247-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-httpaarch64 | Advisory build | 5.1.0-1.4 | OPENSUSE-SU-2024:13157-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-httpppc64le | Advisory build | 5.1.0-1.4 | OPENSUSE-SU-2024:13157-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-https390x | Advisory build | 5.1.0-1.4 | OPENSUSE-SU-2024:13157-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-httpx86_64 | Advisory build | 5.1.0-1.4 | OPENSUSE-SU-2024:13157-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| sporkmonger | addressable | > 2.3.0, <= 2.7.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-400 CWE-400: Uncontrolled Resource Consumption
References
4- https://github.com/sporkmonger/addressable/commit/0d8a3127e35886ce9284810a7f2438bff6b43cbc
- https://github.com/sporkmonger/addressable/security/advisories/GHSA-jxhc-q857-3j6g
- FEDORA-2021-e9fc035565 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SDFQM2NHNAZ3NNUQZEJTYECYZYXV4UDS/
- FEDORA-2021-5d14763df8 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WYPVOOQU7UB277UUERJMCNQLRCXRCIQ5/
Provider assertions
2GitHub_M · cna
Regular Expression Denial of Service in Addressable templates
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 4a2c805c1aca5eb62d36bc44467daac03bacaaf4b929fa5799665e0ff2323413
- Ingested
- 23 Sep 2026, 07:54:30 UTC
- Source record
- Official CVE record