CVE-2026-118767 Botan: Python binding bcrypt APIs truncate passwords containing embedded NULs

Medium 4.8 Published Updated
Exploited in the wild
Not known
Fix
None listed

What is CVE-2026-118767?

CVE-2026-118767 is a medium-severity vulnerability in randombit botan, published on 29 Oct 2026.

Official description

Botan is a C++ cryptography library. From 1.11.22 until 3.13.0, Botan's Python binding converted Python strings containing U+0000 to const char* values without consistently rejecting the embedded NUL, causing bcrypt and check_bcrypt to process only the prefix before the NUL. Applications could validate a longer password but hash a shorter effective value, allowing application password-policy bypass; scrypt and argon2 are unaffected. This issue is fixed in version 3.13.0.

Weakness: CWE-158

Which versions are affected by CVE-2026-118767?

How do I fix CVE-2026-118767?

No fix has been published for CVE-2026-118767 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-118767 being exploited?

There is no known exploitation of CVE-2026-118767 in the wild and no public exploit code.

Sources

Also known as GHSA-w8gj-5xrm-gvrp.

Is CVE-2026-118767 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free