Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify endpoint matching user input against Addressable template
-
ExploitSubmit crafted long URI matching vulnerable template shape
-
ExecutionTrigger polynomial regex backtracking in Template#match
-
ImpactExhaust CPU, causing denial 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-supplied URIs, matched against a URI template containing one of three specific vulnerable shapes: (1) a multi-variable + or expression followed by comma-capable text (a literal comma or another expression), e.g. {+a,b,c},{+d} or {+v1,v2,v3,v4,v5,v6,v7,v8}{c*}; (2) a variable name repeated within one expression, e.g. {+a,c,c,c}; or (3) adjacent expressions with no literal text between them where one has several variables, e.g. {a,b}{c} or {a,b}{c,d}{e,f}. It is further gated by the Ruby runtime: all three shapes are exploitable on MRI Ruby < 3.2 and JRuby; shapes 1 and 2 are also exploitable on MRI Ruby 3.2 and TruffleRuby 40.0; MRI Ruby 3.3 and later are NOT affected. Limiting factors that reduce real-world exposure: applications using only Addressable's URI parsing (not template matching), or only calling Template#expand, are unaffected; a non-vulnerable template shape is safe; and upgrading the runtime to MRI Ruby 3.3+ (where supported) removes exposure even on unpatched library versions. Vendor mitigations named in the advisory: upgrade to Addressable 2.10.0, upgrade to MRI Ruby 3.3+, bound user-supplied URI length (works on all runtimes since cost is polynomial), or apply Timeout.timeout / Regexp.timeout on MRI and JRuby (timeouts do not stop matches on TruffleRuby). |
| Impact | This is a CWE-1333 Regular Expression Denial of Service (ReDoS) in the Addressable Ruby gem, rated CVSS 5.9 (medium) with vector AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - availability-only impact, no confidentiality or integrity exposure. The AC:H and the vuln.today 'this_month' priority label are consistent signals that this is a real but non-emergency issue: exploitation is network-reachable and unauthenticated, but conditioned on the application actually matching untrusted input against a vulnerable URI template shape AND running on a backtracking regex engine (MRI Ruby < 3.3 or JRuby for all shapes; MRI 3.2 and TruffleRuby 40.0 for the first two). KEV status is not listed in the input, so there is no confirmation of active exploitation. No EPSS score was provided, so probabilistic exploitation likelihood cannot be weighed here - this is a missing signal, not a low one. The GHSA advisory publicly documents exact triggering template shapes and measured timings (e.g., ~2.6-15+ seconds to reject 1 KB for {a,b}{c,d}{e,f}), which constitutes a public PoC reference but is not verified as working weaponized exploit code. Net: a legitimately exploitable DoS against affected deployments warranting patching within the vendor-suggested timeframe, but not a drop-everything confidentiality/integrity emergency; the AC:H and feature/runtime dependencies meaningfully narrow real-world exposure. |
| Exploit ScenarioDerived | A remote, unauthenticated attacker sends a specially crafted, moderately long URI to an application that matches untrusted input against a vulnerable Addressable URI template (for example {a,b}{c,d}{e,f}, {+v1,v2,v3,v4,v5,v6,v7,v8}{c*}, or {+a,c,c,c}). On a backtracking Ruby runtime, Template#match or Template#extract enters polynomial/catastrophic regex backtracking, burning CPU for seconds per request and starving the service. Given AC:H, the attacker needs the app to expose template matching of user input and to run a vulnerable Ruby; the GHSA advisory publicly documents the triggering shapes and timing figures as a PoC reference, though no verified working exploit tool is confirmed in the input. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Regular expression denial of service in the Addressable Ruby gem (2.3.0 through 2.9.2) allows crafted URIs to force excessive regex backtracking when an application calls Template#match or Template#extract against a template containing one of three vulnerable shapes - a multi-variable + or
expression followed by comma-capable text, a repeated variable name inside one expression, or adjacent expressions where one carries several variables. Exposure is gated by runtime as well as template shape: MRI Ruby before 3.2 and JRuby are vulnerable to all three shapes, MRI Ruby 3.2 and TruffleRuby 40.0 to the first two, while MRI Ruby 3.3 and later are unaffected. Applications that only parse URIs or only call Template#expand are not exposed, and no public exploit code was identified at time of analysis.
RemediationAI
Vendor-released patch: Addressable 2.10.0, available from the release page at https://github.com/sporkmonger/addressable/releases/tag/addressable-2.10.0, with the source change in commit https://github.com/sporkmonger/addressable/commit/576662e4791df3cfd17c944041a98f516d3c0734; the advisory is at https://github.com/sporkmonger/addressable/security/advisories/GHSA-xj9m-f88p-5j38. Upgrading the library is the complete fix and should be paired, where possible, with moving to MRI Ruby 3.3 or later, which the advisory names as an independent mitigation for applications that do not run JRuby or TruffleRuby and which removes exposure even on unpatched gem versions. If neither is immediately possible, the advisory's remaining options are: avoid matching user-supplied input against templates that place several variables in one + or
expression followed by a comma or another expression, that repeat a variable name within one expression, or that place expressions adjacent to each other where one has several variables; cap the length of user-supplied URIs before matching, which works on every runtime including TruffleRuby but only bounds the polynomial cost rather than eliminating it; and wrap Template#match or Template#extract calls in a short Timeout.timeout on MRI Ruby and JRuby, accepting that it interrupts the matching thread at an arbitrary point so it is not safe in every application and does not stop a regexp match on TruffleRuby, or set Regexp.timeout on MRI Ruby 3.2, which raises Regexp::TimeoutError but applies process-wide to every regular expression. Note that the 2.10.0 remediation explicitly does not cover processor-supplied variable patterns or certain combined exploded or multi-variable expression shapes, which remain polynomial 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 a pure-Ruby alternative to the standard library's URI implementation, and its URI-template support (RFC 6570 style expressions such as {+a,b,c} or {c*}) works by compiling each template into a regular expression whose capture groups map matched substrings back to template variables. CWE-1333 (Inefficient Regular Expression Complexity) applies here: the generated patterns contain nested or overlapping quantifiers, so a failing match causes the engine to enumerate a combinatorial number of ways to divide a comma run or character run among several variables. The advisory is explicit that the cost is polynomial rather than exponential and that the severity depends entirely on the Ruby regexp engine: engines that backtrack without memoization - MRI before 3.2 and JRuby - are vulnerable to all three shapes, MRI 3.2 is slow for the first two and for the third since 2.9.1 (per GHSA-jrfq-gw62-2f3j), TruffleRuby 40.0 falls back to backtracking for the first two, and MRI 3.3 and later are not affected. Measured rejection times on Addressable 2.9.2 were roughly 4 seconds for 200 bytes of {+v1,...,v8}{c*} on MRI 2.7/3.2 and over 15 seconds on JRuby and TruffleRuby, 3.6 seconds for 206 bytes of a comma-led exploded template on MRI, and 2.6 seconds for 1 KB of {a,b}{c,d}{e,f} on MRI 2.7 (over 15 seconds on JRuby). The 2.10.0 fix reworks template compilation so matching is linear, but the advisory states two residual polynomial cases remain on MRI before 3.3, JRuby and TruffleRuby: templates where a processor's match method supplies its own variable pattern (2.10.0 deliberately keeps every choice open so the pattern decides values), and certain combinations of an exploded or multi-variable expression with other expressions, such as {+c*,d}{&b}.{b}. The package is identified in CPE data as cpe:2.3:a:sporkmonger:addressable:*:*:*:*:*:*:*:*.
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
Network-reachable crafted URI with no auth or interaction; AC:H because exploitation needs a vulnerable template shape, untrusted input reaching Template#match/#extract, and a backtracking Ruby runtime; availability-only 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.3.0 until 2.10.0, Addressable URI templates can generate ambiguous regular expressions when a multi-variable expression is followed by comma-capable text, a variable name repeats within one expression, or adjacent expressions include one with several variables. Calling Template#match or Template#extract with a crafted URI can trigger excessive backtracking and denial of service on MRI Ruby before 3.2 and JRuby. MRI Ruby 3.2 and TruffleRuby 40.0 are additionally affected by the first two shapes, while MRI Ruby 3.3 and later is unaffected. The remediation does not cover processor-supplied variable patterns or certain combined exploded or multi-variable expression shapes that remain polynomial. 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
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:
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-140685
GHSA-xj9m-f88p-5j38
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB