Addressable::Template builds its regexp in quadratic time for patterns with non-ASCII characters
- CVE-2026-141529
- GHSA-h78h-gj97-g737
- EUVD-2026-140686
Description
Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.9.1 until 2.10.0, Addressable::Template builds its cached regular expression in quadratic time when an untrusted template pattern contains non-ASCII text or a long run of adjacent expressions. Operations that compile or inspect such templates, including match, extract, to_regexp, variables, variable_defaults, and freeze, can consume excessive CPU and cause denial of service. This issue is fixed in version 2.10.0.
Text from the CVE.org record.
Recommendation
addressable project addressable
- If you run a version from 2.9.1 to before 2.10.0update to 2.10.0 or laterMinor version change: check the release notes
Taken from the version ranges of the NVD record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
addressable project addressable
Affected versions Fixed in from 2.9.1 to before 2.10.0 2.10.0 addressableRubyGems
Affected versions Fixed in from 2.9.1 up to 2.9.2 none stated
Product versions from the NVD record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.