Addressable::Template builds its regexp in quadratic time for patterns with non-ASCII characters or many adjacent expressions
影響
| パッケージ | 影響する版 | 修正版 |
|---|---|---|
| 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…
重大な脆弱性・障害の速報を X で受け取る悪用・大規模な漏洩・障害を、対処法と一緒に。
@vulnpulse_app をフォロー2026/12/02 08:48、GitHub Advisory Databaseが「Addressable::Template builds its regexp in quadratic time for patterns with non-ASCII characters or many adjacent expressions」を公開しました (種別: 脆弱性アドバイザリ)。重大度は「注意」(low) です。関連する技術: Ruby。CVE: CVE-2026-141529。