CWE-158: Improper Neutralization of Null Byte or NUL Character

VariantIncomplete

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.

View on MITRE
Back to CWE Lookup

Extended Description

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.

Technical Details

Structure
Simple

Applicable To

Languages
Not Language-Specific
Platforms

Learn More