๐Ÿ” CVE Alert

CVE-2026-118767

MEDIUM 4.8

Botan: Python binding bcrypt APIs truncate passwords containing embedded NULs

CVSS Score
4.8
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-158
Vendor randombit
Product botan
Published Oct 29, 2026
Stay Ahead of the Next One

Get instant alerts for randombit botan

Be the first to know when new medium vulnerabilities affecting randombit botan are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Affected Versions

randombit / botan
>= 1.11.22, < 3.13.0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/randombit/botan/security/advisories/GHSA-w8gj-5xrm-gvrp github.com: https://github.com/randombit/botan/pull/5814 github.com: https://github.com/randombit/botan/commit/5a4ac737e72e18a08eca848049e3dd38571c73b4