CVE-2026-35611
Description
Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.3.0 to before 2.9.0, within the URI template implementation in Addressable, two classes of URI template generate regular expressions vulnerable to catastrophic backtracking. Templates using the * (explode) modifier with any expansion operator (e.g., {foo*}, {+var*}, {#var*}, {/var*}, {.var*}, {;var*}, {?var*}, {&var*}) generate patterns with nested unbounded quantifiers that are O(2^n) when matched against a maliciously crafted URI. Templates using multiple variables with the + or # operators (e.g., {+v1,v2,v3}) generate patterns with O(n^k) complexity due to the comma separator being within the matched character class, causing ambiguous backtracking across k variables. When matched against a maliciously crafted URI, this can result in catastrophic backtracking and uncontrolled resource consumption, leading to denial of service. This vulnerability is fixed in 2.9.0.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
addressableRubyGems | >= 2.3.0, < 2.9.0 | 2.9.0 |
Affected products
1- cpe:2.3:a:addressable_project:addressable:*:*:*:*:*:ruby:*:*Range: >=2.3.0,<2.9.0
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4- github.com/advisories/GHSA-h27x-rffw-24p4ghsaADVISORY
- github.com/sporkmonger/addressable/security/advisories/GHSA-h27x-rffw-24p4nvdMitigationVendor AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2026-35611ghsaADVISORY
- github.com/rubysec/ruby-advisory-db/blob/master/gems/addressable/CVE-2026-35611.ymlghsaWEB
News mentions
1- Patch Tuesday - May 2026Rapid7 Blog · May 13, 2026