Skip to main content

About CWE-78

Unauthorized OS commands can disable the product or read and modify data the attacker could not reach directly. Because the application runs the commands, the activity appears to come from the application or its owner.

MITRE name
Improper Neutralization of Special Elements used in an OS Command
Abstraction
Base: abstract, but detailed enough to infer detection and prevention methods
Status
Stable

Also Known As

  • Shell injection
  • Shell metacharacters
  • OS Command Injection

Mitigations

  • Replace calls to external processes with library functions that provide the same behavior.
  • Use structured mechanisms that keep data separate from the command, such as APIs that take arguments as a list.
  • Keep data used to build commands out of external control, for example by holding it in server-side session state.
  • Quote arguments and escape special characters when dynamic commands cannot be avoided, using a strict allowlist.
  • Run the code in a sandbox such as a chroot jail, AppArmor or SELinux to limit which commands and files are reachable.

Detection
Automated static analysis can often find this weakness through data flow analysis, and dynamic testing with fuzzing has moderate effectiveness according to MITRE.

CWE-78 in the KEV Catalog

as of 2026-11-10
All KEV statistics→
  • 116 CISA KEV entries name OS Command Injection (CWE-78) in their CVE record, ranking 2nd among the 193 weaknesses named in the catalog.
  • CISA added 18 CWE-78 entries to the KEV catalog in 2024, 18 in 2025, and 17 so far in 2026.
  • D-Link has the most CWE-78 entries in the CISA KEV catalog (11), followed by Zyxel (8), Cisco (4), and Nagios (4).
  • For CWE-78 entries added to the CISA KEV catalog since 2023, the median time from CVE publication to KEV listing is 36.5 days, compared with 16 days for all entries added in that period.
  • CISA marks 13% of CWE-78 KEV entries (15 of 116) as known to be used in ransomware campaigns, compared with 20% of all KEV entries.
  • CISA's SSVC enrichment rates 53% of CWE-78 KEV entries with SSVC data (62 of 116) as automatable, compared with 41% across the catalog.

Related Attack Patterns

5 CAPEC patterns
CAPEC-6Argument InjectionStandard · Severity High · Likelihood High
CAPEC-15Command DelimitersStandard · Severity High · Likelihood High
CAPEC-88OS Command InjectionStandard · Severity High · Likelihood High
CAPEC-108Command Line Execution through SQL InjectionDetailed · Severity Very High · Likelihood Low
CAPEC-43Exploiting Multiple Input Interpretation LayersDetailed · Severity High · Likelihood Medium

CWE-78 Vulnerabilities

