Add advisory for bcrypt panic regression (CVE candidate)#3029
Merged
Conversation
Adds an advisory for the panic in bcrypt::verify on non-ASCII hash input, fixed in bcrypt 0.19.2 (Keats/rust-bcrypt PR rustsec#103). Affected: >= 0.19.0, < 0.19.2 Fixed: >= 0.19.2
djc
approved these changes
Jul 4, 2026
Member
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an advisory for the panic in
bcrypt::verifyon non-ASCII hash input,fixed in
bcrypt 0.19.2(Keats/rust-bcrypt PR #103).Affected crate(s)
bcrypt— 13,644,923 all-time downloads on crates.ioLinks to upstream issue(s) or PR(s)
bcrypt 0.19.2on crates.io (2026-06-20)Prior to filing this advisory, the vulnerability was disclosed privately
to the maintainer (Vincent Prouillet / @Keats) via email. He acknowledged
the report, requested a PR, and merged the fix. He was notified in advance
of my intent to file this informational advisory with RustSec.
Severity
Denial of service via panic in
str::slice_error_fail. Any Rust codecalling
bcrypt::verifyorHashParts::from_strwith an attacker-controlled hash string will crash. Limited to DoS because the crate is
#![forbid(unsafe_code)]— no memory corruption is possible.CVSS 3.1:
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L= 5.3 (Medium)Affected versions:
>= 0.19.0, < 0.19.2Checklist
RUSTSEC-0000-0000as the IDdatefield is set to the public disclosure date