Skip to content
OpenAdvisories
High · 7.5 CVE-2021-32740 EUVD-2021-1480GHSA-jxhc-q857-3j6g

Regular Expression Denial of Service in Addressable templates

Published Jul 6, 2021 · Updated Aug 3, 2024 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
sporkmonger addressable > 2.3.0, <= 2.7.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ruby-addressable 2.7.0-2 —
Debian 13 ruby-addressable 2.7.0-2 —
Debian 12 ruby-addressable 2.7.0-2 —
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS ruby-addressable No fix yet —
Ubuntu Pro 18.04 LTS ruby-addressable No fix yet —
Ubuntu Pro 16.04 LTS ruby-addressable No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Satellite Capsule 6 foreman 2.5.2.17-2.el7sat RHSA-2021:4702
Red Hat Satellite Capsule 6 python-aiohttp 3.7.4-1.el7pc RHSA-2021:4702
Red Hat Satellite Capsule 6 python-ecdsa +1 0.13.3-2.el7pc RHSA-2021:4702
Red Hat Satellite Capsule 6 python-pyyaml +1 5.4.1-1.el7pc RHSA-2021:4702
Red Hat Satellite Capsule 6 python-urllib3 +1 1.26.5-1.el7pc RHSA-2021:4702
Red Hat Satellite Capsule 6 python3-django 2.2.24-1.el7pc RHSA-2021:4702
Red Hat Satellite Capsule 6 satellite +1 6.10.0-3.el7sat RHSA-2021:4702
Red Hat Satellite Capsule 6 tfm-rubygem-nokogiri 1.11.3-2.el7sat RHSA-2021:4702
Red Hat Satellite 6 candlepin 4.0.9-1.el7sat RHSA-2021:4702
Red Hat Satellite 6 foreman 2.5.2.17-2.el7sat RHSA-2021:4702
Red Hat Satellite 6 python-aiohttp 3.7.4-1.el7pc RHSA-2021:4702
Red Hat Satellite 6 python-ecdsa +1 0.13.3-2.el7pc RHSA-2021:4702
Red Hat Satellite 6 python-pyyaml +1 5.4.1-1.el7pc RHSA-2021:4702
Red Hat Satellite 6 python-urllib3 +1 1.26.5-1.el7pc RHSA-2021:4702
Red Hat Satellite 6 python3-django 2.2.24-1.el7pc RHSA-2021:4702
Red Hat Satellite 6 satellite 6.10.0-3.el7sat RHSA-2021:4702
Red Hat Satellite 6 tfm-rubygem-activerecord-session_store 2.0.0-1.el7sat RHSA-2021:4702
Red Hat Satellite 6 tfm-rubygem-addressable 2.8.0-1.el7sat RHSA-2021:4702
Red Hat Satellite 6 tfm-rubygem-nokogiri 1.11.3-2.el7sat RHSA-2021:4702
Red Hat Satellite 6 tfm-rubygem-puma 5.3.2-1.el7sat RHSA-2021:4702
Red Hat Satellite 6 tfm-rubygem-rails +1 6.0.3.7-1.el7sat RHSA-2021:4702
ReleasePackageFixed inAdvisory
SUSE OpenStack Cloud Crowbar 9 rubygem-addressable 2.3.6-4.3.3 SUSE-SU-2021:2927-1
SUSE OpenStack Cloud Crowbar 8 rubygem-addressable 2.3.6-3.3.3 SUSE-SU-2021:2928-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ruby3.2-rubygem-http 5.1.0-1.4 openSUSE-SU-2024:13157-1
openSUSE Tumbleweed rubygem-http 5.1.0-1.1 openSUSE-SU-2024:12247-1
ReleasePackageFixed inAdvisory
Alpine v3.24 ruby-addressable 2.8.0-r0 —
Alpine v3.23 ruby-addressable 2.8.0-r0 —
Alpine v3.22 ruby-addressable 2.8.0-r0 —
Alpine v3.21 ruby-addressable 2.8.0-r0 —
Alpine v3.20 ruby-addressable 2.8.0-r0 —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 ruby-addressable 2.8.0-r0 —
Alpine v3.18 ruby-addressable 2.8.0-r0 —
Alpine v3.17 ruby-addressable 2.8.0-r0 —
Alpine v3.16 ruby-addressable 2.8.0-r0 —
Alpine v3.15 ruby-addressable 2.8.0-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems addressable >= 2.3.0, < 2.8.0 2.8.0 GHSA-jxhc-q857-3j6g

Advisories 6

References