What is CWE-78?
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: The application intends to execute a single, fixed program that is under its own control. It intends to use externally-supplied inputs as arguments to that program. For example, the program might use system("nslookup [HOSTNAME]") to run nslookup and allow the user to supply a HOSTNAME, which is used as an argument. Attackers cannot prevent nslookup from executing. However, if the program does not remove command separators from the HOSTNAME argument, attackers could place the separators into the arguments, which allows them to execute their own program after nslookup has finished executing. The application accepts an input that it uses to fully select which program to run, as well as which commands to use. The application simply redirects this entire command to the operating system. For example, the program might use "exec([COMMAND])" to execute the [COMMAND] that was supplied by the user. If the COMMAND is under attacker control, then the attacker can execute arbitrary commands or programs. If the command is being executed using functions like exec() and CreateProcess(), the attacker might not be able to combine multiple commands together in the same line. 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.
CWE-78 is a base-level weakness in MITRE’s Common Weakness Enumeration, with a MITRE likelihood of exploit of High. Applicable platforms: Language: Not Language-Specific; Technology: Not Technology-Specific; Technology: AI/ML; Technology: Web Server.
Source: MITRE CWE (CWE-78 definition, reproduced verbatim). Counts and linkage below are Threadlinqs data.
Consequences
- Confidentiality, Integrity, Availability, Non-Repudiation — Execute Unauthorized Code or Commands, DoS: Crash, Exit, or Restart, Read Files or Directories, Modify Files or Directories, Read Application Data, Modify Application Data, Hide Activities. Attackers could execute unauthorized operating system commands, which could then be used to disable the product, or read and modify data for which the attacker does not have permissions to access directly. Since the targeted application is directly executing the commands instead of the attacker, any malicious activities may appear to come from the application or the application's owner.
Source: MITRE CWE, common consequences.
How CWE-78 is exploited in the wild
Threadlinqs maps 206 CVEs to CWE-78, published between 2014-09-24 and 2026-11-17. 46 are listed in CISA’s Known Exploited Vulnerabilities catalog, the authoritative record of exploitation in the wild, and 7 are tied to ransomware campaigns. By CVSS v3 severity the set splits into 89 critical, 83 high, 13 medium, 2 low. The highest EPSS score in the set is 99.9% (CVE-2014-6271), the modelled probability of exploitation in the next 30 days. 249 tracked threats reference CWE-78 directly or through a CVE it covers; the most recent is “Atlassian November 2026 Security Bulletin: 318 vulnerability entries across Jira, Confluence, Bitbucket, Bamboo, Crowd, Fisheye and Crucible (52 critical), plus Confluence Axis RCE CVE-2026-90436” (2026-11-18). Affected products concentrate in Copeland (14), Dell (6), NVIDIA (6), among 124 vendors in total.
Vulnerabilities (CVEs)
Showing 40 of 206 CVEs mapped to CWE-78, CISA KEV first, then by CVSS score.
- CVE-2024-45519 — CISA KEV · CVSS 10 critical · EPSS 99.9% · published 2024-10-02
- CVE-2026-10520 — CISA KEV · CVSS 10 critical · EPSS 99.0% · published 2026-06-09
- CVE-2024-1212 — CISA KEV · CVSS 10 critical · EPSS 95.3% · published 2024-02-21
- CVE-2026-16812 — CISA KEV · CVSS 10 critical · EPSS 0.8% · published 2026-07-27
- CVE-2014-6271 — CISA KEV · CVSS 9.8 critical · EPSS 99.9% · published 2014-09-24
- CVE-2022-44877 — CISA KEV · CVSS 9.8 critical · EPSS 99.9% · published 2023-01-05
- CVE-2020-8515 — CISA KEV · CVSS 9.8 critical · EPSS 99.9% · published 2020-02-01
- CVE-2024-4577 — CISA KEV · CVSS 9.8 critical · EPSS 99.9% · published 2024-06-09
- CVE-2018-10562 — CISA KEV · CVSS 9.8 critical · EPSS 99.9% · published 2018-05-04
- CVE-2022-30525 — CISA KEV · CVSS 9.8 critical · EPSS 99.9% · published 2022-05-12
- CVE-2021-36260 — CISA KEV · CVSS 9.8 critical · EPSS 99.8% · published 2021-09-22
- CVE-2021-35394 — CISA KEV · CVSS 9.8 critical · EPSS 99.8% · published 2021-08-16
- CVE-2019-15107 — CISA KEV · CVSS 9.8 critical · EPSS 99.7% · published 2019-08-16
- CVE-2021-36380 — CISA KEV · CVSS 9.8 critical · EPSS 97.6% · published 2021-08-13
- CVE-2019-7256 — CISA KEV · CVSS 9.8 critical · EPSS 97.0% · published 2019-07-02
- CVE-2025-11953 — CISA KEV · CVSS 9.8 critical · EPSS 93.9% · published 2025-11-03
- CVE-2026-1731 — CISA KEV · CVSS 9.8 critical · EPSS 91.7% · published 2026-02-06
- CVE-2019-17621 — CISA KEV · CVSS 9.8 critical · EPSS 89.6% · published 2019-12-30
- CVE-2020-12641 — CISA KEV · CVSS 9.8 critical · EPSS 84.3% · published 2020-05-04
- CVE-2020-10987 — CISA KEV · CVSS 9.8 critical · EPSS 79.8% · published 2020-07-13
- CVE-2026-110447 — CISA KEV · CVSS 9.8 critical · EPSS 73.3% · published 2026-10-14
- CVE-2024-11120 — CISA KEV · CVSS 9.8 critical · EPSS 28.3% · published 2024-11-15
- CVE-2025-67038 — CISA KEV · CVSS 9.8 critical · EPSS 19.9% · published 2026-03-11
- CVE-2024-6047 — CISA KEV · CVSS 9.8 critical · EPSS 10.0% · published 2024-06-17
- CVE-2018-14558 — CISA KEV · CVSS 9.8 critical · EPSS 8.5% · published 2018-10-30
- CVE-2026-116779 — CISA KEV · CVSS 9.8 critical · EPSS 1.2% · published 2026-11-05
- CVE-2026-20265 — CISA KEV · CVSS 9.8 critical · EPSS 0.2% · published 2026-06-17
- CVE-2026-25089 — CISA KEV · CVSS 9.1 critical · EPSS 76.1% · published 2026-06-09
- CVE-2026-39808 — CISA KEV · CVSS 9.1 critical · EPSS 47.3% · published 2026-04-14
- CVE-2025-48703 — CISA KEV · CVSS 9 critical · EPSS 99.6% · published 2025-09-19
- CVE-2026-73570 — CISA KEV · CVSS 8.9 high · EPSS 71.6% · published 2026-08-13
- CVE-2014-6278 — CISA KEV · CVSS 8.8 high · EPSS 99.6% · published 2014-09-30
- CVE-2026-42271 — CISA KEV · CVSS 8.8 high · EPSS 92.5% · published 2026-05-08
- CVE-2023-39780 — CISA KEV · CVSS 8.8 high · EPSS 39.5% · published 2023-09-11
- CVE-2026-25108 — CISA KEV · CVSS 8.8 high · EPSS 5.1% · published 2026-02-13
- CVE-2019-11539 — CISA KEV · CVSS 8 high · EPSS 98.6% · published 2019-04-26
- CVE-2026-106931 — CISA KEV · CVSS 7.8 high · EPSS 2.5% · published 2026-10-14
- CVE-2026-83549 — CISA KEV · CVSS 7.8 high · EPSS 0.9% · published 2026-09-01
- CVE-2017-3506 — CISA KEV · CVSS 7.4 high · EPSS 96.2% · published 2017-04-24
- CVE-2024-9474 — CISA KEV · CVSS 7.2 high · EPSS 94.8% · published 2024-11-18
Affected vendors
Threat activity
249 tracked threats cite CWE-78; the 25 most recent are listed.
- Atlassian November 2026 Security Bulletin: 318 vulnerability entries across Jira, Confluence, Bitbucket, Bamboo, Crowd, Fisheye and Crucible (52 critical), plus Confluence Axis RCE CVE-2026-90436CRITICAL
- Cron-Based Persistence on Network Appliances: Evooo1Bot and SSHStalker Linux BotnetsHIGH
- Unpatched GeoVision GV-VMS Camera Software Exploited to Deploy XMRig Cryptominer Against 13 OrganizationsHIGH
- Opportunistic Exploitation Attempts Against Copeland XWEB EVO Refrigeration Controller Flaws (CVE-2026-124014, CVE-2026-124010)CRITICAL
- Red Hat Satellite satellite/iop-vulnerability-engine-rhel9 container image - RHSA-2026:100152 (GitPython flaws CVE-2026-110856, CVE-2026-110858, CVE-2026-110859, CVE-2026-114145)CRITICAL
- CVE-2026-20764: Copeland XWEB / XWEB Pro OS Command Injection via Hostname Configuration (Authenticated RCE)HIGH
- CVE-2026-21654: Pre-Authentication OS Command Injection in Johnson Controls Frick Controls Quantum HD (10.22 through 11)CRITICAL
- CVE-2026-25196: OS Command Injection in Copeland XWEB Pro (1.12.1 and prior) via Wi-Fi SSID/Password FieldsHIGH
- Ivanti EPM Core Critical SQL Injection Enabling Unauthenticated RCE (CVE-2026-121653) and Multiple Ivanti CSA/EPMM/Sentry/UWM FlawsCRITICAL
- AI-accelerated exploitation of pre-existing exposures: collapsed time-to-exploit (Qualys analysis; CVE-2026-96951, CVE-2026-124194 exploited zero-days)HIGH
- CVE-2026-21659 — Johnson Controls Frick Controls Quantum HD unauthenticated path traversal / local file inclusion leading to arbitrary code executionCRITICAL
- CVE-2026-21658: Pre-Authentication Input Validation / Code Injection Flaw in Johnson Controls Frick Controls Quantum HD (10.22 and earlier, legacy through 11)CRITICAL
- CVE-2026-25037: OS Command Injection in Copeland XWEB Pro (<=1.12.1) Enabling Authenticated RCE via Crafted LCD StateHIGH
- ARTEX open-source AI pentesting framework weaponized by China-aligned and criminal actors (Storm-0940, VAPOR PANDA, Storm-3358, Crafty Falcon); leaked secrets are the primary entry vector; backdoored Docker imagesHIGH
- ARTEX open-source agentic AI pentest framework abused by Chinese-nexus state and criminal actors to automate intrusions at machine speed (FBI Flash Alert)HIGH
- Dirty Cert: Cisco Smart Software Manager Silently Patched Post-Auth RCE via Certificate Upload (no CVE stated)HIGH
- Ivanti EPM SQLi RCE (CVE-2026-121653) and CSA Missing Authentication (CVE-2026-121683); Citrix XenServer and Ivanti Sentry/EPMM PatchesCRITICAL
- MCP Server Supply Chain Weaknesses (uvx/npx Unpinned Dependencies) Could Expose API Keys and Administrator CredentialsMEDIUM
- N-able N-central: 33 Alleged Zero-Day Vulnerabilities Published with PoC ("Able2Shell" XXE-to-RCE chain); Platform Taken OfflineCRITICAL
- Zoom Workplace for Windows Critical Privilege Escalation (CVE-2026-108186, CVE-2026-108187) and ASUS Router Firmware Remote File Access Vulnerabilities (CVE-2026-88707 to CVE-2026-88710) PatchedCRITICAL
- CTO at NCSC Weekly Summary (week ending July 26, 2026): Cl0p PTC Windchill/FlexPLM exploitation (CVE-2026-12569), SonicWall SMA 1000 zero-days (CVE-2026-15409/CVE-2026-15410), and multi-actor state-linked activityHIGH
- Microsoft November 2026 Patch Tuesday (1,093 bugs) - Exploited Outlook CVE-2026-124194, Barracuda CVE-2026-116606/CVE-2026-111560 (CISA-directed), N-able N-central PoC scanningCRITICAL
- Copeland XWEB PRO refrigeration controllers abused for spam botnet, proxy/tunnel traffic and default-credential setpoint tampering (CVE-2026-25085 suspected entry point)HIGH
- Able2Shell: 33 N-able N-central Vulnerabilities Chained into RCE and Root Privilege Escalation; N-able Takes Hosted Cloud OfflineCRITICAL
- CISA adds four KEVs: GPUStack CVE-2026-102895, SignalWire FreeSwitch CVE-2026-116779, OpenBSD OpenSSH CVE-2026-123158, IBM Aspera Faspex CVE-2026-123218CRITICAL
Mitigations
- Architecture and Design: If at all possible, use library calls rather than external processes to recreate the desired functionality.
- Architecture and Design, Operation / Sandbox or Jail: Run the code in a "jail" or similar sandbox environment that enforces strict boundaries between the process and the operating system. This may effectively restrict which files can be accessed in a particular directory or which commands can be executed by the software. OS-level examples include the Unix chroot jail, AppArmor, and SELinux. In general, managed code may provide some protection. For example, java.io.FilePermission in the Java SecurityManager allows the software to specify restrictions on file operations. This may not be a feasible solution, and it only limits the impact to the operating system; the rest of the application may still be subject to compromise. Be careful to avoid…
- Architecture and Design / Attack Surface Reduction: For any data that will be used to generate a command to be executed, keep as much of that data out of external control as possible. For example, in web applications, this may require storing the data locally in the session's state instead of sending it out to the client in a hidden form field.
- Architecture and Design: For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.
- Architecture and Design / Libraries or Frameworks: Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, consider using the ESAPI Encoding control [REF-45] or a similar tool, library, or framework. These will help the programmer encode outputs in a manner less prone to error.
- Implementation / Output Encoding: While it is risky to use dynamically-generated query strings, code, or commands that mix control and data together, sometimes it may be unavoidable. Properly quote arguments and escape any special characters within those arguments. The most conservative approach is to escape or filter all characters that do not pass an extremely strict allowlist (such as everything that is not alphanumeric or white space). If some special characters are still needed, such as white space, wrap each argument in quotes after the escaping/filtering step. Be careful of argument injection (CWE-88).
- Implementation: If the program to be executed allows arguments to be specified within an input file or from standard input, then consider using that mode to pass arguments instead of the command line.
- Architecture and Design / Parameterization: If available, use structured mechanisms that automatically enforce the separation between data and code. These mechanisms may be able to provide the relevant quoting, encoding, and validation automatically, instead of relying on the developer to provide this capability at every point where output is generated. Some languages offer multiple functions that can be used to invoke commands. Where possible, identify any function that invokes a command shell using a single string, and replace it with a function that requires individual arguments. These functions typically perform appropriate quoting and filtering of arguments. For example, in C, the system() function accepts a string that contains…
- Implementation / Input Validation: Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected…
- Architecture and Design / Enforcement by Conversion: When the set of acceptable objects, such as filenames or URLs, is limited or known, create a mapping from a set of fixed input values (such as numeric IDs) to the actual filenames or URLs, and reject all other inputs.
Source: MITRE CWE, potential mitigations.
Detection methods (MITRE CWE)
- Automated Static Analysis: This weakness can often be detected using automated static analysis tools. Many modern tools use data flow analysis or constraint-based techniques to minimize the number of false positives. Automated static analysis might not be able to recognize when proper input validation is being performed, leading to false positives - i.e., warnings that do not have any security consequences or require any code changes. Automated static analysis might not be able to detect the usage of custom API functions…
- Automated Dynamic Analysis (effectiveness: Moderate): This weakness can be detected using dynamic tools and techniques that interact with the product using large test suites with many diverse inputs, such as fuzz testing (fuzzing), robustness testing, and fault injection. The product's operation may slow down, but it should not become unstable, crash, or generate incorrect results.
- Manual Static Analysis (effectiveness: High): Since this weakness does not typically appear frequently within a single software package, manual white box techniques may be able to provide sufficient code coverage and reduction of false positives if all potentially-vulnerable operations can be assessed within limited time constraints.
- Automated Static Analysis - Binary or Bytecode (effectiveness: High): According to SOAR [REF-1479], the following detection techniques may be useful: Highly cost effective: Bytecode Weakness Analysis - including disassembler + source code weakness analysis Binary Weakness Analysis - including disassembler + source code weakness analysis
- Dynamic Analysis with Automated Results Interpretation (effectiveness: SOAR Partial): According to SOAR [REF-1479], the following detection techniques may be useful: Cost effective for partial coverage: Web Application Scanner Web Services Scanner Database Scanners
- Dynamic Analysis with Manual Results Interpretation (effectiveness: SOAR Partial): According to SOAR [REF-1479], the following detection techniques may be useful: Cost effective for partial coverage: Fuzz Tester Framework-based Fuzzer
- Manual Static Analysis - Source Code (effectiveness: High): According to SOAR [REF-1479], the following detection techniques may be useful: Highly cost effective: Manual Source Code Review (not inspections) Cost effective for partial coverage: Focused Manual Spotcheck - Focused manual analysis of source
- Automated Static Analysis - Source Code (effectiveness: High): According to SOAR [REF-1479], the following detection techniques may be useful: Highly cost effective: Source code Weakness Analyzer Context-configured Source Code Weakness Analyzer
Source: MITRE CWE, detection methods. Threadlinqs detection rules for the threats above are Blue tier and higher.