Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted URI with long literal run
-
ExploitReach Template#match/#extract on vulnerable template
-
ExecutionTrigger polynomial regex backtracking
-
ImpactExhaust CPU and deny 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 that the application call Addressable::Template#match or Template#extract on attacker-supplied URIs, using a URI template with literal text between expressions where a preceding variable can also consume that literal - e.g. /{year}-{month}-{day}, /v{major}.{minor}.{patch}, {+base}/{+path}/{+file}, or {+path}/{name}-{+rest}. It further requires a Ruby regex engine that backtracks without memoization: MRI Ruby before 3.2 or JRuby (per the advisory, MRI 3.2+, MRI 3.3+, and TruffleRuby 40.0 are not affected by this issue). Limiting factors that reduce real-world risk: applications that use Addressable only for URI parsing, or that only call Template#expand, are unaffected; the template must have the vulnerable literal-between-expressions shape; and the service must run on a vulnerable runtime. Advisory-stated mitigations are to upgrade to MRI Ruby 3.3+ (if not on JRuby), bound user-supplied URI length (polynomial cost means this only limits, not eliminates, the issue), and wrap match/extract on untrusted input in a Timeout.timeout (which interrupts at an arbitrary point and is not safe in every application). The fixed release is 2.10.0, with the two residual polynomial cases noted above. |
| Impact | This is a medium-severity, availability-only Regular Expression Denial of Service (CWE-1333) in the Addressable Ruby gem's URI template matching. The supplied CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H (5.9) is internally consistent: remotely reachable, no authentication, no user interaction, but AC:H and A:H-only - no confidentiality or integrity impact. EPSS is not provided in the input and this is not listed in CISA KEV, so there is no confirmed active exploitation; no public exploit code reference is present either (the GitHub advisory describes the mechanism and worst-case timings but is not supplied as working exploit code). The vuln.today decision label is 'this_month', consistent with a real-but-not-emergency DoS rather than a drop-everything issue. The AC:H rating is well justified by the evidence: exploitability depends on conditions outside the attacker's control - the application must call Template#match or Template#extract on user-supplied URIs using an affected template shape, and must run on a non-memoizing regex engine (MRI Ruby < 3.2 or JRuby; MRI 3.2+ and TruffleRuby 40.0 are stated not affected). A notable caveat: the 2.10.0 fix is incomplete, remaining polynomial on MRI < 3.3, JRuby and TruffleRuby for processor-supplied variable patterns and certain exploded/multi-variable template combinations. Net: a legitimate availability risk for Ruby services that match untrusted URIs against vulnerable templates on older runtimes, but not a widespread-exploitation emergency given medium CVSS, no KEV, and no exploitation probability signal in the data. |
| Exploit ScenarioDerived | An attacker sends a crafted URI - a few kilobytes consisting largely of a run of the template's literal character (e.g. '-', '.', or '/') - to an endpoint that matches it against a vulnerable Addressable template via Template#match or Template#extract. On MRI Ruby < 3.2 or JRuby, the ambiguous generated regex backtracks polynomially (the advisory reports ~10 seconds on MRI 2.7 and over 15 seconds on JRuby to reject 2 KB for templates like /{year}-{month}-{day}), pinning a CPU and denying service. No public exploit code reference is identified, though the advisory details the mechanism and realistic affected templates. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Polynomial backtracking in Addressable's URI template matching lets a crafted URI drive Template#match or Template#extract into multi-second CPU consumption, giving a remote unauthenticated attacker a denial-of-service primitive against Ruby services that match user-supplied URIs against templates such as /{year}-{month}-{day}, /v{major}.{minor}.{patch} or {+base}/{+path}/{+file}. Affected are addressable releases from 2.3.0 up to and including 2.9.2 when running on an interpreter whose regexp engine backtracks without memoization - MRI Ruby before 3.2 or JRuby; MRI 3.2/3.3/4.0 and TruffleRuby 40.0 are reported not affected by this specific issue. Version 2.10.0 is the vendor fix, the advisory documents two residual polynomial cases even after upgrading, and no public exploit code was identified at time of analysis.
RemediationAI
Upgrade the addressable gem to 2.10.0 (vendor-released patch; release notes at https://github.com/sporkmonger/addressable/releases/tag/addressable-2.10.0, fix commit 576662e4791df3cfd17c944041a98f516d3c0734, advisory https://github.com/sporkmonger/addressable/security/advisories/GHSA-grhv-8jgq-r74x). Be aware that 2.10.0 does not fully close the class of issue: matching can still take polynomial time on MRI Ruby before 3.3, JRuby and TruffleRuby when a processor's match method gives a variable its own pattern, and for some templates that combine an exploded variable or several variables in one expression with other expressions, such as {+c*,d}{&b}.{b}. Where upgrading the gem is not immediately possible, the advisory's workarounds are to move to MRI Ruby 3.3 or later when JRuby is not in use, to cap the length of user-supplied URIs before they reach Template#match or Template#extract - which only bounds the cost because it is polynomial rather than linear, and therefore does not eliminate the issue - and to wrap those calls in a short Timeout.timeout, accepting that it interrupts the matching thread at an arbitrary point and is not safe in every application. Confirming that a given service calls match or extract on untrusted input against templates with literal text between expressions is the fastest way to scope exposure, since URI parsing and Template#expand alone are unaffected.
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 URI Template support compiles a template into a regular expression that is then run by Template#match and Template#extract. When literal text sits between expressions and a preceding variable can also consume that literal (hyphens, dots or slashes appearing inside the variable values), the generated regexp offers exponentially many ways to divide a run of literal characters among the variables - the advisory describes this as O(n^k) for k variables, and measures roughly 10 seconds to reject 2 KB of input on MRI Ruby 2.7 and over 15 seconds on JRuby with Addressable 2.9.2, with cubic cost for the /{year}-{month}-{day} shape, so small request-size limits do not prevent it. The root cause class is CWE-1333, inefficient regular expression complexity; the practical exposure depends on the engine, since MRI Ruby before 3.2 and JRuby backtrack without memoization while MRI 3.2+ and TruffleRuby 40.0 are not affected by this shape. The 2.10.0 fix (commit 576662e4791df3cfd17c944041a98f516d3c0734) restructures matching so it runs in linear time on engines that do not memoize regexps, and also changes exploded-variable handling and repeated-variable value selection. Two cases remain polynomial on MRI before 3.3, JRuby and TruffleRuby: templates where a processor's match method supplies a variable its own pattern (every choice stays open so the pattern decides the values), and some templates combining an exploded variable or several variables in one expression with other expressions, such as {+c*,d}{&b}.{b}. This issue is distinct from earlier template advisories that covered expressions adjacent with no literal text between them.
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, unauthenticated, no interaction (PR:N/UI:N) but success depends on a vulnerable runtime and specific template shape (AC:H); impact is CPU exhaustion only, so C:N/I:N/A:H.
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.3.0 until 2.10.0, Addressable URI templates containing literal text between expressions generate ambiguous regular expressions when a preceding variable can also consume that literal text on MRI Ruby before 3.2 and JRuby. Calling Template#match or Template#extract with a crafted URI can cause polynomial backtracking and 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-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:
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-140740
GHSA-grhv-8jgq-r74x
NVD
CVE.org
EPSS
Exploit-DB