183 CVEs
CVECVSS
CVE-2026-116779KEV
FreeSWITCH: Inbound SIP MESSAGE can select the api chat proto and run FreeSWITCH API commands
9.8
CVE-2026-110447KEV
Collabora Online – Built-in CODE Server OS Command Injection Vulnerability
9.2
CVE-2026-106931KEV
EG Secure Solutions SiteGuard Server Edition OS Command Injection Vulnerability
8.5
CVE-2026-105134KEV
Ahsay AhsayCBS Replication Receiver UpdateReceivers.do os command injection
10.0
CVE-2026-83549KEV
SonicWall SMA1000 Appliances OS Command Injection Vulnerability
7.8
CVE-2026-49869KEV
Kestra: Unauthenticated Remote Code Execution via Authentication Bypass in `AuthenticationFilter`
10.0
CVE-2026-73570KEV
Zimbra Collaboration Suite (ZCS) OS Command Injection Vulnerability
8.9
CVE-2026-16812KEV
VeloCloud Orchestrator OS Command Injection
10.0
CVE-2026-39808KEV
Fortinet FortiSandbox OS Command Injection Vulnerability
9.1
CVE-2026-25089KEV
Fortinet FortiSandbox OS Command Injection Vulnerability
9.1
CVE-2025-67038KEV
Lantronix EDS5000, G520, and X300 OS Command Injection
9.8
CVE-2026-10520KEV
Ivanti Sentry OS Command Injection Vulnerability
10.0
CVE-2026-42271KEV
LiteLLM: Authenticated command execution via MCP stdio test endpoints
8.7
CVE-2026-25108KEV
Soliton Systems K.K FileZen OS Command Injection Vulnerability
8.8
CVE-2026-1731KEV
Remote code execution vulnerability in BeyondTrust Remote Support (RS) and Privileged Remote Access (PRA)
9.9
CVE-2025-11953KEV
Command injection in React Native Community CLI allows remote attackers to perform remote code execution by sending HTTP requests
9.8
CVE-2025-64328KEV
FreePBX Administration GUI is Vulnerable to Authenticated Command Injection
8.6
CVE-2025-66644KEV
Array Networks ArrayOS AG OS Command Injection Vulnerability
7.2
CVE-2025-58034KEV
Fortinet FortiWeb OS Command Injection Vulnerability
6.7
CVE-2025-48703KEV
CWP Control Web Panel OS Command Injection Vulnerability
9.0
CVE-2014-6278KEV
GNU Bash OS Command Injection Vulnerability
8.8
CVE-2025-9377KEV
Authenticated RCE via Parental Control command injection
8.6
CVE-2025-54948KEV
Trend Micro Apex One OS Command Injection Vulnerability
9.4
CVE-2023-39780KEV
ASUS RT-AX55 Routers OS Command Injection Vulnerability
8.8
CVE-2024-12987KEV
DrayTek Vigor2960/Vigor300B Web Management Interface apmcfgupload os command injection
7.3
CVE-2024-11120KEV
GeoVision EOL devices - OS Command Injection
9.8
CVE-2024-6047KEV
GeoVision EOL device - OS Command Injection
9.8
CVE-2023-44221KEV
SonicWall SMA100 Appliances OS Command Injection Vulnerability
7.2
CVE-2021-20035KEV
SonicWall SMA100 Appliances OS Command Injection Vulnerability
6.5
CVE-2025-1316KEV
Edimax IC-7100 IP Camera OS Command Injection
9.8
CVE-2024-40891KEV
Zyxel DSL CPE OS Command Injection Vulnerability
8.8
CVE-2024-40890KEV
Zyxel DSL CPE OS Command Injection Vulnerability
8.8
CVE-2018-9276KEV
Paessler PRTG Network Monitor OS Command Injection Vulnerability
7.2
CVE-2024-50603KEV
Aviatrix Controllers OS Command Injection Vulnerability
10.0
CVE-2024-12686KEV
Command Injection vulnerability in Remote Support(RS) & Privilege Remote Access (PRA)
6.6
CVE-2018-14933KEV
NUUO NVRmini Devices OS Command Injection Vulnerability
9.8
CVE-2021-40407KEV
Reolink RLC-410W IP Camera OS Command Injection Vulnerability
9.1
CVE-2019-11001KEV
Reolink Multiple IP Cameras OS Command Injection Vulnerability
7.2
CVE-2024-51378KEV
CyberPanel Incorrect Default Permissions Vulnerability
10.0
CVE-2024-1212KEV
LoadMaster Pre-Authenticated OS Command Injection
10.0
CVE-2024-9474KEV
PAN-OS: Privilege Escalation (PE) Vulnerability in the Web Management Interface
6.9
CVE-2024-9463KEV
Expedition: Unauthenticated OS Command Injection Vulnerability Leads to Firewall Credential Disclosure
9.9
CVE-2024-8957KEV
PTZOptics NDI and SDI Cameras Command Injection via NTP Address Configuration
7.2
CVE-2024-45519KEV
Synacor Zimbra Collaboration Suite (ZCS) Command Execution Vulnerability
10.0
CVE-2023-25280KEV
D-Link DIR-820 Router OS Command Injection Vulnerability
9.8
CVE-2020-15415KEV
DrayTek Multiple Vigor Routers OS Command Injection Vulnerability
9.8
CVE-2024-8190KEV
Ivanti Cloud Services Appliance OS Command Injection Vulnerability
7.2
CVE-2024-20399KEV
Cisco NX-OS Software CLI Command Injection Vulnerability
6.0
CVE-2024-4577KEV
Argument Injection in PHP-CGI
9.8
CVE-2017-3506KEV
Oracle WebLogic Server OS Command Injection Vulnerability
7.4
CVE-2023-43208KEV
NextGen Healthcare Mirth Connect Deserialization of Untrusted Data Vulnerability
9.8
CVE-2019-7256KEV
Nice Linear eMerge E3-Series OS Command Injection Vulnerability
9.8
CVE-2021-36380KEV
Sunhillo SureLine OS Command Injection Vulnerablity
9.8
CVE-2023-47565KEV
Legacy VioStor NVR
8.0
CVE-2023-49897KEV
FXC AE1021, AE1021PE OS Command Injection Vulnerability
8.8
CVE-2023-20273KEV
Cisco IOS XE Web UI Command Injection Vulnerability
7.2
CVE-2017-6884KEV
Zyxel EMG2926 Routers Command Injection Vulnerability
8.8
CVE-2017-18368KEV
Zyxel P660HN-T1A Routers Command Injection Vulnerability
9.8
CVE-2022-29303KEV
SolarView Compact Command Injection Vulnerability
9.8
CVE-2019-20500KEV
D-Link DWL-2600AP Access Point Command Injection Vulnerability
7.8
CVE-2019-17621KEV
D-Link DIR-859 Router Command Execution Vulnerability
9.8
CVE-2023-27992KEV
Zyxel Multiple NAS Devices Command Injection Vulnerability
9.8
CVE-2020-12641KEV
Roundcube Webmail Remote Code Execution Vulnerability
9.8
CVE-2023-28771KEV
Zyxel Multiple Firewalls OS Command Injection Vulnerability
9.8
CVE-2022-33891KEV
Apache Spark shell command injection vulnerability via Spark UI
8.8
CVE-2022-44877KEV
CWP Control Web Panel OS Command Injection Vulnerability
9.8
CVE-2022-36804KEV
Atlassian Bitbucket Server and Data Center Command Injection Vulnerability
8.8
CVE-2018-6530KEV
D-Link Multiple Routers OS Command Injection Vulnerability
9.8
CVE-2022-26258KEV
D-Link DIR-820L Remote Code Execution Vulnerability
9.8
CVE-2018-19949KEV
QNAP NAS File Station Command Injection Vulnerability
9.8
CVE-2022-30525KEV
Zyxel Multiple Firewalls OS Command Injection Vulnerability
9.8
CVE-2019-16057KEV
D-Link DNS-320 Remote Code Execution Vulnerability
9.8
CVE-2020-2509KEV
Command Injection Vulnerability in QTS and QuTS hero
9.8
CVE-2021-45382KEV
D-Link Multiple Routers Remote Code Execution Vulnerability
9.8
CVE-2018-10562KEV
Dasan GPON Routers Command Injection Vulnerability
9.8
CVE-2019-16920KEV
D-Link Multiple Routers Command Injection Vulnerability
9.8
CVE-2020-9054KEV
ZyXEL NAS products running firmware version 5.21 and earlier are vulnerable to pre-authentication command injection in weblogin.cgi
9.8
CVE-2019-15107KEV
Webmin Command Injection Vulnerability
9.8
CVE-2020-1956KEV
Apache Kylin OS Command Injection Vulnerability
8.8
CVE-2020-25223KEV
Sophos SG UTM Remote Code Execution Vulnerability
9.8
CVE-2018-11138KEV
Quest KACE System Management Appliance Remote Command Execution Vulnerability
9.8
CVE-2018-14839KEV
LG N1A1 NAS Remote Command Execution Vulnerability
9.8
CVE-2018-6961KEV
VMware SD-WAN Edge by VeloCloud Command Injection Vulnerability
8.1
CVE-2019-12991KEV
Citrix SD-WAN and NetScaler Command Injection Vulnerability
8.8
CVE-2017-6334KEV
NETGEAR DGN2200 Devices OS Command Injection Vulnerability
8.8
CVE-2016-11021KEV
D-Link DCS-930L Devices OS Command Injection Vulnerability
7.2
CVE-2020-9377KEV
D-Link DIR-610 Devices Remote Command Execution
8.8
CVE-2017-6077KEV
NETGEAR DGN2200 Remote Code Execution Vulnerability
9.8
CVE-2014-6271KEV
GNU Bourne-Again Shell (Bash) Arbitrary Code Execution Vulnerability
9.8
CVE-2014-7169KEV
GNU Bourne-Again Shell (Bash) Arbitrary Code Execution Vulnerability
9.8
CVE-2020-11978KEV
Apache Airflow Command Injection
8.8
CVE-2021-21315KEV
Command Injection Vulnerability
7.1
CVE-2021-25298KEV
Nagios XI OS Command Injection
8.8
CVE-2021-25296KEV
Nagios XI OS Command Injection
8.8
CVE-2021-25297KEV
Nagios XI OS Command Injection
8.8
CVE-2019-10149KEV
Exim Mail Transfer Agent (MTA) Improper Input Validation
9.0
CVE-2021-36260KEV
Hikvision Improper Input Validation
9.8
CVE-2021-35394KEV
Realtek Jungle SDK Remote Code Execution Vulnerability
9.8
CVE-2020-8816KEV
Pi-Hole AdminLTE Remote Code Execution Vulnerability
9.1
CVE-2021-1498KEV
Cisco HyperFlex HX Command Injection Vulnerabilities
9.8

