cve.bz

CVE-2021-32740 Uncontrolled Resource Consumption

7.5 highEPSS 2.1%Fix available

High (7.5). EPSS 2.1% estimated probability of exploitation activity in the next 30 days. Fixed in addressable 2.8.0.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
2.1% (unchanged from 2.1% a week ago; 2.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 82nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-400 Uncontrolled Resource Consumption
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-32740 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-32740?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-32740?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-32740 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
addressable_project:addressablefrom 2.3.0 before 2.8.0
fedoraproject:fedora33
fedoraproject:fedora34

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-jxhc-q857-3j6gRubyGemsaddressable>=2.3.0 <2.8.02.8.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14ruby-addressable2.7.0-2DEBIAN-CVE-2021-32740
UbuntuPro:16.04:LTS, Pro:18.04:LTS, Pro:20.04:LTSruby-addressableno fix listedUBUNTU-CVE-2021-32740
Red Hatsatellite:6.10::el7candlepin0:4.0.9-1.el7satRHSA-2021:4702
Red Hatsatellite:6.10::el7satellite0:6.10.0-3.el7satRHSA-2021:4702
Red Hatsatellite:6.10::el7tfm-rubygem-activerecord-session_store0:2.0.0-1.el7satRHSA-2021:4702
Red Hatsatellite:6.10::el7tfm-rubygem-addressable0:2.8.0-1.el7satRHSA-2021:4702
Red Hatsatellite:6.10::el7tfm-rubygem-puma0:5.3.2-1.el7satRHSA-2021:4702
Red Hatsatellite:6.10::el7tfm-rubygem-rails, tfm-rubygem-actionpack0:6.0.3.7-1.el7satRHSA-2021:4702
Red Hatsatellite:6.10::el7, satellite_capsule:6.10::el7foreman0:2.5.2.17-2.el7satRHSA-2021:4702
Red Hatsatellite:6.10::el7, satellite_capsule:6.10::el7python-aiohttp0:3.7.4-1.el7pcRHSA-2021:4702
Red Hatsatellite:6.10::el7, satellite_capsule:6.10::el7python-ecdsa, python3-ecdsa0:0.13.3-2.el7pcRHSA-2021:4702
Red Hatsatellite:6.10::el7, satellite_capsule:6.10::el7python-pyyaml, python3-pyyaml0:5.4.1-1.el7pcRHSA-2021:4702
Red Hatsatellite:6.10::el7, satellite_capsule:6.10::el7python-urllib3, python3-urllib30:1.26.5-1.el7pcRHSA-2021:4702
Red Hatsatellite:6.10::el7, satellite_capsule:6.10::el7python3-django0:2.2.24-1.el7pcRHSA-2021:4702
2 more for Red Hat in the JSON and on Red Hat's page.
SUSEOpenStack Cloud Crowbar 8rubygem-addressable2.3.6-3.3.3SUSE-SU-2021:2928-1
SUSEOpenStack Cloud Crowbar 9rubygem-addressable2.3.6-4.3.3SUSE-SU-2021:2927-1
openSUSETumbleweedruby3.2-rubygem-http5.1.0-1.4openSUSE-SU-2024:13157-1
openSUSETumbleweedrubygem-http5.1.0-1.1openSUSE-SU-2024:12247-1
Alpinev3.15, v3.16, v3.17 and 7 moreruby-addressable2.8.0-r0ALPINE-CVE-2021-32740

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat CloudForms 5.0 (CFME 5.11) is in the maintenance support phase and we are no longer fixing Moderate/Low severity security bugs. Reference: https://access.redhat.com/support/policy/updates/cloudforms

OpenShift 3.11 components are currently in maintenance support phase, hence Moderate/Low severity security bugs are set as Out Of Support Scope (OOSS). Reference: https://access.redhat.com/support/policy/updates/openshift_noncurrent

Red Hat's mitigation

Create template objects only from trusted sources that have been validated not to produce catastrophic backtracking.

ProductPackageStateAdvisory
OpenShift Logging 5.2openshift-logging/fluentd-rhel8:v5.2.0-10Fixed 2021-09-07RHBA-2021:3393
Red Hat Satellite 6.10 for RHEL 7tfm-rubygem-addressable-0:2.8.0-1.el7satFixed 2021-11-16RHSA-2021:4702
CloudForms Management Engine 5cfme-gemsetWill not fix
Logging Subsystem for Red Hat OpenShiftopenshift-logging/eventrouter-rhel8Not affected
Red Hat 3scale API Management Platform 23scale-amp-systemWill not fix
Red Hat 3scale API Management Platform 23scale-toolboxAffected
Red Hat 3scale API Management Platform 2systemAffected
Red Hat OpenShift Container Platform 3.11logging-fluentdOut of support scope
Red Hat OpenShift Container Platform 4openshift4/ose-logging-fluentdWill not fix
Red Hat OpenStack Platform 13 (Queens) Operational Toolsrubygem-addressableOut of support scope
Red Hat Single Sign-On 7rcue-addressableWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-32740.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON