What is CWE-77?
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.
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.
CWE-77 is a class-level weakness in MITRE’s Common Weakness Enumeration, with a MITRE likelihood of exploit of High. Applicable platforms: Language: Not Language-Specific; Technology: AI/ML.
Source: MITRE CWE (CWE-77 definition, reproduced verbatim). Counts and linkage below are Threadlinqs data.
Consequences
- Integrity, Confidentiality, Availability — Execute Unauthorized Code or Commands. If a malicious user injects a character (such as a semi-colon) that delimits the end of one command and the beginning of another, it may be possible to then insert an entirely new and unrelated command that was not intended to be executed. This gives an attacker a privilege or capability that they would not otherwise have.
Source: MITRE CWE, common consequences.
How CWE-77 is exploited in the wild
Threadlinqs maps 94 CVEs to CWE-77, published between 2007-09-18 and 2026-11-10. 18 are listed in CISA’s Known Exploited Vulnerabilities catalog, the authoritative record of exploitation in the wild, and 4 are tied to ransomware campaigns. By CVSS v3 severity the set splits into 38 critical, 38 high, 13 medium, 1 low. The highest EPSS score in the set is 99.9% (CVE-2024-3400), the modelled probability of exploitation in the next 30 days. 132 tracked threats reference CWE-77 directly or through a CVE it covers; the most recent is “CVE-2026-3854: GitHub Enterprise Server RCE via Git Push Option Metadata Injection” (2026-11-19). Affected products concentrate in Microsoft (14), Dlink (5), D-Link (4), among 49 vendors in total.
Vulnerabilities (CVEs)
Showing 40 of 94 CVEs mapped to CWE-77, CISA KEV first, then by CVSS score.
- CVE-2024-3400 — CISA KEV · CVSS 10 critical · EPSS 99.9% · published 2024-04-12
- CVE-2025-10035 — CISA KEV · CVSS 10 critical · EPSS 99.7% · published 2025-09-18
- CVE-2012-1823 — CISA KEV · CVSS 9.8 critical · EPSS 99.9% · published 2012-05-11
- CVE-2007-3010 — CISA KEV · CVSS 9.8 critical · EPSS 97.3% · published 2007-09-18
- CVE-2024-55956 — CISA KEV · CVSS 9.8 critical · EPSS 93.9% · published 2024-12-13
- CVE-2024-12356 — CISA KEV · CVSS 9.8 critical · EPSS 87.2% · published 2024-12-17
- CVE-2010-5330 — CISA KEV · CVSS 9.8 critical · EPSS 39.3% · published 2019-06-11
- CVE-2026-116779 — CISA KEV · CVSS 9.8 critical · EPSS 1.2% · published 2026-11-05
- CVE-2026-8037 — CISA KEV · CVSS 9.6 critical · EPSS 77.3% · published 2026-06-04
- CVE-2024-21887 — CISA KEV · CVSS 9.1 critical · EPSS 99.9% · published 2024-01-12
- CVE-2023-1389 — CISA KEV · CVSS 8.8 high · EPSS 99.9% · published 2023-03-15
- CVE-2015-2051 — CISA KEV · CVSS 8.8 high · EPSS 97.1% · published 2015-02-23
- CVE-2026-42271 — CISA KEV · CVSS 8.8 high · EPSS 92.5% · published 2026-05-08
- CVE-2026-96951 — CISA KEV · CVSS 8.8 high · EPSS 9.8% · published 2026-10-13
- CVE-2016-3081 — CISA KEV · CVSS 8.1 high · EPSS 94.5% · published 2016-04-26
- CVE-2026-22719 — CISA KEV · CVSS 8.1 high · EPSS 17.7% · published 2026-02-25
- CVE-2024-3273 — CISA KEV · CVSS 7.3 high · EPSS 99.9% · published 2024-04-04
- CVE-2025-29635 — CISA KEV · CVSS 7.2 high · EPSS 87.9% · published 2025-03-25
- CVE-2026-82971 — CVSS 10 critical · EPSS 1.8% · published 2026-08-31
- CVE-2026-105134 — CVSS 10 critical · EPSS 1.8% · published 2026-10-04
- CVE-2026-79846 — CVSS 10 critical · EPSS 1.5% · published 2026-10-22
- CVE-2024-43693 — CVSS 10 critical · EPSS 0.7% · published 2024-09-24
- CVE-2024-45066 — CVSS 10 critical · EPSS 0.7% · published 2024-09-24
- CVE-2026-52806 — CVSS 9.9 critical · EPSS 7.9% · published 2026-06-24
- CVE-2026-83524 — CVSS 9.9 critical · EPSS 1.6% · published 2026-08-31
- CVE-2026-112370 — CVSS 9.9 critical · EPSS 1.6% · published 2026-10-19
- CVE-2025-58428 — CVSS 9.9 critical · EPSS 1.3% · published 2025-10-23
- CVE-2026-85885 — CVSS 9.9 critical · EPSS 0.5% · published 2026-09-17
- CVE-2021-4045 — CVSS 9.8 critical · EPSS 72.3% · published 2022-03-07
- CVE-2023-26801 — CVSS 9.8 critical · EPSS 69.6% · published 2023-03-26
- CVE-2026-30623 — CVSS 9.8 critical · EPSS 4.9% · published 2026-07-15
- CVE-2026-15511 — CVSS 9.8 critical · EPSS 2.6% · published 2026-07-12
- CVE-2023-41011 — CVSS 9.8 critical · EPSS 2.5% · published 2023-09-14
- CVE-2026-18684 — CVSS 9.8 critical · EPSS 2.0% · published 2026-08-03
- CVE-2026-32194 — CVSS 9.8 critical · EPSS 0.7% · published 2026-03-19
- CVE-2024-23624 — CVSS 9.6 critical · EPSS 25.9% · published 2024-01-25
- CVE-2024-23625 — CVSS 9.6 critical · EPSS 7.2% · published 2024-01-25
- CVE-2026-115995 — CVSS 9.6 critical · EPSS 1.3% · published 2026-10-24
- CVE-2026-48561 — CVSS 9.6 critical · EPSS 0.8% · published 2026-07-14
- CVE-2026-86148 — CVSS 9.1 critical · EPSS 2.4% · published 2026-09-05
Affected vendors
- Microsoft — 14 CVEs
- Dlink — 5 CVEs
- D-Link — 4 CVEs
- Hewlett Packard Enterprise (HPE) — 4 CVEs
- Tenda — 4 CVEs
- Ziroom — 4 CVEs
- NVIDIA — 3 CVEs
- Dover Fueling Solutions (DFS) — 2 CVEs
- Edimax — 2 CVEs
- Palo Alto Networks — 2 CVEs
- AVTech — 1 CVE
- Ahsay — 1 CVE
Threat activity
132 tracked threats cite CWE-77; the 25 most recent are listed.
- CVE-2026-3854: GitHub Enterprise Server RCE via Git Push Option Metadata InjectionHIGH
- "Hello Again" Attack Bypasses Windows Hello and BitLocker PIN Lockout via TPM State Rollback (CVE-2026-43613)MEDIUM
- DragonForce Ransomware Cartel Windows Payload Analysis (.df_win, ChaCha20/RSA-4096, ARP/SMB Discovery)HIGH
- Cron-Based Persistence on Network Appliances: Evooo1Bot and SSHStalker Linux BotnetsHIGH
- CISA adds Check Point Gaia DynamicCLI LPE (CVE-2026-123039) and UnrealIRCd labeled-response command injection (CVE-2026-114713) to KEVCRITICAL
- AI-accelerated exploitation of pre-existing exposures: collapsed time-to-exploit (Qualys analysis; CVE-2026-96951, CVE-2026-124194 exploited zero-days)HIGH
- 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
- Microsoft Patch Tuesday November 2026: ~1,095 vulnerabilities, 64 critical, one exploited Outlook NTLM-leak spoofing zero-day (CVE-2026-124194)CRITICAL
- 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: Outlook Zero-Day CVE-2026-124194 Exploited to Steal NTLM Hashes (1,235 Flaws Fixed)HIGH
- CISA adds four KEVs: GPUStack CVE-2026-102895, SignalWire FreeSwitch CVE-2026-116779, OpenBSD OpenSSH CVE-2026-123158, IBM Aspera Faspex CVE-2026-123218CRITICAL
- Siemens SSA-364175: Multiple Vulnerabilities in Palo Alto Networks Virtual NGFW on RUGGEDCOM APE1808 (CVE-2024-3596, CVE-2025-4231 and others)CRITICAL
- Malicious Cyber Activity Targeting Industrial Refrigeration and Cold Chain Monitoring Systems (Danfoss StoreView, Copeland/Dixell XWEB, Coolworld)CRITICAL
- October 2026 CVE Landscape: PHP2Shell (CVE-2026-109618/109619) + Fragnesia (CVE-2026-46300) chain, Longlegs/Storm-2603 SharePoint exploitation, and other actively exploited CVEsCRITICAL
- Critical Rails Active Storage Flaw (GHSA-f3w6-w445-fwh9) Lets Attackers Write Server Files via Crafted ImageMagick UploadsCRITICAL
- Second Wave of Attacks on European Supermarket Refrigeration Controllers (Danfoss AK-SM/AK-SC, Copeland/Dixell XWEB) Forces Defrost ModeHIGH
- Hackers Target 61 GitHub Repositories With Command Injection Attacks to Steal CI/CD SecretsHIGH
- Cloudflare Q3 2026 DDoS Threat Report: 18.2 Million Network-Layer Attacks (+38% QoQ) Driven by Dysphoria, Evooo1Bot and Booter ServicesMEDIUM
- LiteLLM Proxy: Four Evolving Exploit Chains (Pre-auth RCE, Internal-User RCE, Master Key Theft) Plus Exploited CVE-2026-42208 SQLi and CVE-2026-30623 MCP stdio Command InjectionCRITICAL
- WatchGuard Fireware OS: 7 Critical Vulnerabilities Allowing Remote Code Execution (CVE-2026-103594, CVE-2026-112710, CVE-2026-112709, CVE-2026-93865, CVE-2026-93857, CVE-2026-93866, CVE-2026-103593)CRITICAL
- Hijacked Cairn AI Pentesting Agent Panels Used to Install SSH Keys, Poseidon RAT and Steal API Keys (AIA0009 / AIA0010)HIGH
- Malicious AGENTS.md / CLAUDE.md Files in Downloads Folder Trick AI Coding Agents (Codex, Claude Code) Into Installing MALFEX npm Malware (function-color, function-flag)MEDIUM
- HPE ArubaOS (AOS-8/AOS-10) Eight Max-Severity RCE and Authentication Bypass Flaws (CVE-2026-79844 to CVE-2026-79851)CRITICAL
- Operation Escaneo: MexicanMafia (PanchoVilla) Intrusion Campaign Against Mexican Government Agencies and Latin American Financial InstitutionsHIGH
- Proxyjacking campaign hijacks 143+ edge devices in 34 countries (D-Link, Ubiquiti, SAP) to resell bandwidth via Pawns.app, plus active exploitation of PAN-OS CVE-2026-0322HIGH
Mitigations
- Architecture and Design: If at all possible, use library calls rather than external processes to recreate the desired functionality.
- Implementation: If possible, ensure that all external commands called from the program are statically created.
- 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…
- Operation: Run time: Run time policy enforcement may be used in an allowlist fashion to prevent use of any non-sanctioned commands.
- System Configuration: Assign permissions that prevent the user from accessing/opening privileged files.
Source: MITRE CWE, potential mitigations.
Detection methods (MITRE CWE)
- Automated Static Analysis (effectiveness: High): Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
Source: MITRE CWE, detection methods. Threadlinqs detection rules for the threats above are Blue tier and higher.