Frequently Asked Questions

What is OS command injection (CWE-78)?→

It is a weakness where outside input reaches an operating system command without neutralization of special elements. The input can then change which command runs or what it does.

Does a sandbox fully prevent OS command injection?→

No. MITRE rates sandboxing as limited in effectiveness because it only restricts impact on the operating system, so the input handling still needs a fix.

How many exploited vulnerabilities are classified as CWE-78?→

This database lists 183 CVE records mapped to CWE-78 by their CVE Numbering Authority. 116 of them are in the CISA Known Exploited Vulnerabilities catalog, and CISA links 15 to known ransomware campaigns. Examples include CVE-2026-116779, CVE-2026-110447, CVE-2026-106931.

How quickly are CWE-78 vulnerabilities added to the KEV catalog?→

For CWE-78 entries added to the CISA KEV catalog since 2023, the median time from CVE publication to KEV listing is 36.5 days, compared with 16 days for all entries added in that period. These figures are as of November 10, 2026.

Weakness definitions summarized from the CWE List, © The MITRE Corporation, used under the CWE Terms of Use. CWE mappings come from each CVE record's CNA. Exploited-in-the-wild data from the CISA KEV catalog (CC0). This site is not affiliated with or endorsed by MITRE or CISA. Attack patterns from CAPEC 3.9, © The MITRE Corporation, used under the CAPEC Terms of Use.