CWE-158: Improper Neutralization of Null Byte or NUL Character, published in 2026
Filter
The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes NUL characters or null bytes when they are sent to a downstream component.
What the weakness is: CWE-158 at MITRE. All weaknesses
Related attack patterns (CAPEC): 2
- 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 CWE-158, as MITRE names them. Credits.
Ask an AI about CWE-158
Show the prompt
Explain CWE-158: Improper Neutralization of Null Byte or NUL Character and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/158.html and https://cve.bz/cve/cwe/158?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
By year: all 2026 2025 2024 2023 2022 2021
- 6.3CVE-2026-129933mongodb java driverEPSS 0.2%
The MongoDB Java Driver does not neutralize NUL characters in the user name and password values it places into the message it builds for SASL PLAIN authentication. A party who can choose the login values that an application passes to the d…
- 6.3CVE-2026-129937mongodb c# driverEPSS 0.3%
The MongoDB C# Driver does not neutralize NUL characters in the user name and password values it places into the message it builds for SASL PLAIN authentication. A party who can choose the login values that an application passes to the dri…
- 6.3CVE-2026-129935mongodb go driverEPSS 0.2%
The MongoDB Go Driver does not neutralize NUL characters in the user name and password values it places into the message it builds for SASL PLAIN authentication. A party who can choose the login values that an application passes to the dri…
- 6.3CVE-2026-129929mongodb node.js driverEPSS 0.3%
The MongoDB Node.js Driver does not neutralize NUL characters in the user name and password values it places into the message it builds for SASL PLAIN authentication. A party who can choose the login values that an application passes to th…
- 6.3CVE-2026-129926mongodb python driverEPSS 0.3%
The MongoDB Python Driver does not neutralize NUL characters in the user name and password values it places into the message it builds for SASL PLAIN authentication. A party who can choose the login values that an application passes to the…
- 6.3CVE-2026-129925mongodb ruby driverEPSS 0.3%
The MongoDB Ruby Driver does not neutralize NUL characters in the user name and password values it places into the message it builds for SASL PLAIN authentication. A party who can choose the login values that an application passes to the d…
- 6.3CVE-2026-129923mongodb rust driverEPSS 0.2%
The MongoDB Rust Driver does not neutralize NUL characters in the user name and password values it places into the message it builds for SASL PLAIN authentication. A party who can choose the login values that an application passes to the d…
- 5.3CVE-2026-129512apache software foundation apache log4netEPSS 0.4%
Improper Neutralization of Null Byte or NUL Character vulnerability in the AdoNetAppender of Apache log4net. Text parameters were bound unchanged, so a NUL character or an unpaired UTF-16 surrogate reached the database as it was. A databa…
- 4.3CVE-2026-124077apache software foundation apache commons codecEPSS 0.4%
The GitIdentifiers class in Apache Commons Codec did not reject NUL bytes in tree entry names. Because Git uses a NUL byte to mark the end of each entry name in a tree object, a crafted name could make one tree serialize to the same bytes …
- 6.5CVE-2026-115473cesanta mongooseEPSS 0.4%
Mongoose is an embedded web server and network library. Prior to 7.22, mg_path_is_sane in src/util.c read path.buf[1] without first requiring path.len to be at least two and read s[2] when only two bytes remained. Unauthenticated remote re…
- 8.7CVE-2026-105475EPSS 0.5%
Improper neutralization of a NUL byte in cPanel allows remote attackers to read any mail account's calendar and contact data.
- 4.8CVE-2026-118767randombit botanEPSS 0.2%
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 pro…
- 5.3CVE-2026-116566python software foundation cpythonEPSS 0.3%
socket.getaddrinfo() previously accepted null bytes within *host* and *port* parameters which can cause the values to be silently truncated.
- 7.6CVE-2026-84790openvpnEPSS 0.1%
OpenVPN 2.7_alpha1 through 2.7.7 allows remote authenticated users to impersonate others via a crafted certificate subject field
- 7.8CVE-2026-92705typesettingtools aegisubEPSS 0.1%
Aegisub is a cross-platform advanced subtitle editor. From 3.2.0 to 3.4.2, Aegisub automatically loads Automation scripts referenced by `Automation Scripts` metadata in `ASS` subtitle projects without asking whether the user trusts the scr…
- 5.3CVE-2026-105240apache log4netEPSS 0.8%
Improper Neutralization of Null Byte or NUL Character vulnerability in the OutputDebugStringAppender of Apache log4net. A NUL character in logged content ended the debug output record at that point, so everything the layout rendered after…
- 5.3CVE-2026-105239apache log4netEPSS 0.8%
Improper Neutralization of Null Byte or NUL Character vulnerability in the EventLogAppender of Apache log4net. A NUL character in logged content ended the Windows Event Log record at that point, so everything the layout rendered after it,…
- 8.1CVE-2026-76354splunkEPSS 0.4%
In Splunk Enterprise versions below 10.4.2, 10.2.6, 10.0.9, and 9.4.14, a user who does not hold the "admin" or "power" Splunk roles could affect system integrity and availability by sending a crafted Representational State Transfer (REST)…
- 6.0CVE-2026-70603electronjs electronEPSS 0.1%
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.6, 40.9.0, 41.1.1, and 42.0.0-beta.1, shell.openPath() did not reject paths containing embedded null bytes. Apps that per…
- 4.4CVE-2026-47778envoyproxy envoyEPSS 0.2%
Envoy is an open source edge and service proxy designed for cloud-native applications. Prior to 1.35.11, 1.36.7, 1.37.3, and 1.38.1, a structural flaw was identified in DefaultCertValidator::verifySubjectAltName where the extracted DNS SAN…
- 4.4CVE-2026-43895jqlang jqEPSS 0.2%
jq is a command-line JSON processor. In 1.8.1 and earlier, jq accepts embedded NUL bytes in import paths at the jq-language level, but later resolves those paths through C string operations during module and data-file lookup. This creates …
- 5.5CVE-2026-41256jqlang jqEPSS 0.2%
jq is a command-line JSON processor. In 1.8.1 and earlier, Top-level jq programs loaded from a file with -f are truncated at the first embedded NUL byte on current upstream HEAD. A crafted filter file such as . followed by \x00 and arbitra…
- 3.7CVE-2026-43861muttEPSS 0.2%
mutt before 2.3.2 does not check for '\0' in url_pct_decode.
- 3.7CVE-2026-43859muttEPSS 0.2%
mutt before 2.3.2 sometimes uses strfcpy instead of memcpy for the IMAP auth_cram MD5 digest.
- 6.5CVE-2026-23863whatsappEPSS 0.5%
An attachment spoofing issue in WhatsApp for Windows prior to v2.3000.1032164386.258709 could have allowed maliciously formatted documents with embedded NUL bytes in the filename to be shown in the application as one type of file but run a…
- 8.7CVE-2026-33191free5gc udmEPSS 0.4%
Free5GC is an open-source Linux Foundation project for 5th generation (5G) mobile core networks. Versions prior to 1.4.2 are vulnerable to null byte injection in URL path parameters. A remote attacker can inject null bytes (URL-encoded as …
- 2.0CVE-2026-4359mongodb c driverEPSS 0.2%
A compromised third party cloud server or man-in-the-middle attacker could send a malformed HTTP response and cause a crash in applications using the MongoDB C driver.
- 3.3CVE-2026-28540huawei harmonyosEPSS 0.09%
Out-of-bounds character read vulnerability in Bluetooth. Impact: Successful exploitation of this vulnerability may affect service confidentiality.