CVEsrandombitCVE-2026-118767Published Oct 29, 17:17 · Updated Oct 30, 17:12 UTC
4.8
MediumCVSS 3.1 · from GitHub_M
CVE-2026-118767

Botan: Python binding bcrypt APIs truncate passwords containing embedded NULs

botan · CWE-158 · CWE-158
Affectedbotan
FixNo fix listed yet.
PublishedOct 29, 17:17 · GitHub_M
ScoredOct 29 · 4.8 · GitHub_M
Exploit code publicNone known · checked 21:18 UTC
ExploitedNone known · CISA KEV checked 22:09 UTC

What we know

No known exploitation. CISA KEV, checked 22:09 UTC.
No public exploit code known. Exploit-DB, Metasploit, Nuclei, checked 21:18 UTC.
An attacker only needs network access to the target. No login needed. CVSS: network, no privileges.
It only works under certain conditions, which makes it harder to pull off. CVSS: high attack complexity.

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.

From GitHub_M

Affected and fixed versions

ProductAffectedFixed inbotan>= 1.11.22, < 3.13.0–

Exploit code

Exploit-DBnone knownMetasploitnone knownNucleinone known

References

github.com/randombit/botan/security/advisories/GHSA-w8gj-5xrm-gvrp · github.comrefsource_CONFIRMgithub.com/randombit/botan/pull/5814 · github.comrefsource_MISCgithub.com/randombit/botan/commit/5a4ac737e72e18a08eca848049e3dd38571c73b4 · github.comrefsource_MISC

Other CVEs in botan

All 14 →
9.2Botan: Integer overflow when reporting block size in FFI can cause memory corruption · CVE-2026-118769Oct 295.9Botan: CLI utility `ocsp_check` accepts unauthenticated responses · CVE-2026-118768Oct 296.1Botan: Online OCSP redirects enable blind requests to internal HTTP services · CVE-2026-118766Oct 29