cve.bz

CVE-2026-118767 randombit botan

4.8 mediumEPSS 0.2%

Medium (4.8) in randombit botan. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

4.8 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS
0.2% (unchanged from 0.2% a week ago) estimated probability of exploitation activity in the next 30 days; 12th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-30. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-158 Improper Neutralization of Null Byte or NUL Character
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-118767 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-118767?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-118767?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-118767 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
randombit botan>= 1.11.22, < 3.13.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12botanno fix listedDEBIAN-CVE-2026-118767
Debian13botan, botan3no fix listedDEBIAN-CVE-2026-118767
Debian14botan33.13.0+dfsg-2DEBIAN-CVE-2026-118767
Ubuntu18.04:LTS, 20.04:LTS, Pro:22.04:LTS and 1 morebotanno fix listedUBUNTU-CVE-2026-118767
Azure Linux3botan2no fix listedAZL-112403

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated as Moderate impact because exploitation requires custom software to utilize Botan's Python interface specifically for bcrypt hashing while accepting unvalidated null characters from user input. Under typical Red Hat deployments, Botan is not part of core Enterprise Linux installations and is primarily consumed via supplemental community repositories such as EPEL. The security impact is constrained to the circumvention of password complexity or length enforcement rather than arbitrary code execution or credential disclosure. Furthermore, alternative password derivation mechanisms provided by the library, including Argon2 and scrypt, remain completely unaffected.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2ansible-automation-platform-27/hub-rhel9Not affected
Red Hat Enterprise Linux 10rust-podman-sequoiaNot affected
Red Hat Enterprise Linux 10rust-sequoia-sqNot affected
Red Hat Enterprise Linux 10rust-sequoia-sqvNot affected
Red Hat Enterprise Linux 9rust-sequoia-sqNot affected
Red Hat Hardened Imagesrust-podman-sequoiaUnder investigation
Red Hat Hardened Imagesrust-rpm-sequoiaUnder investigation

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-118767.

Attack patterns (CAPEC)

  • CAPEC-52 Embedding NULL Bytes Likelihood: High · Severity: High
  • CAPEC-53 Postfix, Null Terminate, and Backslash Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON