CVE-2026-126352
Regular Expression Denial of Service in Addressable templates with multiple variables
Overview
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 templates with several variables in one expression or several adjacent expressions generate ambiguous regular expressions. Affected forms include multi-variable expressions using operators other than plus and number sign, large plus or number-sign expressions, and adjacent single-variable expressions. Template#match or Template#extract can backtrack polynomially or exponentially on attacker-controlled URIs, causing denial of service on MRI Ruby before 3.2 and JRuby, with the large plus and number-sign form also affecting MRI Ruby 3.2 and TruffleRuby 40.0. URI parsing and Template#expand are unaffected. This issue is fixed in version 2.9.1.
Source: OX vulnerability database
Severity
5.9 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-1333
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| RubyGems | addressable | >=2.3.0, <2.9.1 | 2.9.1 |
Open a package to see all its vulnerabilities.
Operating systems · 15 fixes
chainguard 1 release · 10 packages
| Release | Package | Fixed in |
|---|---|---|
| ruby3-4-fluentd-kubernetes-daemonset-1-19 +1 | 1.19.4.1.2-r2 | |
| ruby3-3-fluentd-kubernetes-daemonset-1-19 | 1.19.4.1.2-r3 | |
| pghero +1 | 3.8.0-r15 | |
| kube-logging-operator | 6.9.0-r13 | |
| logstash-8-19 | 8.19.25-r2 | |
| logstash-9-3 | 9.3.8-r4 |
4 more rows
wolfi 1 release · 5 packages
| Release | Package | Fixed in |
|---|---|---|
| ruby3-4-fluentd-kubernetes-daemonset-1-19 +1 | 1.19.4.1.2-r2 | |
| ruby3-3-fluentd-kubernetes-daemonset-1-19 | 1.19.4.1.2-r3 | |
| kube-logging-operator | 6.9.0-r13 | |
| logstash-9-3 | 9.3.8-r4 | |
| logstash-9-4 | 9.4.9-r3 |
References
- github.com https://github.com/advisories/GHSA-h27x-rffw-24p4
- github.com https://github.com/advisories/GHSA-j82w-28jv-3pmj
- github.com https://github.com/rubysec/ruby-advisory-db/blob/master/gems/addressable/GHSA-9f42-57jx-vpp3.yml
- github.com https://github.com/sporkmonger/addressable
- github.com https://github.com/sporkmonger/addressable/blob/main/CHANGELOG.md#v2.9.1
- github.com https://github.com/sporkmonger/addressable/commit/f2b27b3ab252e56b3fa3519f7ebb491d54cf7b7c
- github.com https://github.com/sporkmonger/addressable/compare/addressable-2.9.0...addressable-2.9.1
- github.com https://github.com/sporkmonger/addressable/releases/tag/addressable-2.9.1
- github.com https://github.com/sporkmonger/addressable/security/advisories/GHSA-9f42-57jx-vpp3
- rubygems.org https://rubygems.org/gems/addressable/versions/2.9.1
Show all 11 references
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.