Skip to main content
VulnerabilityPublished

bcrypt: Non-ASCII hash input can cause verification panic

Affects bcryptSource GCVE Database

0

CVSS 5.3 Medium : upgrade to 0.19.2 when convenient.

Data as of 4 Dec 2026, 00:45 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 0.19.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

What to do

Upgrade bcrypt to 0.19.2.

Affected software

ProductAffectedFixed in
crates.iobcryptAffected
  • >=0.19.0 <0.19.2
Fixed in
  • 0.19.2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available in bcrypt crate version 0.19.2, which rejects non-ASCII bytes in hash strings upfront. Users should upgrade to version 0.19.2 or later to remediate this denial-of-service vulnerability. No additional mitigation is required once upgraded. Downstream projects like pyca/bcrypt are not affected and do not require action.

Description

The bcrypt Rust crate versions 0.19.0 and 0.19.1 contain a vulnerability where verifying a bcrypt hash string with non-ASCII multi-byte UTF-8 characters at specific byte positions causes a panic. This leads to a denial-of-service condition in Rust applications using bcrypt::verify or HashParts::from_str with attacker-controlled hash inputs. The issue was introduced in version 0.19.0 and fixed in version 0.19.2 by rejecting non-ASCII bytes in hash strings upfront.

References

Community reviews

Loading reviews…