## bcrypt: Non-ASCII hash input can cause verification panic

- 種別: advisory
- 重大度: medium
- 関連技術: rust
- 公開日時: 2026-12-03T23:53:37.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-xj2x-f8qw-37mr)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-xj2x-f8qw-37mr

影響: rust:bcrypt >= 0.19.0, < 0.19.2 → 0.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…