RubyGems
CVE-2026-126351
Addressable: Denial of service in URI path normalization
- Severity
- Medium 5.9
- Published
- 12 Nov 2026
- Last changed
- 12 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 2.9.1
- Exploit chance
- 0.4% in the next 30 daysHigher than 35% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H- Also known as
- GHSA-qq38-m9mg-xjj5
- Sources
- OSV.dev and GitHub
Description
Addressable::URI.normalize_path takes time quadratic in the number of nested dot segments in a path (e.g., "/" + "a/" * n + "../" * n, which for n = 3 is /a/a/a/../../../), because it removes one dot segment per pass over the whole path. URI#normalize, URI#normalized_path, URI#==, URI#=== and URI#join all call it. Normalizing, comparing or joining a URI taken from user input can result in uncontrolled resource consumption, leading to denial of service. On 2.9.0, normalizing a 34 KB path takes about 3.5 seconds on MRI Ruby 4.0, and the cost grows with the square of the path length.
This affects every Ruby implementation, including MRI Ruby 3.2 and later. URI.parse by itself is unaffected, as is code that never normalizes, compares, or joins URIs from untrusted sources.
Workarounds
- Limit the length of URIs taken from user input before calling normalize, == or join on them. Web servers often limit request lines to about 8 KB, which keeps the cost to about 150 milliseconds per call on typical hardware, but URIs from other sources (request bodies, headers such as Location, stored data) may not be limited.
- Reject paths with many dot segments before normalizing them.
Affected software
| Software | Affected versions |
|---|---|
addressableRubyGems · osv:RubyGems:addressable |
|
About addressable
- Total downloads (RubyGems)
- 1,317,979,305RubyGems, 24 Nov 2026
Vulnerabilities in addressable
- In our list
- 6
- Published in the last 12 months
- 6
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- CVE-2026-126348Addressable display_uri can show misleading hosts with invalid Punycode A-labelsMedium 4.3 12 Nov 2026
- CVE-2026-126349Addressable display_uri can show misleading hosts containing bidi and invisible charactersLow 3.1 12 Nov 2026
- CVE-2026-126350Addressable: Regular Expression Denial of Service in templates with certain exploded expressionsMedium 5.9 12 Nov 2026
- CVE-2026-126352Addressable: Regular Expression Denial of Service in templates with multiple variablesMedium 5.9 12 Nov 2026
- CVE-2026-126354Addressable URI normalization resolves some dotted path segments to the wrong pathMedium 4.8 12 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-126351
- GitHub Advisory Database https://github.com/advisories/GHSA-qq38-m9mg-xjj5