CWE-158: Improper Neutralization of Null Byte or NUL Character, published in 2021
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
No records match.