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-158Affectedbotan
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