{"id":"CVE-2026-118767","aliases":["CVE-2026-118767"],"related":[],"kind":"vulnerability","state":"published","title":"Botan: Python binding bcrypt APIs truncate passwords containing embedded NULs","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-10-29T17:17:24.323Z","modified":"2026-10-30T19:37:07.073Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"}],"cwes":["CWE-158"],"affected":[{"ranges":[{"version":">= 1.11.22, < 3.13.0","status":"affected"}],"vendor":"randombit","product":"botan","source":"cvelist"}],"references":[{"url":"https://github.com/randombit/botan/security/advisories/GHSA-w8gj-5xrm-gvrp","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/randombit/botan/pull/5814","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/randombit/botan/commit/5a4ac737e72e18a08eca848049e3dd38571c73b4","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-30T15:20:33.590Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-118767","url":"https://www.cve.org/CVERecord?id=CVE-2026-118767","licence":"CVE Terms of Use","modified":"2026-10-30T17:12:36.136Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-118767","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118767","licence":"Public domain","modified":"2026-10-30T19:37:07.073Z"}],"updatedAt":"2026-11-25T22:59:47.816Z","epss":{"score":0.00273,"percentile":0.20992,"date":"2026-12-01T12:00:22.000Z"}}