392
filter all characters that do not pass an extremely strict allowlist (such as everything that is not
alphanumeric or white space). If some special characters are still needed, such as white space,
wrap each argument in quotes after the escaping/filtering step. Be careful of argument injection
(CWE-88).
Phase: Implementation
Strategy = Input Validation
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.
MemberOf Relationships
This MemberOf relationships table shows additional CWE Catgeories and Views that reference this
weakness as a member. This information is often useful in understanding where a weakness fits
within the context of external information sources.
Nature Type ID Name Page
MemberOf 990 SFP Secondary Cluster: Tainted Input to Command 888 2413
MemberOf 1407 Comprehensive Categorization: Improper Neutralization 1400 2532
Taxonomy Mappings
Mapped Taxonomy Name Node ID Fit Mapped Node Name
PLOVER Input Leader
Software Fault Patterns SFP24 Tainted input to command
CWE-149: Improper Neutralization of Quoting Syntax
Weakness ID : 149
Structure : Simple
Abstraction : Variant
Description
Quotes injected into a product can be used to compromise a system. As data are parsed, an
injected/absent/duplicate/malformed use of quotes may cause the process to take unexpected
actions.
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
Common Consequences
Scope Impact Likelihood
Integrity Unexpected State
Potential Mitigations
Developers should anticipate that quotes 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-149: Improper Neutralization of Quoting Syntax
CWE-149: Improper Neutralization of Quoting Syntax