Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2021-32740

rubygem-addressable: ReDoS in templates

Overview

Published
6 Jul 2021
Modified
17 Jun 2026
High CVE
1 Registry packages
23 OS packages
5 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

7.5 · HIGH

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weakness: CWE-400

Affected packages · 1

Packages affected by CVE-2021-32740
EcosystemPackageVulnerableFixed in
RubyGems addressable >=2.3.0, <2.8.0 2.8.0

Open a package to see all its vulnerabilities.

Operating systems · 30 fixes

Red Hat 3 releases · 15 packages

eol 1 wont fix 3 fixed 12
logging-fluentd cfme-gemset python3-ecdsa tfm-rubygem-nokogiri python3-urllib3 tfm-rubygem-activerecord-session-store +9
Red Hat fixes for CVE-2021-32740
ReleasePackageFixed inAdvisory
7 logging-fluentd +1 eol —
7 cfme-gemset +1 wont fix —
7 python3-ecdsa 0:0.13.3-2.el7pc RHSA-2021:4702
7 tfm-rubygem-nokogiri 0:1.11.3-2.el7sat RHSA-2021:4702
7 python3-urllib3 0:1.26.5-1.el7pc RHSA-2021:4702
7 tfm-rubygem-activerecord-session-store 0:2.0.0-1.el7sat RHSA-2021:4702

10 more rows

alpine 4 releases · 1 package

fixed 4
ruby-addressable
alpine fixes for CVE-2021-32740
ReleasePackageFixed in
3.22 ruby-addressable 2.8.0-r0
3.23 ruby-addressable 2.8.0-r0
3.24 ruby-addressable 2.8.0-r0
edge ruby-addressable 2.8.0-r0

debian 6 releases · 1 package

affected 2 fixed 4
ruby-addressable
debian fixes for CVE-2021-32740
ReleasePackageFixed in
10 ruby-addressable affected
11 ruby-addressable 2.7.0-2
12 ruby-addressable 2.7.0-2
13 ruby-addressable 2.7.0-2
14 ruby-addressable 2.7.0-2
9 ruby-addressable affected

echo 1 release · 1 package

fixed 1
ruby-addressable
echo fixes for CVE-2021-32740
ReleasePackageFixed in
ruby-addressable 2.7.0-2

openSUSE 1 release · 3 packages

fixed 3
ruby2-7-rubygem-http ruby3-1-rubygem-http ruby3-2-rubygem-http
openSUSE fixes for CVE-2021-32740
ReleasePackageFixed inAdvisory
Tumbleweed ruby2-7-rubygem-http +1 5.0.4-1.1 openSUSE-SU-2024:11592-1
Tumbleweed ruby3-1-rubygem-http 5.1.0-1.1 openSUSE-SU-2024:12247-1
Tumbleweed ruby3-2-rubygem-http 5.1.0-1.4 openSUSE-SU-2024:13157-1

References

Show all 14 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.