Skip to content
Fencer Intel
medium 4.8

CVE-2026-118767 json

Botan: Python binding bcrypt APIs truncate passwords containing embedded NULs

published 11d ago modified 10d ago also EUVD-2026-113276

cvss
4.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 12%
public exploits
0
none known

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.

Patch / fix

  • botan_project botan 3.13.0
  • botan3 Debian 14 3.13.0+dfsg-2

debian advisories DEBIAN-CVE-2026-118767

Is CVE-2026-118767 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-118767 updated cvss 4.8

botan: botan: Password policy bypass via embedded null byte in Python bindings

  • Red Hat Ansible Automation Platform 2 ansible-automation-platform-27/hub-rhel9 Red Hat Enterprise Linux 9 rust-sequoia-sq Red Hat Enterprise Linux 10 rust-sequoia-sq, rust-sequoia-sqv, rust-podman-sequoia Red Hat Hardened Images rust-rpm-sequoia, rust-podman-sequoia
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
10d ago

Exploit prediction

0.22% chance of exploitation in the next 30 days, higher than 12% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
CNA 3.1 4.8 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Affected products

  • randombit botan

Classification

Weakness
  • CWE-158 Improper Neutralization of Null Byte or NUL Character

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.