Back to CWE Lookup

CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')

ClassDraftExploit Likelihood: High
🏆 #20 in CWE Top 25 20244
View on MITRE

The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.

Extended Description

Many protocols and products have their own custom command language. While OS or shell command strings are frequently discovered and targeted, developers may not realize that these other command languages might also be vulnerable to attacks.

Technical Details

Structure
Simple

Applicable To

Languages
Not Language-Specific
Platforms

🏆 CWE Top 25 Historical Ranking

2023:#16
Score: 4.95
195 CVEs
2024:#20↓4
Score: 9.45
208 CVEs
Trend:Improving (moved up 4 ranks)