Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted URI to app endpoint
-
ExploitTemplate#match/#extract reads URI-supplied variable names
-
ExecutionMapping gains unintended keys or reassigns a variable
-
ImpactApplication mass-assigns or trusts tainted values
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires BOTH: (1) the application matches an untrusted/attacker-controlled URI against an Addressable::Template that contains an unexploded ';', '?', or '&' expression (e.g. /search{?q} or /files{;version}/{id}); and (2) the application then uses the extracted mapping unsafely - treating the mapping's keys as its accepted parameter list (mass-assignment/query building), trusting that a value came from its templated position, or relying on a processor's match pattern to restrict a value or on processor restore to act on a value by name. Limiting factors that reduce real-world risk: exploded variables (e.g. {?q*}) are NOT affected, templates without ;/?/& expressions are NOT affected, #expand is NOT affected, and the most dangerous behaviors (variable reassignment, processor match/restore abuse) only exist from version 2.3.6 onward; before 2.3.6 a URI can only add extra mapping keys. Impact is confined to data integrity and is contingent on the consuming code path. |
| Impact | This is a genuine but low-priority logic flaw. The CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N = 3.7, Low) correctly captures an unauthenticated, network-reachable issue whose only impact is limited integrity (I:L) - no confidentiality or availability loss. The vuln.today decision label is 'monitor', consistent with the low score. No EPSS probability is provided in the input and the CVE is not on the CISA KEV list, so there is no evidence of active or widespread exploitation; a working proof-of-concept is published in the vendor GHSA advisory, which raises reproducibility but is distinct from in-the-wild use. No SSVC decision fields (automatable/technical impact) were supplied. The AC:H rating reflects that exploitation is not against a default library call but requires a specific template form AND an application that consumes the resulting mapping unsafely - so real-world risk is heavily dependent on how downstream applications use Addressable::Template#match/#extract, not on the library's mere presence. Net: a real correctness/injection bug worth patching on a normal cycle, not an emergency; the 'Authentication Bypass' tag overstates the typical impact, which is closer to parameter/mass-assignment injection and match-restriction bypass. |
| Exploit ScenarioDerived | A Ruby application matches an attacker-controlled incoming URI against a template such as /search{?q} and then passes the resulting mapping to mass-assign model attributes or to build a query. The attacker requests /search?admin=true, injecting an 'admin' key the template never declared, or uses /files;id=secret/42 to reassign a path variable's value - bypassing a processor match restriction in the process. A runnable proof-of-concept demonstrating both cases is published in the vendor advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Addressable, the Ruby URI and RFC 6570 template library, takes the variable name in an unexploded ';', '?', or '&' template expression from the attacker-supplied URI instead of from the template, so versions 2.3.0 through 2.9.2 accept URIs that are not valid expansions of the template - for example '/search{?q}' extracting '/search?admin=true' yields an injected 'admin' key alongside a nil 'q', and '/files{;version}/{id}' extracting '/files;id=secret/42' hands 'secret' to the path variable 'id'. Impact is integrity-only and highly contingent on the consuming application: it matters where matched mappings are used as an accepted-parameter list for mass assignment or query building, where a value's templated position is trusted, or where a processor's match pattern or restore callback is relied upon for restriction. Reassignment of another template variable and processor match/restore effects begin in 2.3.6. The vendor advisory includes an illustrative proof-of-concept snippet, but no working exploit code and no CISA KEV entry were identified at time of analysis; the fix ships in 2.10.0.
RemediationAI
Upgrade the addressable gem to 2.10.0, the vendor-released fixed version, which restricts unexploded ';', '?' and '&' expressions to matching only their own variable names, limits processor match patterns to the variable's value, and calls restore only with the template's names; the change is in commit de9e4048f65b2fed2ed6a0b020f41dad77fe53f5 and the tagged release https://github.com/sporkmonger/addressable/releases/tag/addressable-2.10.0, with advisory GHSA-q5vw-6v74-fg2g. Be aware that the fix causes previously accepted URIs to return nil, so review callers that may have depended on the loose behavior. If an immediate upgrade is not possible, the vendor documents three workarounds with their trade-offs: after matching, select only the names in template.variables and accept the URI only if template.expand(mapping) reproduces it - this rejects all the attack URIs but also rejects benign equivalents such as a query whose parameters appear in a different order; enforce a processor's value restrictions in restore rather than only in match; and avoid acting on values inside a processor's restore callback, instead acting on the mapping after it passes the strict-expansion check. Applications whose templates contain no ';', '?' or '&' expressions, or that use exploded variables or #expand only, are not exposed.
Affected VersionsENISA
Affected Packages
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::Template implements RFC 6570 URI Template expansion and matching. For the named operators ';' (path-style), '?' (query) and '&' (continuation), a variable that is not exploded is written as 'name=value', and matching is supposed to assign URI text to the template's declared variables only (RFC 6570 section 1.4 and sections 3.2.7-3.2.9). In the affected code, Addressable::Template#match and #extract parsed the pair name out of the URI and used it as the mapping key, so a URI could contribute keys the template never declared and could also supply the value for a different variable of the same expression - the first value assigned wins, which is how a path-position variable can be overridden by a query or matrix parameter. The root cause is an input validation flaw (CWE-20, with the advisory also classifying it as CWE-915 improperly controlled modification of dynamically-determined object attributes), because untrusted URI structure directly determines mapping keys. The upstream fix (commit de9e4048) introduces a NAMED_OPERATORS constant and a named_values check: a pair in a ';', '?' or '&' expression is read only when its name is one of that expression's variables and only as many times as the expression declares it, otherwise matching fails; processor match patterns for such variables now match only the value after 'name=', as documented, and restore is called only with the template's names. Exploded variables such as {?q*} are unaffected because names they take from the URI stay inside the variable's value; templates with no ';', '?' or '&' expression and #expand are not affected.
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
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Untrusted URI is network-supplied (AV:N) and needs no auth or interaction (PR:N/UI:N), but requires a specific template form and unsafe app consumption (AC:H); only limited data integrity is affected (I:L, C:N/A:N).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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::Template#match and #extract accept names supplied by an untrusted URI for unexploded semicolon, query, and continuation expressions instead of limiting matches to variables declared by the template. Variable addition affects the full range, while reassignment of another template variable and processor match or restore effects begin in 2.3.6. An attacker can add mapping keys, reassign a template variable's value, bypass a processor match restriction, or cause processor restore logic to act on a URI-supplied name. This issue is fixed in version 2.10.0.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
More in Addressable
View allRegular expression denial of service (ReDoS) in the Addressable Ruby library versions 2.3.0 through 2.8.x allows unauthe
Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. Rated hi
Regular expression denial of service in the Addressable Ruby gem (2.3.0 through 2.9.2) allows crafted URIs to force exce
Polynomial backtracking in Addressable's URI template matching lets a crafted URI drive Template#match or Template#extra
Polynomial-time regular expression backtracking in the Addressable Ruby gem's URI template matcher (Template#match and T
Polynomial-time regular-expression backtracking in the Addressable Ruby gem (2.9.1 through 2.9.2) lets unauthenticated r
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
Addressable, the Ruby URI library, fails to reject or percent-encode host-changing delimiters in the userinfo component:
Denial of service in the Addressable Ruby gem 2.9.1 through 2.9.x lets unauthenticated remote attackers consume excessiv
SSRF filter bypass in the Addressable Ruby gem (2.3.5 through 2.9.2) lets an attacker-supplied URL pass a destination ch
Quadratic-time Unicode normalization in the Ruby Addressable gem (2.0.0 through 2.9.2) lets remote attackers burn CPU on
Addressable's URI#request_uri (versions 2.1.2 through 2.9.2) returns the path and query verbatim, so stored control char
EUVD-2026-140734
GHSA-q5vw-6v74-fg2g
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB