Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted URI to exposed endpoint
-
DeliveryReach Addressable Template#match/#extract call
-
ExploitTrigger polynomial regex backtracking in template
-
ExecutionExhaust CPU and worker threads
-
ImpactDenial of service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Regex complexity limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the application to call Addressable::Template#match or Template#extract on attacker-controlled URIs against an affected template - specifically templates using lookaround-generating expressions such as {a}{b}, {a,b}, {/a,b}, {?a*,b}, combinations like /{year}-{month}-{day}/{a}{b}, or an exploded variable followed by unexploded ones - AND the process must run on MRI Ruby 3.2 or TruffleRuby 40.0. Limiting factors that reduce real-world risk: applications using only URI parsing (not template matching), or that only call Template#expand, are unaffected; MRI Ruby 2.7, 3.1, 3.3, 4.0 and JRuby 9.4 are confirmed NOT affected; and MRI Ruby 3.2 reached end of life on 2026-03-31. After upgrading to 2.10.0, two residual cases remain polynomial on MRI < 3.3, JRuby, and TruffleRuby: when a processor's match gives a variable its own pattern, and for some templates combining exploded/multi-variable expressions with others (e.g. {+c*,d}{&b}.{b}). |
| Impact | This is a medium-severity availability-only flaw (CVSS 5.9, CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H): network-reachable and unauthenticated (PR:N) but with high attack complexity (AC:H) and no confidentiality or integrity impact (C:N/I:N), only denial of service (A:H). The signals are consistent with a real-but-bounded concern rather than an emergency: the vuln.today Decision label is 'this_month' (not act_now/emergency), the vulnerability is NOT listed in CISA KEV, and no public exploit is identified in the input. EPSS exploitation probability was NOT supplied, so probabilistic exploitation likelihood cannot be quantified here. The AC:H rating is well supported by the evidence, which shows exploitability is gated on both a specific template shape AND a specific Ruby runtime (MRI Ruby 3.2 or TruffleRuby 40.0) - it is NOT attacker-controlled alone, and MRI Ruby 3.2 reached end of life on 2026-03-31, shrinking the exposed population over time. The net picture is a legitimate ReDoS worth patching on a normal maintenance cadence, not a high-urgency drop-everything issue, because impact is limited to availability and exploitation requires an affected runtime plus application code that feeds user-supplied URIs into Template#match/#extract. |
| Exploit ScenarioDerived | An application running MRI Ruby 3.2 (or TruffleRuby 40.0) uses Addressable's Template#match or Template#extract to match attacker-supplied URIs against a vulnerable template (e.g. /{year}-{month}-{day}/{a}{b}). An unauthenticated attacker submits a short crafted URI (a few KB) that forces polynomial-time regex backtracking, consuming seconds to minutes of CPU per request and exhausting worker capacity. No public exploit code is identified, though the vendor advisory publishes concrete example templates and timing figures that demonstrate the condition. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Polynomial-time regular-expression backtracking in the Addressable Ruby gem (2.9.1 through 2.9.2) lets unauthenticated remote attackers cause denial of service when an application passes a crafted URI to Template#match or Template#extract against a template that generates lookaround-bearing regexps. Impact is availability-only (CVSS 5.9, AV:N/AC:H/PR:N/UI:N/C:N/I:N/A:H) and is constrained to processes running MRI Ruby 3.2 or TruffleRuby 40.0, since MRI Ruby 3.3+ memoizes regexps containing lookarounds and MRI 2.7/3.1/4.0 and JRuby 9.4 are confirmed unaffected. The vendor shipped a fix in 2.10.0; no public exploit code or CISA KEV entry was reported at time of analysis, and MRI Ruby 3.2 reached end of life on 2026-03-31, which narrows the exposed population.
RemediationAI
Vendor-released patch: upgrade the addressable gem to 2.10.0 (commit 576662e4791df3cfd17c944041a98f516d3c0734, release https://github.com/sporkmonger/addressable/releases/tag/addressable-2.10.0, advisory https://github.com/sporkmonger/addressable/security/advisories/GHSA-jrfq-gw62-2f3j). Because the vulnerability is runtime-gated, the vendor's preferred workaround is to run on MRI Ruby 3.3 or later, which memoizes regexps with lookarounds and is unaffected; MRI Ruby 3.2 reached end of life on 2026-03-31, so moving off it is the durable fix. If upgrade is not immediately possible, bound the input: limit the length of user-supplied URIs before matching, which caps rather than eliminates the polynomial cost and is the only option that also works on TruffleRuby. On MRI Ruby 3.2, wrap Template#match and Template#extract calls that process user data in a short Timeout.timeout, accepting that it interrupts the matching thread at an arbitrary point and is therefore not safe in every application; alternatively set Regexp.timeout to raise Regexp::TimeoutError on slow matches, noting it applies process-wide to every regular expression. Both timeout approaches are ineffective at stopping a regexp match on TruffleRuby. Applications that only use Addressable's URI parsing or Template#expand need no change. After upgrading to 2.10.0, review templates that combine exploded or multi-variable expressions with other expressions (e.g. {+c*,d}{&b}.{b}) or that use a processor supplying per-variable patterns, since those can still exhibit polynomial matching on MRI before 3.3, JRuby and TruffleRuby.
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 its RFC 6570 URI template engine compiles a template into a single regular expression used by Template#match and Template#extract. Version 2.9.1 rewrote the generated regexps to address earlier advisories, introducing lookaround assertions for expressions such as {a}{b}, {a,b}, {/a,b}, {?a*,b} and exploded-variable-followed-by-unexploded combinations. On MRI Ruby 3.2, a regexp containing any lookaround is not memoized, and because memoization is decided for the whole template regexp, a single such expression makes the entire match backtrack as on older Rubies; TruffleRuby 40.0 likewise backtracks on some of these patterns. The result is CWE-1333 (inefficient regular expression complexity): matching time grows polynomially rather than linearly in the length of the input URI, so a small attacker-supplied URI can pin a worker thread for seconds to minutes. Vendor benchmarks on MRI Ruby 3.2 show /{year}-{month}-{day}/{a}{b} taking 12 seconds to reject 2 KB versus under 1 ms on 2.9.0, and {?a,a*,a*}{a*}{.a*,b*,c} taking over 15 seconds; on TruffleRuby 40.0 the same template exceeds 10 minutes for 2 KB. The specific trigger is template compilation combined with crafted URI input, not URI parsing itself: applications that use Addressable only for parsing, or that only call Template#expand, are unaffected.
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:H
Remote and unauthenticated (AV:N/PR:N), but exploitation is gated on a specific template shape plus an affected Ruby runtime (AC:H); impact is CPU-exhaustion denial of service only (A:H, C/I:N).
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 URI template regular expressions containing lookaround assertions can lose regular-expression memoization on MRI Ruby 3.2 and can backtrack on TruffleRuby 40.0. Calling Template#match or Template#extract with a crafted URI against an affected template can consume polynomial CPU time and cause denial of service. The remediation does not cover processor-supplied variable patterns or certain templates that combine exploded or multi-variable expressions with other expressions, which can remain polynomial on MRI Ruby before 3.3, JRuby, and TruffleRuby. 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
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:
Denial of service in the Addressable Ruby gem 2.9.1 through 2.9.x lets unauthenticated remote attackers consume excessiv
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-140735
GHSA-jrfq-gw62-2f3j
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB