CVE-2021-32740
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
addressableRubyGems | >= 2.3.0, < 2.8.0 | 2.8.0 |
Affected products
9cpe:2.3:a:addressable_project:addressable:*:*:*:*:*:ruby:*:*+ 1 more
- cpe:2.3:a:addressable_project:addressable:*:*:*:*:*:ruby:*:*range: >=2.3.0,<2.8.0
- (no CPE)range: > 2.3.0, <= 2.7.0
cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
- ghsa-coords5 versionspkg:gem/addressablepkg:rpm/opensuse/ruby3.2-rubygem-http&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/rubygem-http&distro=openSUSE%20Tumbleweedpkg:rpm/suse/rubygem-addressable&distro=SUSE%20OpenStack%20Cloud%20Crowbar%208pkg:rpm/suse/rubygem-addressable&distro=SUSE%20OpenStack%20Cloud%20Crowbar%209
>= 2.3.0, < 2.8.0+ 4 more
- (no CPE)range: >= 2.3.0, < 2.8.0
- (no CPE)range: < 5.1.0-1.4
- (no CPE)range: < 5.1.0-1.1
- (no CPE)range: < 2.3.6-3.3.3
- (no CPE)range: < 2.3.6-4.3.3
Patches
Vulnerability mechanics
References
11- github.com/sporkmonger/addressable/commit/0d8a3127e35886ce9284810a7f2438bff6b43cbcnvdPatchRelease NotesThird Party AdvisoryWEB
- github.com/advisories/GHSA-jxhc-q857-3j6gghsaADVISORY
- github.com/sporkmonger/addressable/security/advisories/GHSA-jxhc-q857-3j6gnvdThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2021-32740ghsaADVISORY
- github.com/rubysec/ruby-advisory-db/blob/master/gems/addressable/CVE-2021-32740.ymlghsaWEB
- github.com/sporkmonger/addressable/commit/89c76130ce255c601f642a018cb5fb5a80e679a7ghsaWEB
- github.com/sporkmonger/addressable/commit/92685096b1f7235ed8986c03ce30a24972eed848ghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/SDFQM2NHNAZ3NNUQZEJTYECYZYXV4UDSghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/WYPVOOQU7UB277UUERJMCNQLRCXRCIQ5ghsaWEB
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SDFQM2NHNAZ3NNUQZEJTYECYZYXV4UDS/nvd
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WYPVOOQU7UB277UUERJMCNQLRCXRCIQ5/nvd
News mentions
0No linked articles in our index yet.