Skip to main content

Addressable CVE-2026-141525

| EUVDEUVD-2026-140735 MEDIUM
Inefficient Regular Expression Complexity (ReDoS) (CWE-1333)
2026-12-01 GitHub_M GHSA-jrfq-gw62-2f3j
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
    Send crafted URI to exposed endpoint
  2. Delivery
    Reach Addressable Template#match/#extract call
  3. Exploit
    Trigger polynomial regex backtracking in template
  4. Execution
    Exhaust CPU and worker threads
  5. Impact
    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-controlled URIs against an affected template - specifically templates using lookaround-generating expressions such as {a}{b}, {a,b}, {/a,b}, {?a*,b}, combinations like /{year}-{month}-{day}/{a}{b}, or an exploded variable followed by unexploded ones - AND the process must run on MRI Ruby 3.2 or TruffleRuby 40.0. Limiting factors that reduce real-world risk: applications using only URI parsing (not template matching), or that only call Template#expand, are unaffected; MRI Ruby 2.7, 3.1, 3.3, 4.0 and JRuby 9.4 are confirmed NOT affected; and MRI Ruby 3.2 reached end of life on 2026-03-31. After upgrading to 2.10.0, two residual cases remain polynomial on MRI < 3.3, JRuby, and TruffleRuby: when a processor's match gives a variable its own pattern, and for some templates combining exploded/multi-variable expressions with others (e.g. {+c*,d}{&b}.{b}).

Impact

This is a medium-severity availability-only flaw (CVSS 5.9, CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H): network-reachable and unauthenticated (PR:N) but with high attack complexity (AC:H) and no confidentiality or integrity impact (C:N/I:N), only denial of service (A:H). The signals are consistent with a real-but-bounded concern rather than an emergency: the vuln.today Decision label is 'this_month' (not act_now/emergency), the vulnerability is NOT listed in CISA KEV, and no public exploit is identified in the input. EPSS exploitation probability was NOT supplied, so probabilistic exploitation likelihood cannot be quantified here. The AC:H rating is well supported by the evidence, which shows exploitability is gated on both a specific template shape AND a specific Ruby runtime (MRI Ruby 3.2 or TruffleRuby 40.0) - it is NOT attacker-controlled alone, and MRI Ruby 3.2 reached end of life on 2026-03-31, shrinking the exposed population over time. The net picture is a legitimate ReDoS worth patching on a normal maintenance cadence, not a high-urgency drop-everything issue, because impact is limited to availability and exploitation requires an affected runtime plus application code that feeds user-supplied URIs into Template#match/#extract.

Exploit ScenarioDerived

An application running MRI Ruby 3.2 (or TruffleRuby 40.0) uses Addressable's Template#match or Template#extract to match attacker-supplied URIs against a vulnerable template (e.g. /{year}-{month}-{day}/{a}{b}). An unauthenticated attacker submits a short crafted URI (a few KB) that forces polynomial-time regex backtracking, consuming seconds to minutes of CPU per request and exhausting worker capacity. No public exploit code is identified, though the vendor advisory publishes concrete example templates and timing figures that demonstrate the condition.

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

Polynomial-time regular-expression backtracking in the Addressable Ruby gem (2.9.1 through 2.9.2) lets unauthenticated remote attackers cause denial of service when an application passes a crafted URI to Template#match or Template#extract against a template that generates lookaround-bearing regexps. Impact is availability-only (CVSS 5.9, AV:N/AC:H/PR:N/UI:N/C:N/I:N/A:H) and is constrained to processes running MRI Ruby 3.2 or TruffleRuby 40.0, since MRI Ruby 3.3+ memoizes regexps containing lookarounds and MRI 2.7/3.1/4.0 and JRuby 9.4 are confirmed unaffected. The vendor shipped a fix in 2.10.0; no public exploit code or CISA KEV entry was reported at time of analysis, and MRI Ruby 3.2 reached end of life on 2026-03-31, which narrows the exposed population.

RemediationAI

