VariantIncomplete
CWE-158Improper Neutralization of Null Byte or NUL Character
Category: other
Description
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.
As data is parsed, an injected NUL character or null byte may cause the product to believe the input is terminated earlier than it actually is, or otherwise cause the input to be misinterpreted. This could then be used to inject potentially dangerous input that occurs after the null byte or otherwise bypass validation routines and other protection mechanisms.
Common consequences· 1
- Integrity — Unexpected State
Potential mitigations· 3
- []Developers should anticipate that null characters or null bytes will be injected/removed/manipulated in the input vectors of their product. Use an appropriate combination of denylists and allowlists to ensure only valid, expected and appropriate input is processed by the system.
- [Implementation]
- [Implementation]Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked.
Related CAPEC attack patterns· 2
References
Exploits (incoming)2
| Type | Target | Confidence | Tier |
|---|---|---|---|
| AttackPattern | Postfix, Null Terminate, and Backslashcapec-53 | 100% | live |
| AttackPattern | Embedding NULL Bytescapec-52 | 100% | live |
(incoming)7
| Type | Target | Confidence | Tier |
|---|---|---|---|
| Vulnerability | CVE-2025-14388cve-2025-14388 | 0% | live |
| Vulnerability | Wing FTP Server Improper Neutralization of Null Byte or NUL Character Vulnerabilitycve-2025-47812 | 0% | live |
| Vulnerability | CVE-2025-55113cve-2025-55113 | 0% | live |
| Vulnerability | CVE-2026-33191cve-2026-33191 | 0% | live |
| KEVEntry | Sophos Firewall Authentication Bypass Vulnerabilitykev-cve-2022-1040 | 0% | live |
| KEVEntry | Atlassian Bitbucket Server and Data Center Command Injection Vulnerabilitykev-cve-2022-36804 | 0% | live |
| KEVEntry | Wing FTP Server Improper Neutralization of Null Byte or NUL Character Vulnerabilitykev-cve-2025-47812 | 0% | live |
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.