← 漏洞与更新

中危漏洞公告Ruby

Rack: `Rack::QueryParser` separator pattern allocates ~48 bytes per space after `&`, allowing denial of service via memory amplification

受影响

软件包受影响版本修复版本
rubygems:rack< 2.2.262.2.26
rubygems:rack>= 3.0, < 3.1.243.1.24
rubygems:rack>= 3.2, < 3.2.93.2.9

Rack::QueryParser splits query strings and application/x-www-form-urlencoded bodies on the regular expression /& /n, which also consumes spaces following each &. Matching a long run of spaces with this pattern makes Ruby's regular expression engine allocate about 48 bytes of backtracking state per space, so an input consisting of & followed by spaces causes the process to allocate roughly 48 times the size of the input. This results in a denial of service condition through memory exhaustion for…

在 GitHub Advisory Database 阅读

2026/12/04 08:54,GitHub Advisory Database 发布了“Rack: `Rack::QueryParser` separator pattern allocates ~48 bytes per space after `&`, allowing denial of service via memory amplification”(类型:漏洞公告)。严重程度为“中危”(medium)。相关技术:Ruby。CVE:CVE-2026-142591。