Vendor-released patch: upgrade the addressable gem to 2.10.0 (commit 576662e4791df3cfd17c944041a98f516d3c0734, release https://github.com/sporkmonger/addressable/releases/tag/addressable-2.10.0, advisory https://github.com/sporkmonger/addressable/security/advisories/GHSA-jrfq-gw62-2f3j). Because the vulnerability is runtime-gated, the vendor's preferred workaround is to run on MRI Ruby 3.3 or later, which memoizes regexps with lookarounds and is unaffected; MRI Ruby 3.2 reached end of life on 2026-03-31, so moving off it is the durable fix. If upgrade is not immediately possible, bound the input: limit the length of user-supplied URIs before matching, which caps rather than eliminates the polynomial cost and is the only option that also works on TruffleRuby. On MRI Ruby 3.2, wrap Template#match and Template#extract calls that process user data in a short Timeout.timeout, accepting that it interrupts the matching thread at an arbitrary point and is therefore not safe in every application; alternatively set Regexp.timeout to raise Regexp::TimeoutError on slow matches, noting it applies process-wide to every regular expression. Both timeout approaches are ineffective at stopping a regexp match on TruffleRuby. Applications that only use Addressable's URI parsing or Template#expand need no change. After upgrading to 2.10.0, review templates that combine exploded or multi-variable expressions with other expressions (e.g. {+c*,d}{&b}.{b}) or that use a processor supplying per-variable patterns, since those can still exhibit polynomial matching on MRI before 3.3, JRuby and TruffleRuby.

Affected VersionsENISA

addressable 2.9.1, < 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 an alternative URI implementation for Ruby, and its RFC 6570 URI template engine compiles a template into a single regular expression used by Template#match and Template#extract. Version 2.9.1 rewrote the generated regexps to address earlier advisories, introducing lookaround assertions for expressions such as {a}{b}, {a,b}, {/a,b}, {?a*,b} and exploded-variable-followed-by-unexploded combinations. On MRI Ruby 3.2, a regexp containing any lookaround is not memoized, and because memoization is decided for the whole template regexp, a single such expression makes the entire match backtrack as on older Rubies; TruffleRuby 40.0 likewise backtracks on some of these patterns. The result is CWE-1333 (inefficient regular expression complexity): matching time grows polynomially rather than linearly in the length of the input URI, so a small attacker-supplied URI can pin a worker thread for seconds to minutes. Vendor benchmarks on MRI Ruby 3.2 show /{year}-{month}-{day}/{a}{b} taking 12 seconds to reject 2 KB versus under 1 ms on 2.9.0, and {?a,a*,a*}{a*}{.a*,b*,c} taking over 15 seconds; on TruffleRuby 40.0 the same template exceeds 10 minutes for 2 KB. The specific trigger is template compilation combined with crafted URI input, not URI parsing itself: applications that use Addressable only for parsing, or that only call Template#expand, are unaffected.

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

Remote and unauthenticated (AV:N/PR:N), but exploitation is gated on a specific template shape plus an affected Ruby runtime (AC:H); impact is CPU-exhaustion denial of service only (A:H, C/I:N).

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_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 - 20:57 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.9.1 until 2.10.0, Addressable URI template regular expressions containing lookaround assertions can lose regular-expression memoization on MRI Ruby 3.2 and can backtrack on TruffleRuby 40.0. Calling Template#match or Template#extract with a crafted URI against an affected template can consume polynomial CPU time and cause denial of service. The remediation does not cover processor-supplied variable patterns or certain templates that combine exploded or multi-variable expressions with other expressions, which can remain polynomial on MRI Ruby before 3.3, JRuby, and TruffleRuby. This issue is fixed in version 2.10.0.

Threat Intelligence Overview

EPSS Score
0.7%
Top 44% exploitable
Prevalence
High
widely-used Ruby URI gem, dependency of many Ruby projects
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
4 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-141528 MEDIUM
5.9 Dec 01

Regular expression denial of service in the Addressable Ruby gem (2.3.0 through 2.9.2) allows crafted URIs to force exce

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