Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify endpoint matching untrusted URIs via Addressable Template
-
DeliveryCraft ~2 KB URI targeting multi-variable or adjacent expression
-
ExploitSubmit request triggering catastrophic regex backtracking
-
ExecutionWorker thread consumed for seconds per request
-
ImpactResource exhaustion and 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 that the consuming application pass attacker-controlled URIs to Addressable::Template#match or Template#extract against a template containing either multiple variables in one expression (any operator other than + and #, e.g. {/owner,repo,ref}, {.a,b}, {;a,b,c}), a large + or expression with many variables (e.g. {+v1,...,v10}), or several adjacent single-variable expressions (e.g. {+a}{+b}{+c} or {a}{b}{c}). It also requires a regex engine that backtracks without memoization: MRI Ruby < 3.2 and JRuby are vulnerable to all forms, while the many-variable + /form additionally affects MRI Ruby 3.2 and TruffleRuby 40.0. LIMITING FACTORS: applications using only URI parsing or only Template#expand are not affected; MRI Ruby 3.3 and later are not affected by any form (memoization); and the attacker must be able to supply the URI matched against a qualifying multi-variable template, so single-variable or expand-only usage is not exploitable. |
| Impact | This is a CWE-1333 regular-expression denial-of-service (ReDoS) in the Addressable Ruby gem's URI template matcher. The input CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H, base 5.9 Medium) is internally consistent with the mechanism: remote, unauthenticated, no user interaction, availability-only impact, and AC:H reflecting the genuine preconditions (the consuming application must call Template#match or Template#extract on attacker-controlled URIs against a template with several variables in one expression or adjacent expressions, AND run on a regex engine that backtracks without memoization). No EPSS score, no SSVC automatable/technical-impact fields, and no KEV entry were supplied, so quantitative exploitation-probability signals are absent. The vuln.today decision label is 'this_month' (not act_now/emergency), which aligns with a Medium-severity, availability-only issue rather than a drop-everything priority. Exploitation status: no public exploit identified at time of analysis - the three references are only the fix commit, the release tag, and the GHSA advisory; the advisory does describe a concrete crafted-input class (~2 KB occupying a thread for many seconds) but provides no linked weaponized exploit code. Net assessment: a real but bounded priority - impactful only for Ruby services that match untrusted input against multi-variable templates on affected runtimes, with no confidentiality or integrity exposure. |
| Exploit ScenarioDerived | A Ruby web service uses Addressable::Template#match or #extract to route or parse incoming request paths/URLs that are derived from attacker-controlled input. An attacker sends a small (~2 KB) specially crafted URI against a multi-variable template such as 'http://example.com/repos{/owner,repo,ref}', forcing the generated regular expression into polynomial or exponential backtracking and pinning a worker thread for many seconds, degrading or denying service. No authenticated access or user interaction is required; no public weaponized exploit code is identified, though the advisory documents the input pattern precisely. |
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 (2.3.0 through 2.9.0) lets unauthenticated remote attackers occupy a thread for many seconds - roughly 2 KB of crafted URI is enough for a three-variable path template - by supplying attacker-controlled input to Template#match or Template#extract when the template places several variables in one expression or puts several expressions next to each other. Only regex engines that backtrack without memoization are exposed: MRI Ruby before 3.2 and JRuby are vulnerable to all three expression forms, while the many-variable '+' and '#' form additionally affects MRI Ruby 3.2 and TruffleRuby 40.0; MRI Ruby 3.3 and later are not affected by any form, and URI parsing plus Template#expand are unaffected. The vendor-released patch is 2.9.1, no public exploit has been identified at time of analysis, and the CVSS 5.9 score with AC:H reflects the precondition that a qualifying multi-variable template must actually be matched against attacker-supplied input.
RemediationAI
Upgrade the addressable gem to 2.9.1 (https://github.com/sporkmonger/addressable/releases/tag/addressable-2.9.1), which contains the regex-generation rewrite in commit f2b27b3ab252e56b3fa3519f7ebb491d54cf7b7c; downgrading is not an option because every installable release from 2.3.2 through 2.9.0 is affected. Where the gem cannot be updated immediately, the advisory's workarounds are to run on MRI Ruby 3.3 or later if the application does not use JRuby or TruffleRuby, to avoid matching user-supplied input against templates with several variables in one expression or with several adjacent expressions, and to wrap any call to Template#match or Template#extract that processes user-supplied data in a short timeout - noting that the timeout bounds resource consumption per call rather than removing the backtracking itself, so repeated requests can still consume thread time.
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 RFC 6570 templates into regular expressions at runtime. The root cause is CWE-1333 (Inefficient Regular Expression Complexity): the generator that builds these patterns emitted ambiguous alternations and optional separators, so a single run of input characters could be divided among the expression's variables in O(n^k) ways for k variables, and the '+'/'#' forms produced exponentially failing matches as variable count grew, while adjacent single-variable expressions were polynomial in input length. Because the vulnerable path is regular-expression matching, exploitability depends entirely on the host regex engine's backtracking behaviour - engines that memoize (MRI Ruby 3.3+) are immune, whereas MRI Ruby < 3.2 and JRuby backtrack without memoization, MRI Ruby 3.2 does not memoize patterns containing the possessive quantifiers that 2.9.0 emits for '+' and '#', and TruffleRuby 40.0 falls back to backtracking for those constructs. The upstream fix commit f2b27b3ab252e56b3fa3519f7ebb491d54cf7b7c rewrites the regex generation so alternatives are tried in the same order with the same results but without the ambiguous branching, and the changelog notes match results are unchanged.
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
Remote unauthenticated crafted URI with no interaction (AV:N/PR:N/UI:N); AC:H because exploitation depends on a non-memoizing runtime and a qualifying multi-variable template; availability-only impact (C:N/I:N/A:H).
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 templates with several variables in one expression or several adjacent expressions generate ambiguous regular expressions. Affected forms include multi-variable expressions using operators other than plus and number sign, large plus or number-sign expressions, and adjacent single-variable expressions. Template#match or Template#extract can backtrack polynomially or exponentially on attacker-controlled URIs, causing denial of service on MRI Ruby before 3.2 and JRuby, with the large plus and number-sign form also affecting MRI Ruby 3.2 and TruffleRuby 40.0. 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-124732
GHSA-9f42-57jx-vpp3
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB