Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify endpoint using Template#match/#extract
-
DeliveryCraft URI with long member run (e.g. 'a,'×5000)
-
ExploitSubmit to multi-exploded-variable template
-
ExecutionTrigger polynomial regex backtracking
-
ImpactExhaust CPU thread, 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 target application call Addressable::Template#match or Template#extract on attacker-controlled URI input, using a template whose expression contains more than one exploded variable in the same set (e.g. {+a*,b*}, {+a*,b*,c*}, {/a*,b*}, {?a*,b*}). It additionally requires a Ruby runtime whose regex engine does not memoize backtracking: MRI Ruby before 3.2, JRuby (9.4 confirmed), or TruffleRuby 40.0; on MRI Ruby 3.2 only the '+' and '#' operator expressions are exploitable (due to possessive quantifiers), and MRI Ruby 3.3+ is NOT affected for any operator. Key limiting factors: applications that use only URI parsing or only Template#expand are unaffected; single-exploded-variable templates are not vulnerable; and simply running MRI Ruby 3.3 or later neutralizes the issue, as does applying a short timeout around match/extract calls on untrusted input. The complete fix is upgrading addressable to 2.9.1. |
| Impact | This is a genuine but moderate-priority issue, best characterized as a medium-severity availability flaw rather than a top-tier emergency. The provided CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H, 5.9) is consistent with the evidence: a network-reachable, unauthenticated ReDoS (CWE-1333) that impacts only availability, with AC:H reflecting that exploitation depends on the victim application using a specific vulnerable template construct and running on a non-memoizing regex engine. Exploitation status is 'no public exploit identified at time of analysis' in the sense of a packaged weapon - this is NOT in CISA KEV and there is no confirmed working-exploit reference - however the GHSA advisory and the fix's test suite publicly document concrete DoS payloads (e.g. templates such as {+a*,b*,c*} matched against ~1 KB of input taking over 12 seconds on MRI 3.2), so the triggering recipe is openly available and trivially reproducible for anyone who finds a vulnerable call site. No EPSS score and no SSVC decision framework were supplied; the only priority signal is vuln.today's 'this_month' label, which aligns with a non-KEV, availability-only, exploit-conditions-dependent bug. The practical risk is bounded by a hard prerequisite - the application must call Template#match or Template#extract on attacker-controlled input against a template containing more than one exploded variable, on an affected runtime - so despite the network vector this is far from universally exploitable and should be patched on a normal maintenance cadence rather than as a fire drill. |
| Exploit ScenarioDerived | An application that accepts a user-supplied URI and matches it against an Addressable URI template with several exploded variables (e.g. {+a*,b*,c*} or {?a*,b*}) receives a crafted input consisting of a long run of members (for example 'a,' repeated thousands of times). The ambiguous generated regular expression backtracks polynomially (O(n^k) for k exploded variables), pinning a CPU thread for many seconds per request and starving the service of worker capacity. No authentication or user interaction is required (PR:N/UI:N), but the attack only works where the application exposes such template matching on a vulnerable Ruby runtime; the advisory and fix tests publicly document working payloads, though no packaged exploit tool was identified. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 12, 2026
Regular expression denial of service in the Addressable Ruby gem's URI template matching (affected range >= 2.3.0, < 2.9.1) lets remote attackers tie up a thread by supplying crafted URI input to Template#match or Template#extract when the template expression contains more than one exploded variable, such as {+a*,b*} or {?a*,b*}. The generated regexes backtrack polynomially, so a 1 KB input against {+a*,b*,c*} can take over 12 seconds to reject on MRI Ruby 3.2 with version 2.9.0. Practical exposure depends heavily on environment: only applications that actually match untrusted input are affected, and only on regex engines that do not memoize backtracking - MRI Ruby before 3.2, JRuby (9.4 confirmed), and TruffleRuby 40.0, with MRI 3.2 limited to the '+' and '#' operators and MRI 3.3+ unaffected entirely. No public exploit code was identified at time of analysis, and EPSS/KEV data were not provided; the issue is best treated as a medium-severity availability flaw with a vendor-released fix in 2.9.1.
RemediationAI
Vendor-released patch: upgrade addressable to 2.9.1 (rubygems/addressable fixed in 2.9.1), which reworks the template-to-regex compilation and leaves match results unchanged; the release is at https://github.com/sporkmonger/addressable/releases/tag/addressable-2.9.1 and the underlying change is commit 49aecf97bf6f6675717f1078a0b45f95c428e103, documented in GHSA-4w5q-wg7v-w6gp. If the gem cannot be upgraded immediately, the vendor lists three concrete workarounds: move the application to MRI Ruby 3.3 or later, which memoizes the affected regexes and neutralizes the issue for all operators - this does not help deployments on JRuby or TruffleRuby, which remain vulnerable; avoid matching user-supplied input against templates that contain more than one exploded variable in the same expression, which removes the vulnerable pattern shape but requires auditing every template the application uses and restricts legitimate RFC 6570 usage; or wrap every call to Template#match and Template#extract that handles untrusted data in a short timeout, which bounds thread consumption but still allows repeated requests to burn CPU and adds latency and exception handling to the calling code. Applications that only use Addressable's URI parsing or only Template#expand need no action for this issue.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
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 implementation of Ruby's standard URI library, and its Template class implements RFC 6570 URI templates. Each expression in a template (for example {+a*,b*}) is compiled into a regular expression, and the '*' modifier marks a variable as 'exploded', meaning it can absorb a run of members. When several exploded variables appear in the same expression, the compiled pattern gives the regex engine many valid ways to divide one run of members among those variables - O(n^k) partitions for k variables - so an input crafted to fail only at the very end forces the engine to try each partition, a classic CWE-1333 inefficient regular expression complexity (ReDoS) condition. Whether this is exploitable in practice is entirely a property of the regex engine: engines that memoize backtracking (MRI Ruby 3.3 and later) collapse the search, while MRI Ruby before 3.2, JRuby 9.4 and TruffleRuby 40.0 do not, and MRI 3.2 fails to memoize patterns containing the possessive quantifiers that 2.9.0 emits for the '+' and '#' operators. The upstream fix in commit 49aecf97bf6f6675717f1078a0b45f95c428e103 rewrites the pattern construction in lib/addressable/template.rb so that, depending on operator and variable position, later variables are anchored to empty matches, restricted to leading joiners, or constrained by lookbehind - collapsing the ambiguous partitioning while keeping match results unchanged, as evidenced by the extensive new spec cases. Version 2.8.10 provided only a partial mitigation.
Know when Ruby 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, unauthenticated ReDoS; AC:H because exploitation requires the app to use a multi-exploded-variable template on a non-memoizing runtime; availability-only impact, no C/I.
Primary rating from Vendor (github).
CVSS VectorVendor: github
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.9.1, URI template expressions containing several exploded variables generate ambiguous regular expressions that can divide a run of members among the variables in polynomially many ways. Template#match or Template#extract processing of an attacker-controlled URI can therefore consume a thread and cause denial of service. The flaw affects MRI Ruby before 3.2 and JRuby, TruffleRuby 40.0, and plus or number-sign expressions on MRI Ruby 3.2. MRI Ruby 3.3 and later, URI parsing, and Template#expand are unaffected. This issue is fixed in version 2.9.1.
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.
Ruby before 2.4.3 allows Net::FTP command injection. Rated high severity (CVSS 8.8), this vulnerability is remotely expl
The lazy_initialize function in lib/resolv.rb in Ruby through 2.4.3 uses Kernel#open, which might allow Command Injectio
Ruby through 2.2.7, 2.3.x through 2.3.4, and 2.4.x through 2.4.1 can expose arbitrary memory during a JSON.generate call
Type confusion exists in two methods of Ruby's WIN32OLE class, ole_invoke and ole_query_interface. Rated critical severi
Authenticated remote code execution in OpenC3 COSMOS (Ruby gem 'openc3' versions 5.1.0 through 7.2.1) lets any logged-in
Ruby code execution in Elo (npm @enspirit/elo) through 1.0.0 lets an attacker who controls Elo source gain arbitrary Rub
Type confusion exists in _cancel_eval Ruby's TclTkIp class method. Rated critical severity (CVSS 9.8), this vulnerabilit
An exploitable heap overflow vulnerability exists in the Fiddle::Function.new "initialize" function functionality of Rub
An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7
Stored XSS in Bugsink error tracking tool before 2.0.13 allows unauthenticated attackers to inject persistent scripts th
Ruby before 2.4.2, 2.3.5, and 2.2.8 is vulnerable to a malicious format string which contains a precious specifier (*) w
Heap-based buffer overflow in Ruby 1.8, 1.9 before 1.9.3-p484, 2.0 before 2.0.0-p353, 2.1 before 2.1.0 preview2, and tru
EUVD-2026-124733
NVD
CVE.org
EPSS
GitHub
Exploit-DB