CWE-158: Improper Neutralization of Null Byte or NUL Character
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.
Last updated
Overview
CWE-158 (Improper Neutralization of Null Byte or NUL Character) is a variant-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Real-world CVEs
49 recorded CVEs are caused by CWE-158 (Improper Neutralization of Null Byte or NUL Character), including 2 in CISA's KEV (Known Exploited Vulnerabilities) catalog. KEVs are shown first. 25 new CWE-158 CVEs have been recorded so far in 2026 (7 in 2025).