GitHub 安全公告库 (GHSA)·· 2 天前AI 评分40
klauspost/compress s2 的 s2.NewDict 存在整数溢出与越界写入漏洞
Compress/s2: Integer Overflow or Wraparound and Out-of-bounds Write in compress
AI 导读
klauspost/compress 的 s2 包中,s2.NewDict() 存在有符号整数溢出漏洞,攻击者提供 uvarint 编码的 repeat 值超过 MaxInt64 的字典即可绕过重复索引校验。随后调用 Dict.Encode() 时,负值 repeat 经 unsafe.Pointer 算术导致越界内存访问,进程以 SIGSEGV 崩溃,构成拒绝服务。
来源:GitHub 安全公告库 (GHSA) · github.com