---
title: "CVE-2026-118767"
canonical_url: "https://pkgseek.com/security/CVE-2026-118767"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2026-118767

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.

CVE-2026-118767 is rated MEDIUM (4.8), with 8 indexed affected package builds across 1 distributions.

- **Severity / Score**: MEDIUM (4.8)
- **Affected builds**: 8
- **Affected distros**: 1
- **Distros with fixed_in**: None recorded in sample

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | botan | 3.7.1+dfsg-2 | — |
| Debian | trixie | libbotan-2-19 | 2.19.5+dfsg-4 | — |
| Debian | trixie | libbotan-2-dev | 2.19.5+dfsg-4 | — |
| Debian | trixie | libbotan-2-doc | 2.19.5+dfsg-4 | — |
| Debian | trixie | libbotan-3-7 | 3.7.1+dfsg-2 | — |
| Debian | trixie | libbotan-3-dev | 3.7.1+dfsg-2 | — |
| Debian | trixie | libbotan-3-doc | 3.7.1+dfsg-2 | — |
| Debian | trixie | python3-botan | 3.7.1+dfsg-2 | — |
