## Addressable::Template builds its regexp in quadratic time for patterns with non-ASCII characters or many adjacent expressions

- 種別: advisory
- 重大度: low
- 関連技術: ruby
- CVE: CVE-2026-141529
- 公開日時: 2026-12-01T23:48:42.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-h78h-gj97-g737)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-h78h-gj97-g737

影響: rubygems:addressable >= 2.9.1, <= 2.9.2 → 2.10.0
Addressable::Template builds a regular expression from its pattern the first time it's needed, by #match, #extract, #to_regexp, #variables (and its aliases #keys and #names), #variable_defaults or #freeze. When the pattern has non-ASCII characters, or a long run of expressions with no literal text between them (such as {a}{b}{c}), building it takes time quadratic in the pattern's length. A non-ASCII pattern of a few hundred kilobytes takes seconds on MRI and longer on JRuby. A run of 5,000 expr…