CVE-2026-118767
published medium CVSS 3.1 · 4.8Botan: Python binding bcrypt APIs truncate passwords containing embedded NULs
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| randombit | — | botan>= 1.11.22, < 3.13.0 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.8 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| randombit | botan | >= 1.11.22, < 3.13.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-158 CWE-158: Improper Neutralization of Null Byte or NUL Character
References
3Provider assertions
2GitHub_M · cna
Botan: Python binding bcrypt APIs truncate passwords containing embedded NULs
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e378879589965fe2063679ad18d292a623617fd1e8ba769607bb90a53117461f
- Ingested
- 30 Oct 2026, 17:14:28 UTC
- Source record
- Official CVE record