Description
Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.3.0 until 2.9.1, URI template expressions using the explode modifier with the slash, dot, semicolon, question-mark, or ampersand operators generate ambiguous regular expressions. When Template#match or Template#extract processes an attacker-controlled URI beginning with the operator's leading character, optional member separators allow catastrophic backtracking and denial of service on MRI Ruby before 3.2 and JRuby. Addressable 2.9.0 incompletely remediated the earlier template issue because its tests did not reach these operator-prefixed paths. URI parsing and Template#expand are unaffected. This issue is fixed in version 2.9.1.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| sporkmonger | addressable | >= 2.3.0, < 2.9.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | ruby-addressable | No fix yet | — |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 26.04 LTS | ruby-addressable | No fix yet | — |
| Ubuntu Pro 24.04 LTS | ruby-addressable | No fix yet | — |
| Ubuntu Pro 22.04 LTS | ruby-addressable | No fix yet | — |
| Ubuntu Pro 20.04 LTS | ruby-addressable | No fix yet | — |
| Ubuntu Pro 18.04 LTS | ruby-addressable | No fix yet | — |
| Ubuntu Pro 16.04 LTS | ruby-addressable | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | logstash-9.3 +1 | 9.3.8-r4 | — |
| Wolfi rolling | logstash-9.4 +1 | 9.4.9-r3 | — |
| Wolfi rolling | ruby3.4-kube-logging-operator-fluentd-outputs +3 | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | addressable | >= 2.3.0, < 2.9.1 | 2.9.1 | GHSA-j82w-28jv-3pmj |
References
- https://github.com/sporkmonger/addressable/security/advisories/GHSA-j82w-28jv-3pmj
- https://github.com/sporkmonger/addressable/issues/364
- https://github.com/sporkmonger/addressable/commit/26d1e9e8409a861571f9d0029022b6e9b9158b5e
- https://github.com/sporkmonger/addressable/releases/tag/addressable-2.9.1