CWE-158: Improper Neutralization of Null Byte or NUL Character, published in 2024
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
- 8.1CVE-2024-10921mongodbEPSS 0.6%
An authorized user may trigger crashes or receive the contents of buffer over-reads of Server memory by issuing specially crafted requests that construct malformed BSON in the MongoDB Server. This issue affects MongoDB Server v5.0 versions…
- 3.3CVE-2024-9026phpEPSS 0.5%
In PHP versions 8.1.* before 8.1.30, 8.2.* before 8.2.24, 8.3.* before 8.3.12, when using PHP-FPM SAPI and it is configured to catch workers output through catch_workers_output = yes, it may be possible to pollute the final log or remove u…
- 5.5CVE-2024-0408EPSS 0.3%
A flaw was found in the X.Org server. The GLX PBuffer code does not call the XACE hook when creating the buffer, leaving it unlabeled. When the client issues another request to access that resource (as with a GetGeometry) or when it create…