CWE · MITRE source
CWE-78Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
This weakness can lead to a vulnerability in environments in which the attacker does not have direct access to the operating system, such as in web applications. Alternately, if the weakness occurs in a privileged program, it could allow the attacker to specify commands that normally would not be accessible, or to call alternate commands with privileges that the attacker does not have. The problem is exacerbated if the compromised process does not follow the principle of least privilege, because the attacker-controlled commands may run with special system privileges that increases the amount of damage. There are at least two subtypes of OS command injection: From a weakness standpoint, these variants represent distinct programmer errors. In the first variant, the programmer clearly intends that input from untrusted parties will be part of the arguments in the command to be executed. In the second variant, the programmer does not intend for the command to be accessible to any untrusted party, but the programmer probably has not accounted for alternate ways in which malicious attackers can provide input.
Last updated: 22 August 2026 20:22 UTC
Cumulative inbound coverage
How completely the frameworks we cross-walk collectively cover this — the verdict is the strongest single mapping (overlapping partials are not summed); breadth shows the corroboration behind it.
Collective: full · 7 mapping(s) from 2 framework(s): CAPEC 5 (full) · CSF 2.0 2 (mostly)
OWASP Top 10 for Web (2025)
This weakness contributes to A05:2025 Injection.
Control responseHuman-reviewed
Answering this weakness across the control lifecycle, from our framework cross-walks.
NIST 800-53 r5 controls that address this weakness (2)AI-assisted
| Control | Title | Family | Why it addresses this CWE |
|---|---|---|---|
SC-27 | Platform-independent Applications | SC | Platform-independent apps typically execute inside a managed runtime or sandbox that restricts direct OS command execution, reducing the ability to exploit OS command injection. |
SI-10 | Information Input Validation | SI | Validates inputs to block special elements that would alter OS command execution. |
Top CVEs of this weakness type, ranked by Risk Priority
| CVE | Risk | CVSS | EPSS | Published |
|---|---|---|---|---|
CVE-2022-20708 KEV UPD | 10.0 | 10.0 | 0.1486 | 2022-02-10 |
CVE-2022-31137 UPD | 10.0 | 10.0 | 0.9039 | 2022-07-08 |
CVE-2024-1212 KEV UPD | 10.0 | 10.0 | 0.9539 | 2024-02-21 |
CVE-2024-2389 UPD | 10.0 | 10.0 | 0.9304 | 2024-04-02 |
CVE-2024-45519 KEV UPD | 10.0 | 10.0 | 0.9991 | 2024-10-02 |
CVE-2024-51378 KEV UPD | 10.0 | 10.0 | 0.9473 | 2024-10-29 |
CVE-2024-50603 KEV UPD | 10.0 | 10.0 | 0.9855 | 2025-01-08 |
CVE-2026-10520 KEV UPD | 10.0 | 10.0 | 0.9990 | 2026-06-09 |
CVE-2026-16812 KEV | 10.0 | 10.0 | 0.0088 | 2026-07-27 |
CVE-2014-6271 KEV UPD | 9.9 | 9.8 | 1.0000 | 2014-09-24 |
CVE-2014-7169 KEV UPD | 9.9 | 9.8 | 0.9994 | 2014-09-25 |
CVE-2017-6077 KEV UPD | 9.9 | 9.8 | 0.6820 | 2017-02-22 |
CVE-2017-9828 UPD | 9.9 | 9.8 | 0.8246 | 2017-06-23 |
CVE-2017-17105 UPD | 9.9 | 9.8 | 0.8456 | 2017-12-19 |
CVE-2017-17411 UPD | 9.9 | 9.8 | 0.8793 | 2017-12-21 |
CVE-2018-6530 KEV UPD | 9.9 | 9.8 | 0.9668 | 2018-03-06 |
CVE-2018-7890 UPD | 9.9 | 9.8 | 0.7882 | 2018-03-08 |
CVE-2018-10562 KEV UPD | 9.9 | 9.8 | 0.9994 | 2018-05-04 |
CVE-2018-11138 KEV UPD | 9.9 | 9.8 | 0.9206 | 2018-05-31 |
CVE-2018-10660 UPD | 9.9 | 9.8 | 0.8228 | 2018-06-26 |
CVE-2018-14417 UPD | 9.9 | 9.8 | 0.8958 | 2018-08-04 |
CVE-2018-14933 KEV UPD | 9.9 | 9.8 | 0.9488 | 2018-08-04 |
CVE-2018-14558 KEV UPD | 9.9 | 9.8 | 0.0867 | 2018-10-30 |
CVE-2018-16167 UPD | 9.9 | 9.8 | 0.7474 | 2019-01-09 |
CVE-2019-9194 UPD | 9.9 | 9.8 | 0.9667 | 2019-02-26 |