409
Nature Type ID Name Page
MemberOf 990 SFP Secondary Cluster: Tainted Input to Command 888 2413
MemberOf 1407 Comprehensive Categorization: Improper Neutralization 1400 2532
Notes
Research Gap
Under-studied.
Taxonomy Mappings
Mapped Taxonomy Name Node ID Fit Mapped Node Name
PLOVER Grouping Element / Paired Delimiter
Software Fault Patterns SFP24 Tainted input to command
Related Attack Patterns
CAPEC-ID Attack Pattern Name
15 Command Delimiters
CWE-158: Improper Neutralization of Null Byte or NUL Character
Weakness ID : 158
Structure : Simple
Abstraction : Variant
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.
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.
Relationships
The table(s) below shows the weaknesses and high level categories that are related to this
weakness. These relationships are defined as ChildOf, ParentOf, MemberOr and give insight to
similar items that may exist at higher and lower levels of abstraction. In addition, relationships such
as PeerOf and CanAlsoBe are defined to show similar weaknesses that may want to be explored.
Relevant to the view "Research Concepts" (CWE-1000)
Nature Type ID Name Page
ChildOf 138 Improper Neutralization of Special Elements 373
Applicable Platforms
Language : Not Language-Specific (Prevalence = Undetermined)
Common Consequences
Scope Impact Likelihood
Integrity Unexpected State
Potential Mitigations
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.
CWE Version 4.14
CWE-158: Improper Neutralization of Null Byte or NUL Character
CWE-158: Improper Neutralization of Null Byte or NUL Character