Skip to main content
VulnerabilityPublished Updated

`bcrypt::verify` · Panic

Affects bcryptSource GCVE Database

0

CVSS 5.3 Medium : upgrade to 0.19.2 when convenient.

Data as of 4 Dec 2026, 10:06 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.iobcryptpkg:cargo/bcryptOther threatsAffected
  • >=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

Upgrade to bcrypt crate version 0.19.2 or later, which includes a fix that rejects non-ASCII hash strings upfront, eliminating the panic condition. No additional mitigation is required as the fix fully addresses the issue.

Description

A vulnerability in the Rust bcrypt crate versions 0.19.0 and 0.19.1 causes a panic when the verify function is called with a 60-byte string containing multi-byte UTF-8 characters at specific byte positions. This leads to a denial-of-service condition due to improper UTF-8 boundary checks in string slicing operations. The issue was fixed in version 0.19.2 by rejecting non-ASCII hash strings upfront.

References

Community reviews

Loading reviews…