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: 16 October 2026 07:24 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: mostly · 2 mapping(s) from 1 framework(s): 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 PROPOSED for this weakness (2)AI-assisted
These are model PROPOSALS, not graded mappings. They come
from controls_to_cwe_proposals, which carries no grade field at
all; across the CWE pages 1,540 of 1,722 such associations (89%) have never
been graded by anything. The heading said “address” until
2026-09-29, which asserted a relationship the data does not carry.
Graded cross-walks are on the framework map, not here.
| Control | Title | Family | Why it addresses this CWE |
|---|---|---|---|
SI-10 | Information Input Validation | SI | graded mostly Validates inputs to block special elements that would alter OS command execution. |
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. |
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.9058 | 2022-07-08 |
CVE-2023-34992 UPD | 10.0 | 10.0 | 0.8170 | 2023-10-10 |
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.9475 | 2024-10-29 |
CVE-2024-50603 KEV UPD | 10.0 | 10.0 | 0.9852 | 2025-01-08 |
CVE-2026-10520 KEV UPD | 10.0 | 10.0 | 0.9991 | 2026-06-09 |
CVE-2026-49869 KEV UPD | 10.0 | 10.0 | 0.0209 | 2026-06-26 |
CVE-2026-16812 KEV | 10.0 | 10.0 | 0.0100 | 2026-07-27 |
CVE-2026-105134 KEV UPD | 10.0 | 10.0 | 0.0324 | 2026-10-04 |
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.6871 | 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.9995 | 2018-05-04 |
CVE-2018-11138 KEV UPD | 9.9 | 9.8 | 0.9172 | 2018-05-31 |
CVE-2018-10660 UPD | 9.9 | 9.8 | 0.8208 | 2018-06-26 |
CVE-2018-14417 UPD | 9.9 | 9.8 | 0.8941 | 2018-08-04 |
CVE-2018-14933 KEV UPD | 9.9 | 9.8 | 0.9476 | 2018-08-04 |