← 漏洞与更新

低危漏洞公告Ruby

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.22.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…

在 GitHub Advisory Database 阅读

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。