Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit oversized untrusted template pattern
-
ExploitApp compiles/inspects template (to_regexp/match/extract)
-
ExecutionQuadratic regexp build consumes CPU
-
ImpactRepeated requests exhaust CPU, degrade availability
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
|
| Exploitation Conditions | Exploitation requires that the application build an Addressable::Template from attacker-controlled (untrusted) pattern text AND then call one of the methods that compiles or inspects the pattern: match, extract, to_regexp, variables (aliases keys/names), variable_defaults, or freeze. The malicious pattern must be large - the advisory states a non-ASCII pattern of a few hundred kilobytes, or a run of ~5,000 adjacent expressions (~15 KB), to reach multi-second CPU cost (AC:H). What LIMITS exploitation: the cost lives in the template pattern, not in URIs being matched, so matching untrusted URIs against the application's own trusted templates is NOT affected; expand and partial_expand are NOT affected; and the compiled regexp is cached per template, so cost is normally paid once (except match/extract when called with a processor, which rebuild each call). Building templates from untrusted sources is described by the vendor as uncommon, further narrowing real exposure. Affected versions: 2.9.1 through below 2.10.0; fixed in 2.10.0 (updating is the complete fix; interim workarounds are to avoid building/matching/freezing untrusted templates or to limit their length, reject non-ASCII characters or pct-encode them, and reject long runs of adjacent expressions). |
| Impact | This is a genuinely low-priority issue, and the available signals agree rather than conflict. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L, base 3.7) scores only an availability impact of Low with high attack complexity, and the vendor advisory explains why AC:H is justified: the attacker must supply a template pattern of many kilobytes (hundreds of KB of non-ASCII text, or a run of roughly 5,000 adjacent expressions ≈15 KB) merely to cause a delay of a few seconds of CPU. This is a CWE-407 algorithmic-complexity (quadratic) denial of service, not memory corruption - confidentiality and integrity are untouched (C:N/I:N). The vuln.today decision label is 'monitor', consistent with the low severity. No KEV listing and no EPSS score were supplied, so there is no evidence of active or widespread exploitation; status is 'no public exploit identified' in the KEV/weaponized sense, though the GHSA advisory does contain demonstration PoC code (see below). Crucially, the flaw only affects applications that build Addressable::Template objects from untrusted input and then compile/inspect them - an uncommon pattern per the vendor - so the real-world exploitable population is far smaller than the gem's large install base. Net: a legitimate but low-urgency hardening item, not an emergency. |
| Exploit ScenarioDerived | An application that accepts URI templates from untrusted users (for example, a service that lets callers define their own Addressable::Template patterns) receives a maliciously large pattern - either a few hundred kilobytes of non-ASCII text or several thousand adjacent expressions like '{a}{b}{c}'. When the app calls match, extract, to_regexp, variables, variable_defaults, or freeze, the regexp is compiled in quadratic time, burning seconds of CPU per request and degrading availability under repeated submissions. The GHSA advisory publishes working Ruby PoC code demonstrating the quadratic blow-up, but no weaponized or in-the-wild exploit is reported; high attack complexity (large payloads needed per request) limits amplification. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Denial of service in the Addressable Ruby gem 2.9.1 through 2.9.x lets unauthenticated remote attackers consume excessive CPU when an application compiles or inspects an attacker-supplied template pattern that is large and either contains non-ASCII text or a long run of adjacent expressions. The flaw is a quadratic-time regexp build in Addressable::Template (CWE-407), reachable through match, extract, to_regexp, variables, variable_defaults and freeze; attack complexity is high because the pattern must be many kilobytes and templates from untrusted sources are uncommon. It is fixed in 2.10.0, there is no CISA KEV entry confirming active exploitation, and the upstream advisory includes a public proof-of-concept timing demonstration.
RemediationAI
Upgrade the addressable gem to 2.10.0 or later, which is the complete vendor fix; the patch is in commit ebe911f8623bcc664d2e6df079c96c325ad181c8 and release notes are at the GitHub advisory and release tag URLs. If upgrading is not immediately possible, the vendor's workarounds are to avoid matching, extracting, listing variables of, or freezing templates built from untrusted sources, or to limit their length; reject templates containing non-ASCII characters or pct-encode those characters before building the template; and reject templates with long runs of adjacent expressions. Because the compiled regexp is cached per template, a single build normally costs once, but match and extract called with a processor rebuild it on each call, so those paths warrant particular restriction.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in rubygems
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Addressable is an alternative URI implementation for Ruby, and Addressable::Template implements RFC 6570-style URI templates that lazily compile the template pattern into a regular expression and cache it on the template object. CWE-407 (inefficient algorithm) applies because the pre-2.10.0 code located each expression by character offset and, for each expression, scanned every later expression that had no literal text before it to decide whether the following text could begin with a comma; both non-ASCII patterns and long runs such as {a}{b}{c} therefore produced quadratic work. The fix in commit ebe911f switches to StringScanner byte offsets and a single backwards pass over the expression list, making construction linear. The cost is in the pattern rather than in the URI being matched, so applications that only match untrusted URIs against their own trusted templates are not exposed; expand and partial_expand do not build the regexp and are unaffected; and because the regexp is cached per template, the cost is normally paid once, except that match and extract with a processor rebuild it on every call.
Know when Addressable gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
Network-reachable template input (AV:N) with no auth (PR:N), but large crafted patterns are required (AC:H); only CPU/availability is affected (A:L), with no confidentiality or integrity impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.9.1 until 2.10.0, Addressable::Template builds its cached regular expression in quadratic time when an untrusted template pattern contains non-ASCII text or a long run of adjacent expressions. Operations that compile or inspect such templates, including match, extract, to_regexp, variables, variable_defaults, and freeze, can consume excessive CPU and cause denial of service. This issue is fixed in version 2.10.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
More in Addressable
View allRegular expression denial of service (ReDoS) in the Addressable Ruby library versions 2.3.0 through 2.8.x allows unauthe
Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. Rated hi
Regular expression denial of service in the Addressable Ruby gem (2.3.0 through 2.9.2) allows crafted URIs to force exce
Polynomial backtracking in Addressable's URI template matching lets a crafted URI drive Template#match or Template#extra
Polynomial-time regular expression backtracking in the Addressable Ruby gem's URI template matcher (Template#match and T
Polynomial-time regular-expression backtracking in the Addressable Ruby gem (2.9.1 through 2.9.2) lets unauthenticated r
Hostname filtering bypass in the Addressable Ruby URI library (versions 2.2.5 through 2.9.2, fixed in 2.10.0) causes a p
Addressable, the Ruby URI library, fails to reject or percent-encode host-changing delimiters in the userinfo component:
Addressable, the Ruby URI and RFC 6570 template library, takes the variable name in an unexploded ';', '?', or '&' templ
SSRF filter bypass in the Addressable Ruby gem (2.3.5 through 2.9.2) lets an attacker-supplied URL pass a destination ch
Quadratic-time Unicode normalization in the Ruby Addressable gem (2.0.0 through 2.9.2) lets remote attackers burn CPU on
Addressable's URI#request_uri (versions 2.1.2 through 2.9.2) returns the path and query verbatim, so stored control char
EUVD-2026-140686
GHSA-h78h-gj97-g737
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB