CVE-2026-118767

published 29 Oct 2026 · updated 30 Oct 2026

Botan: Python binding bcrypt APIs truncate passwords containing embedded NULs

4.8MediumCVSS 4.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
randombit>=1.11.22 <3.13.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-118767 severity on Zeptric[![CVE-2026-118767](https://zeptric.io/badge/cve/CVE-2026-118767.svg)](https://zeptric.io/cve/CVE-2026-118767)