Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify endpoint using Addressable Template#match/#extract
-
DeliverySubmit crafted URI with adjacent exploded-variable pattern
-
ExploitTrigger polynomial regex backtracking on MRI<3.3/JRuby
-
ExecutionExhaust CPU on matching thread
-
ImpactDenial of service / resource exhaustion
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 target application call Addressable::Template#match or Template#extract on attacker-supplied URI input against a vulnerable template shape - specifically an exploded variable adjacent to other variables or an exploded expression directly before another expression (e.g. {a*}{.a*,b*,c}, {.a*,b*,c}, {?a*,b,c*}, {a*,b,c}-). It is further gated by the Ruby runtime: exploitable on MRI Ruby < 3.2 and JRuby (the advisory confirms MRI 2.7/3.1 and JRuby 9.4 vulnerable), while MRI Ruby 3.2+/3.3+ and TruffleRuby 40.0 are not affected by this issue. Limiting factors: applications that use only Addressable's URI parsing, or that only call Template#expand, are unaffected; AC:H reflects dependence on both the specific template/input shape and the Ruby engine's backtracking behavior. Documented mitigations per the vendor are upgrading to 2.10.0 (the fix, though two polynomial cases remain on MRI < 3.3, JRuby and TruffleRuby), upgrading to MRI Ruby 3.3+ where JRuby is not used, bounding user-supplied URI length, and wrapping match/extract in a Timeout (noted as not safe in every application). |
| Impact | This is a regular-expression denial-of-service (CWE-1333) with a moderate CVSS of 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 availability-only impact (A:H; C:N/I:N). The multi-source signals are consistent and point to a genuine but non-urgent issue: SSVC records Exploitation: none, Automatable: no, Technical Impact: partial, and the vuln.today priority is 'this_month' rather than act_now or emergency. There is no CISA KEV listing and no EPSS score was supplied, so exploitation probability cannot be quantified from the input. No public exploit identified at time of analysis - the only references are the GHSA advisory, the fix commit, and the release, which contain illustrative vulnerable template shapes and timing figures but not packaged exploit code. The AC:H rating is well supported by the evidence: exploitability is conditional on the application using Template#match/#extract with attacker-controlled URIs against specific template shapes, and on the Ruby runtime (MRI < 3.2/<3.3, JRuby; MRI 3.2+ and TruffleRuby 40.0 are not affected by this issue), rather than on any attacker-controlled race or memory grooming. Net: a real but priority-tier (not emergency) availability issue whose practical risk is gated by application design and Ruby version, not a high-CVSS-but-illusory finding nor a drop-everything emergency. |
| Exploit ScenarioDerived | An application that passes user-supplied URIs to Addressable::Template#match or #extract against a vulnerable template (an exploded variable adjacent to other variables, e.g. {a*}{.a*,b*,c}) is targeted by an attacker who submits a crafted URI string. On MRI Ruby before 3.2/3.3 or JRuby, the generated regular expression backtracks polynomially - the advisory measured over 6 seconds (MRI 2.7) and over 15 seconds (JRuby) to reject ~800 bytes - tying up a worker thread and degrading or denying service. No confirmed public exploit code exists; the advisory provides example templates and timing but not a working exploit. |
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's URI template matcher (Template#match and Template#extract) lets a crafted URI drive uncontrolled CPU consumption and denial of service. Applications are exposed only if they pass attacker-controlled URI strings into template matching against vulnerable template shapes - exploded variables sitting next to other variables, or an exploded expression immediately before another expression - and only when running on a Ruby engine that backtracks without memoization, specifically MRI Ruby below 3.2 and JRuby (the advisory confirms MRI 2.7, MRI 3.1 and JRuby 9.4 as vulnerable, while MRI 3.2/3.3/4.0 and TruffleRuby 40.0 are not affected by this issue). Addressable versions 2.3.0 through 2.9.2 are in scope and version 2.10.0 is the vendor-released fix; no public exploit code and no active exploitation have been reported (CISA SSVC exploitation: none, automatable: no), and code that only uses Addressable's URI parsing or Template#expand is unaffected.
RemediationAI
Upgrade Addressable to 2.10.0 or later (release notes: https://github.com/sporkmonger/addressable/releases/tag/addressable-2.10.0, fix commit 576662e4791df3cfd17c944041a98f516d3c0734, advisory https://github.com/sporkmonger/addressable/security/advisories/GHSA-xfg6-27c4-wr4r). Be aware that 2.10.0 does not eliminate every polynomial case: templates combining an exploded variable or several variables in one expression with other expressions (for example {+c*,d}{&b}.{b}), and templates where a processor's match method assigns a variable its own pattern, can still run in polynomial time on MRI Ruby below 3.3, JRuby and TruffleRuby. Documented vendor workarounds where upgrading is not immediately possible: move to MRI Ruby 3.3 or later if the application does not use JRuby; avoid matching user-supplied input against templates that place an exploded variable with another variable in the same expression or place an exploded expression directly before another expression; bound the length of user-supplied URIs before matching, which only limits rather than removes the polynomial cost but works on every runtime; and wrap Template#match/Template#extract calls that handle untrusted 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.
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 provides an alternative implementation of Ruby's standard-library URI handling, including an RFC 6570 URI template engine that compiles templates into regular expressions used by Template#match and Template#extract. The root cause is CWE-1333 (Inefficient Regular Expression Complexity): for certain template shapes the generated expression leaves the division of a run of comma-joined members among multiple variables combinatorially open, so the matching engine explores a polynomial number of splits. The advisory enumerates four such shapes - an exploded expression directly before an expression containing exploded variables (e.g. {a*}{.a*,b*,c}, cubic in input length), several exploded variables in a '.' or default expression ({.a*,b*,c} quadratic, {c*,d*,a*} cubic), an unexploded variable between exploded ones in a '?' or '&' expression ({?a*,b,c*}, quadratic in the number of members), and an exploded variable followed by unexploded ones in '/', '.' or default expressions ({a*,b,c}-, quadratic). Exploitability depends on the runtime's regex engine: MRI Ruby below 3.2 and JRuby backtrack without memoization and are vulnerable, whereas MRI Ruby 3.2+ and TruffleRuby 40.0 memoize or do not backtrack for these expressions. With Addressable 2.9.2, {a*}{.a*,b*,c} took over 6 seconds to reject 800 bytes on MRI 2.7 and over 15 seconds on JRuby. The 2.10.0 fix rewrites matching to run in linear time on non-memoizing engines by handling exploded members explicitly, but the vendor documents two residual exceptions that can still be polynomial on MRI below 3.3, JRuby and TruffleRuby: processors whose match method supplies a variable's own pattern, and templates combining an exploded variable or several variables in one expression with other expressions (e.g. {+c*,d}{&b}.{b}).
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
URI arrives over the network (AV:N) without auth (PR:N) or interaction, but success depends on vulnerable template shape plus an affected Ruby runtime (AC:H); impact is availability-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.3.0 until 2.10.0, Addressable URI templates with exploded variables adjacent to other variables generate ambiguous regular expressions that can backtrack polynomially on MRI Ruby before 3.2 and JRuby. Calling Template#match or Template#extract with a crafted URI can cause uncontrolled resource consumption 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 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 (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-140736
GHSA-xfg6-27c4-wr4r
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB