{"api_version":"1","generated_at":"2026-10-30T21:05:16+00:00","cve":"CVE-2026-118767","urls":{"html":"https://cve.report/CVE-2026-118767","api":"https://cve.report/api/cve/CVE-2026-118767.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-118767","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-118767"},"summary":{"title":"Botan: Python binding bcrypt APIs truncate passwords containing embedded NULs","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.","state":"PUBLISHED","assigner":"GitHub_M","published_at":"2026-10-29 18:17:28","updated_at":"2026-10-30 19:37:07"},"problem_types":["CWE-158","CWE-158 CWE-158: Improper Neutralization of Null Byte or NUL Character"],"metrics":[{"version":"3.1","source":"security-advisories@github.com","type":"Secondary","score":"4.8","severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","baseScore":4.8,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"4.8","severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","data":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":4.8,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"}}],"references":[{"url":"https://github.com/randombit/botan/commit/5a4ac737e72e18a08eca848049e3dd38571c73b4","name":"https://github.com/randombit/botan/commit/5a4ac737e72e18a08eca848049e3dd38571c73b4","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/randombit/botan/security/advisories/GHSA-w8gj-5xrm-gvrp","name":"https://github.com/randombit/botan/security/advisories/GHSA-w8gj-5xrm-gvrp","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/randombit/botan/pull/5814","name":"https://github.com/randombit/botan/pull/5814","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-118767","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118767","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"randombit","product":"botan","version":"affected >= 1.11.22, < 3.13.0","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"other":{"content":{"id":"CVE-2026-118767","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","timestamp":"2026-10-30T15:20:33.590831Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2026-10-30T17:12:36.136Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"}],"cna":{"affected":[{"product":"botan","vendor":"randombit","versions":[{"status":"affected","version":">= 1.11.22, < 3.13.0"}]}],"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":4.8,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-158","description":"CWE-158: Improper Neutralization of Null Byte or NUL Character","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-10-29T17:17:24.323Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M"},"references":[{"name":"https://github.com/randombit/botan/security/advisories/GHSA-w8gj-5xrm-gvrp","tags":["x_refsource_CONFIRM"],"url":"https://github.com/randombit/botan/security/advisories/GHSA-w8gj-5xrm-gvrp"},{"name":"https://github.com/randombit/botan/pull/5814","tags":["x_refsource_MISC"],"url":"https://github.com/randombit/botan/pull/5814"},{"name":"https://github.com/randombit/botan/commit/5a4ac737e72e18a08eca848049e3dd38571c73b4","tags":["x_refsource_MISC"],"url":"https://github.com/randombit/botan/commit/5a4ac737e72e18a08eca848049e3dd38571c73b4"}],"source":{"advisory":"GHSA-w8gj-5xrm-gvrp","discovery":"UNKNOWN"},"title":"Botan: Python binding bcrypt APIs truncate passwords containing embedded NULs"}},"cveMetadata":{"assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","assignerShortName":"GitHub_M","cveId":"CVE-2026-118767","datePublished":"2026-10-29T17:17:24.323Z","dateReserved":"2026-10-28T19:20:05.017Z","dateUpdated":"2026-10-30T17:12:36.136Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-10-29 18:17:28","lastModifiedDate":"2026-10-30 19:37:07","problem_types":["CWE-158","CWE-158 CWE-158: Improper Neutralization of Null Byte or NUL Character"],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","baseScore":4.8,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE"},"exploitabilityScore":2.2,"impactScore":2.5}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-10-30T15:20:33.590831Z","id":"CVE-2026-118767","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"118767","Ordinal":"1","Title":"Botan: Python binding bcrypt APIs truncate passwords containing ","CVE":"CVE-2026-118767","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"118767","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"Botan: Python binding bcrypt APIs truncate passwords containing "}]}}}