← 漏洞与更新

中危漏洞公告Rust

bcrypt: Non-ASCII hash input can cause verification panic

受影响

软件包受影响版本修复版本
rust:bcrypt>= 0.19.0, < 0.19.20.19.2

bcrypt::verify(password, hash) and HashParts::from_str(hash) panic in str::slice_error_fail when given a 60-byte &str containing a multi-byte UTF-8 character at certain byte positions. Impact Any Rust code that calls bcrypt::verify (or HashParts::from_str) with an attacker-controlled hash string will panic. The bcrypt crate is #![forbid(unsafe_code)], so this is limited to a denial-of-service and cannot lead to memory corruption. Realistic attack contexts include: - Rust authentication services…

在 GitHub Advisory Database 阅读

2026/12/04 08:53,GitHub Advisory Database 发布了“bcrypt: Non-ASCII hash input can cause verification panic”(类型:漏洞公告)。严重程度为“中危”(medium)。相关技术:Rust。