LiveActive security incident?Get immediate response
CVE Record

CVE-2021-32740: Regular Expression Denial of Service in Addressable templates

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.

HighCVSS 7.5Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

This flaw can let a specially crafted Addressable URI template consume excessive CPU when the application matches it against a URI. The business impact is service slowdown or denial of service, not data theft. Risk is concentrated in Ruby applications using Addressable templates from untrusted or externally influenced input.

Executive priority

Prioritize remediation for Ruby services where external input can influence URI templates. This is an availability risk with high CVSS severity, but current sources do not show known active exploitation. Patch affected dependencies during the next urgent maintenance cycle, faster for exposed services.

Technical view

CVE-2021-32740 is CWE-400 uncontrolled resource consumption in Addressable versions after 2.3.0 through 2.7.0. The URI template implementation can trigger catastrophic backtracking during template matching. Addressable parsing-only usage is not affected. The issue is fixed in Addressable 2.8.0.

Likely exposure

Exposure is likely where Ruby applications depend on Addressable >2.3.0 and <=2.7.0 and create Template objects from untrusted sources. Typical usage may not do this, and applications using only Addressable parsing capabilities are described as unaffected.

Exploitation context

The source bundle does not show CISA KEV listing or public active exploitation evidence. CVSS rates it network-accessible, low complexity, unauthenticated, and availability-impacting. Treat reachable untrusted template matching as the meaningful exposure condition.

Researcher notes

Scope is narrower than all Addressable usage: the advisory names URI template matching, not general parsing. Affected versions are after 2.3.0 through 2.7.0, with the patch in 2.8.0. Evidence is sufficient for version and feature-level triage.

Mitigation direction

  • Upgrade Addressable to version 2.8.0 or later.
  • Only create Template objects from trusted, validated sources.
  • Prioritize internet-facing services where template matching can be externally influenced.
  • Check downstream vendor guidance for packaged Addressable versions.
  • Avoid accepting raw URI templates from users without validation.

Validation and detection

  • Review dependency manifests and lockfiles for Addressable versions.
  • Identify code paths that instantiate Addressable Template objects.
  • Confirm whether template input can come from users or external systems.
  • Verify deployed environments run Addressable 2.8.0 or a vendor-fixed build.
  • Document parsing-only usage separately from template usage.
Prepared
Confidence
high
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-400: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-32740 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.5 (3.1)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
5Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.5CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H3.93.6Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.5High
CVSS 3.1 vector shape for CVE-2021-32740Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
sporkmongeraddressable> 2.3.0, <= 2.7.0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-400 · source CWE mapping

Uncontrolled Resource Consumption

Uncontrolled Resource Consumption represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.