Skip to main content

Addressable CVE-2026-141529

| EUVDEUVD-2026-140686 LOW
Inefficient Algorithmic Complexity (CWE-407)
2026-12-01 GitHub_M GHSA-h78h-gj97-g737
3.7
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Submit oversized untrusted template pattern
  2. Exploit
    App compiles/inspects template (to_regexp/match/extract)
  3. Execution
    Quadratic regexp build consumes CPU
  4. Impact
    Repeated requests exhaust CPU, degrade availability

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
Exploitation Conditions

Exploitation requires that the application build an Addressable::Template from attacker-controlled (untrusted) pattern text AND then call one of the methods that compiles or inspects the pattern: match, extract, to_regexp, variables (aliases keys/names), variable_defaults, or freeze. The malicious pattern must be large - the advisory states a non-ASCII pattern of a few hundred kilobytes, or a run of ~5,000 adjacent expressions (~15 KB), to reach multi-second CPU cost (AC:H). What LIMITS exploitation: the cost lives in the template pattern, not in URIs being matched, so matching untrusted URIs against the application's own trusted templates is NOT affected; expand and partial_expand are NOT affected; and the compiled regexp is cached per template, so cost is normally paid once (except match/extract when called with a processor, which rebuild each call). Building templates from untrusted sources is described by the vendor as uncommon, further narrowing real exposure. Affected versions: 2.9.1 through below 2.10.0; fixed in 2.10.0 (updating is the complete fix; interim workarounds are to avoid building/matching/freezing untrusted templates or to limit their length, reject non-ASCII characters or pct-encode them, and reject long runs of adjacent expressions).

Impact

This is a genuinely low-priority issue, and the available signals agree rather than conflict. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L, base 3.7) scores only an availability impact of Low with high attack complexity, and the vendor advisory explains why AC:H is justified: the attacker must supply a template pattern of many kilobytes (hundreds of KB of non-ASCII text, or a run of roughly 5,000 adjacent expressions ≈15 KB) merely to cause a delay of a few seconds of CPU. This is a CWE-407 algorithmic-complexity (quadratic) denial of service, not memory corruption - confidentiality and integrity are untouched (C:N/I:N). The vuln.today decision label is 'monitor', consistent with the low severity. No KEV listing and no EPSS score were supplied, so there is no evidence of active or widespread exploitation; status is 'no public exploit identified' in the KEV/weaponized sense, though the GHSA advisory does contain demonstration PoC code (see below). Crucially, the flaw only affects applications that build Addressable::Template objects from untrusted input and then compile/inspect them - an uncommon pattern per the vendor - so the real-world exploitable population is far smaller than the gem's large install base. Net: a legitimate but low-urgency hardening item, not an emergency.

Exploit ScenarioDerived

An application that accepts URI templates from untrusted users (for example, a service that lets callers define their own Addressable::Template patterns) receives a maliciously large pattern - either a few hundred kilobytes of non-ASCII text or several thousand adjacent expressions like '{a}{b}{c}'. When the app calls match, extract, to_regexp, variables, variable_defaults, or freeze, the regexp is compiled in quadratic time, burning seconds of CPU per request and degrading availability under repeated submissions. The GHSA advisory publishes working Ruby PoC code demonstrating the quadratic blow-up, but no weaponized or in-the-wild exploit is reported; high attack complexity (large payloads needed per request) limits amplification.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.6% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Dec 02, 2026

Denial of service in the Addressable Ruby gem 2.9.1 through 2.9.x lets unauthenticated remote attackers consume excessive CPU when an application compiles or inspects an attacker-supplied template pattern that is large and either contains non-ASCII text or a long run of adjacent expressions. The flaw is a quadratic-time regexp build in Addressable::Template (CWE-407), reachable through match, extract, to_regexp, variables, variable_defaults and freeze; attack complexity is high because the pattern must be many kilobytes and templates from untrusted sources are uncommon. It is fixed in 2.10.0, there is no CISA KEV entry confirming active exploitation, and the upstream advisory includes a public proof-of-concept timing demonstration.

RemediationAI

Upgrade the addressable gem to 2.10.0 or later, which is the complete vendor fix; the patch is in commit ebe911f8623bcc664d2e6df079c96c325ad181c8 and release notes are at the GitHub advisory and release tag URLs. If upgrading is not immediately possible, the vendor's workarounds are to avoid matching, extracting, listing variables of, or freezing templates built from untrusted sources, or to limit their length; reject templates containing non-ASCII characters or pct-encode those characters before building the template; and reject templates with long runs of adjacent expressions. Because the compiled regexp is cached per template, a single build normally costs once, but match and extract called with a processor rebuild it on each call, so those paths warrant particular restriction.

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 Addressable::Template implements RFC 6570-style URI templates that lazily compile the template pattern into a regular expression and cache it on the template object. CWE-407 (inefficient algorithm) applies because the pre-2.10.0 code located each expression by character offset and, for each expression, scanned every later expression that had no literal text before it to decide whether the following text could begin with a comma; both non-ASCII patterns and long runs such as {a}{b}{c} therefore produced quadratic work. The fix in commit ebe911f switches to StringScanner byte offsets and a single backwards pass over the expression list, making construction linear. The cost is in the pattern rather than in the URI being matched, so applications that only match untrusted URIs against their own trusted templates are not exposed; expand and partial_expand do not build the regexp and are unaffected; and because the regexp is cached per template, the cost is normally paid once, except that match and extract with a processor rebuild it on every call.

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 3.7 LOW
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 3.7 LOW

Network-reachable template input (AV:N) with no auth (PR:N), but large crafted patterns are required (AC:H); only CPU/availability is affected (A:L), with no confidentiality or integrity impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/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
Low

Lifecycle Timeline

2
Patch available
Dec 01, 2026 - 22:03 EUVD
CVE Published
Dec 01, 2026 - 21:05 cve.org
LOW 3.7

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::Template builds its cached regular expression in quadratic time when an untrusted template pattern contains non-ASCII text or a long run of adjacent expressions. Operations that compile or inspect such templates, including match, extract, to_regexp, variables, variable_defaults, and freeze, can consume excessive CPU and cause denial of service. This issue is fixed in version 2.10.0.

Threat Intelligence Overview

EPSS Score
0.6%
Top 48% exploitable
Prevalence
High
Addressable is a very widely used Ruby/RubyGems URI library and transitive dependency
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 LOW
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

19
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +18
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-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-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