Skip to main content

Addressable CVE-2026-141528

| EUVDEUVD-2026-140685 MEDIUM
Inefficient Regular Expression Complexity (ReDoS) (CWE-1333)
2026-12-01 GitHub_M GHSA-xj9m-f88p-5j38
5.9
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Identify endpoint matching user input against Addressable template
  2. Exploit
    Submit crafted long URI matching vulnerable template shape
  3. Execution
    Trigger polynomial regex backtracking in Template#match
  4. Impact
    Exhaust 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.

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

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

Alert me

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

addressable 2.3.0, < 2.10.0

Affected Packages

rubygems addressable fix: 2.10.0

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

Vendor (GitHub_M) 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 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.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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
Dec 01, 2026 - 22:03 EUVD
CVE Published
Dec 01, 2026 - 21:02 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.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

EPSS Score
0.7%
Top 44% exploitable
Prevalence
High
extremely popular Ruby gem, transitive dependency of many web apps and libraries
Threat Intel
1
1 source
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.7%
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
Medium
Technical Impact
Partial

Priority Score

31
Low Medium High Critical
KEV: 0
EPSS: +1
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.

CVE-2026-35611 HIGH
7.5 Apr 07

Regular expression denial of service (ReDoS) in the Addressable Ruby library versions 2.3.0 through 2.8.x allows unauthe

CVE-2021-32740 HIGH
7.5 Jul 06

Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. Rated hi

CVE-2026-141527 MEDIUM
5.9 Dec 01

Polynomial backtracking in Addressable's URI template matching lets a crafted URI drive Template#match or Template#extra

CVE-2026-141526 MEDIUM
5.9 Dec 01

Polynomial-time regular expression backtracking in the Addressable Ruby gem's URI template matcher (Template#match and T

CVE-2026-141525 MEDIUM
5.9 Dec 01

Polynomial-time regular-expression backtracking in the Addressable Ruby gem (2.9.1 through 2.9.2) lets unauthenticated r

CVE-2026-141539 MEDIUM
4.8 Dec 01

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

CVE-2026-141538 MEDIUM
4.8 Dec 01

Addressable, the Ruby URI library, fails to reject or percent-encode host-changing delimiters in the userinfo component:

CVE-2026-141529 LOW
3.7 Dec 01

Denial of service in the Addressable Ruby gem 2.9.1 through 2.9.x lets unauthenticated remote attackers consume excessiv

CVE-2026-141524 LOW
3.7 Dec 01

Addressable, the Ruby URI and RFC 6570 template library, takes the variable name in an unexploded ';', '?', or '&' templ

CVE-2026-141535 LOW
3.7 Dec 01

SSRF filter bypass in the Addressable Ruby gem (2.3.5 through 2.9.2) lets an attacker-supplied URL pass a destination ch

CVE-2026-141537 LOW
3.7 Dec 01

Quadratic-time Unicode normalization in the Ruby Addressable gem (2.0.0 through 2.9.2) lets remote attackers burn CPU on

CVE-2026-141536 LOW
3.7 Dec 01

Addressable's URI#request_uri (versions 2.1.2 through 2.9.2) returns the path and query verbatim, so stored control char

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