Skip to main content

Addressable CVE-2026-126353

| EUVDEUVD-2026-124733 MEDIUM
Inefficient Regular Expression Complexity (ReDoS) (CWE-1333)
2026-11-12 security-advisories@github.com
5.9
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify endpoint using Template#match/#extract
  2. Delivery
    Craft URI with long member run (e.g. 'a,'×5000)
  3. Exploit
    Submit to multi-exploded-variable template
  4. Execution
    Trigger polynomial regex backtracking
  5. Impact
    Exhaust 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

addressable 2.3.0, < 2.9.1

Affected Packages

euvd addressable fix: 2.9.1

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

Vendor (github) PRIMARY 5.9 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.9 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Nov 12, 2026 - 23:03 EUVD
CVE Published
Nov 12, 2026 - 22:19 cve.org
MEDIUM 5.9

DescriptionCVE.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

EPSS Score
0.3%
Top 76% exploitable
Prevalence
High
addressable is a widely used Ruby gem, a transitive dependency of many libraries
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
High

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Ruby

View all
CVE-2017-17405 HIGH POC
8.8 Dec 15

Ruby before 2.4.3 allows Net::FTP command injection. Rated high severity (CVSS 8.8), this vulnerability is remotely expl

CVE-2017-17790 CRITICAL POC
9.8 Dec 20

The lazy_initialize function in lib/resolv.rb in Ruby through 2.4.3 uses Kernel#open, which might allow Command Injectio

CVE-2017-14064 CRITICAL POC
9.8 Aug 31

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

CVE-2016-2336 CRITICAL POC
9.8 Jan 06

Type confusion exists in two methods of Ruby's WIN32OLE class, ole_invoke and ole_query_interface. Rated critical severi

CVE-2026-77602 CRITICAL POC
9.9 Sep 23

Authenticated remote code execution in OpenC3 COSMOS (Ruby gem 'openc3' versions 5.1.0 through 7.2.1) lets any logged-in

CVE-2026-44266 CRITICAL POC
9.8 Nov 03

Ruby code execution in Elo (npm @enspirit/elo) through 1.0.0 lets an attacker who controls Elo source gain arbitrary Rub

CVE-2016-2337 CRITICAL POC
9.8 Jan 06

Type confusion exists in _cancel_eval Ruby's TclTkIp class method. Rated critical severity (CVSS 9.8), this vulnerabilit

CVE-2016-2339 CRITICAL POC
9.8 Jan 06

An exploitable heap overflow vulnerability exists in the Fiddle::Function.new "initialize" function functionality of Rub

CVE-2017-9225 CRITICAL POC
9.8 May 24

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

CVE-2026-27614 CRITICAL POC
9.3 Feb 25

Stored XSS in Bugsink error tracking tool before 2.0.13 allows unauthenticated attackers to inject persistent scripts th

CVE-2017-0898 CRITICAL POC
9.1 Sep 15

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

CVE-2013-4164 MEDIUM POC
6.8 Nov 23

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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy