1392
Mapped Taxonomy Name Node ID Fit Mapped Node Name
Software Fault Patterns SFP24 Tainted input to command
CWE-625: Permissive Regular Expression
Weakness ID : 625
Structure : Simple
Abstraction : Base
Description
The product uses a regular expression that does not sufficiently restrict the set of allowed values.
Extended Description
This effectively causes the regexp to accept substrings that match the pattern, which produces a
partial comparison to the target. In some cases, this can lead to other weaknesses. Common errors
include:
• not identifying the beginning and end of the target string
• using wildcards instead of acceptable character ranges
• others
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 185 Incorrect Regular Expression 463
ParentOf 777 Regular Expression without Anchors 1636
PeerOf 183 Permissive List of Allowed Inputs 458
PeerOf 184 Incomplete List of Disallowed Inputs 459
PeerOf 187 Partial String Comparison 467
Relevant to the view "Software Development" (CWE-699)
Nature Type ID Name Page
MemberOf 19 Data Processing Errors 2309
Weakness Ordinalities
Primary :
Applicable Platforms
Language : Perl (Prevalence = Undetermined)
Language : PHP (Prevalence = Undetermined)
Common Consequences
Scope Impact Likelihood
Access Control Bypass Protection Mechanism
Detection Methods
Automated Static Analysis
CWE Version 4.14
CWE-625: Permissive Regular Expression
CWE-625: Permissive Regular Expression