Skip to main content

Addressable EUVDEUVD-2026-124732

| CVE-2026-126352 MEDIUM
Inefficient Regular Expression Complexity (ReDoS) (CWE-1333)
2026-11-12 security-advisories@github.com GHSA-9f42-57jx-vpp3
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 matching untrusted URIs via Addressable Template
  2. Delivery
    Craft ~2 KB URI targeting multi-variable or adjacent expression
  3. Exploit
    Submit request triggering catastrophic regex backtracking
  4. Execution
    Worker thread consumed for seconds per request
  5. Impact
    Resource 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% 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 (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

addressable 2.3.0, < 2.9.1

Affected Packages

rubygems addressable fix: 2.9.1

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

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

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

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
Red Hat 5.9 MEDIUM

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

EPSS Score
0.4%
Top 62% exploitable
Prevalence
High
Addressable is an extremely widely-depended-upon Ruby URI/HTTP gem across the ecosystem
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA MSRC Vendor CIRCL GitHub

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.4%
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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

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

Vendor StatusVendor

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