Skip to main content

About CWE-94

Injected code can alter control flow and often leads to arbitrary code execution. It can also reach resources the attacker is otherwise blocked from, bypass authentication logic and run without being logged.

MITRE name
Improper Control of Generation of Code
Abstraction
Base: abstract, but detailed enough to infer detection and prevention methods
Status
Draft

Also Known As

  • Code Injection

Mitigations

  • Refactor the program so it does not need to generate code dynamically.
  • Validate input with stringent allowlists that limit which language constructs are permitted.
  • Run the code in a sandbox or jail that restricts what it can execute.
  • Use an environment with automatic taint propagation that blocks execution involving unvalidated variables.
  • Test with fuzzing and fault injection to find inputs that reach code generation paths.

Detection
Automated static analysis (SAST) is rated highly effective for this weakness by tracing input sources into code generation sinks.

CWE-94 in the KEV Catalog

as of 2026-11-23
All KEV statistics→
  • 77 CISA KEV entries name Code Injection (CWE-94) in their CVE record, tied for 6th among the 196 weaknesses named in the catalog.
  • CISA added 6 CWE-94 entries to the KEV catalog in 2024, 7 in 2025, and 19 so far in 2026.
  • Microsoft has the most CWE-94 entries in the CISA KEV catalog (14), followed by Ivanti (8) and VMware (5).
  • For CWE-94 entries added to the CISA KEV catalog since 2023, the median time from CVE publication to KEV listing is 22 days, compared with 15 days for all entries added in that period.
  • CISA marks 18% of CWE-94 KEV entries (14 of 77) as known to be used in ransomware campaigns, compared with 20% of all KEV entries.
  • CISA's SSVC enrichment rates 47% of CWE-94 KEV entries with SSVC data (36 of 77) as automatable, compared with 41% across the catalog.

Related Attack Patterns

3 CAPEC patterns
CAPEC-242Code InjectionMeta · Severity High · Likelihood High
CAPEC-77Manipulating User-Controlled VariablesStandard · Severity Very High · Likelihood High
CAPEC-35Leverage Executable Code in Non-Executable FilesDetailed · Severity Very High · Likelihood High

CWE-94 Vulnerabilities

104 CVEs
CVECVSS
CVE-2026-90817KEV
Vanderbilt University Research Electronic Data Capture (REDCap) Code Injection Vulnerability
9.8
CVE-2026-115731KEV
Report Deserialization Code Execution
9.4
CVE-2026-0322KEV
PAN-OS: Authenticated Remote Code Execution (RCE) in the Management Interface
8.6
CVE-2026-65660KEV
Microsoft SharePoint Server Remote Code Execution Vulnerability
8.8
CVE-2026-60004KEV
Gitea Code Injection Vulnerability
9.8
CVE-2026-72530KEV
TrueConf Server Code Injection Vulnerability
9.5
CVE-2025-62593KEV
Ray is vulnerable to RCE via Safari & Firefox Browsers through DNS Rebinding Attack
9.4
CVE-2026-9198KEV
Unauthenticated Remote Code Execution via Auto-Login Bypass and Code Validation
9.8
CVE-2026-15410KEV
SonicWall SMA1000 Appliances Code Injection Vulnerability
7.2
CVE-2026-34197KEV
Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ: Authenticated users could perform RCE via Jolokia MBeans
8.8
CVE-2009-0238KEV
Microsoft Office Remote Code Execution
8.8
CVE-2026-1340KEV
Ivanti Endpoint Manager Mobile (EPMM) Code Injection Vulnerability
9.8
CVE-2026-33017KEV
Langflow has Unauthenticated Remote Code Execution via Public Flow Build Endpoint
9.3
CVE-2025-32432KEV
Craft CMS Allows Remote Code Execution
10.0
CVE-2025-54068KEV
Livewire vulnerable to remote command execution during property update hydration
9.2
CVE-2026-1281KEV
Ivanti Endpoint Manager Mobile (EPMM) Code Injection Vulnerability
9.8
CVE-2026-20045KEV
Cisco Unified Communications Products Remote Code Execution Vulnerability
8.2
CVE-2025-37164KEV
Hewlett Packard Enterprise (HPE) OneView Code Injection Vulnerability
10.0
CVE-2009-0556KEV
Microsoft Office PowerPoint Code Injection Vulnerability
8.8
CVE-2025-6204KEV
Improper Control of Generation of Code (Code Injection) vulnerability affecting DELMIA Apriso from Release 2020 through Release 2025
8.0
CVE-2025-49704KEV
Microsoft SharePoint Remote Code Execution Vulnerability
8.8
CVE-2024-56145KEV
RCE when PHP `register_argc_argv` config setting is enabled in craftcms/cms
9.3
CVE-2025-4428KEV
Remote Code Execution
7.2
CVE-2025-3928KEV
Commvault Web Server unspecified vulnerability
8.7
CVE-2025-1976KEV
Code injection exposure in Fabric OS 9.1.0 through 9.1.1d6
8.6
CVE-2025-23209KEV
Potential RCE with a compromised security key in craft/cms
8.1
CVE-2022-24816KEV
Improper Control of Generation of Code in jai-ext
10.0
CVE-2024-20359KEV
Cisco ASA and FTD Privilege Escalation Vulnerability
6.0
CVE-2023-24955KEV
Microsoft SharePoint Server Remote Code Execution Vulnerability
7.2
CVE-2021-44529KEV
Ivanti Endpoint Manager Cloud Service Appliance (EPM CSA) Code Injection Vulnerability
9.8
CVE-2024-21351KEV
Windows SmartScreen Security Feature Bypass Vulnerability
7.6
CVE-2023-6548KEV
Citrix NetScaler ADC and NetScaler Gateway Code Injection Vulnerability
5.5
CVE-2018-14667KEV
Red Hat JBoss RichFaces Framework Expression Language Injection Vulnerability
9.8
CVE-2023-41179KEV
Trend Micro Apex One and Worry-Free Business Security Remote Code Execution Vulnerability
7.2
CVE-2023-33246KEV
Apache RocketMQ: Possible remote code execution vulnerability when using the update configuration function
9.8
CVE-2023-3519KEV
Citrix NetScaler ADC and NetScaler Gateway Code Injection Vulnerability
9.8
CVE-2023-25717KEV
Multiple Ruckus Wireless Products CSRF and RCE Vulnerability
9.8
CVE-2023-29492KEV
Novi Survey Insecure Deserialization Vulnerability
9.8
CVE-2017-7494KEV
Samba Remote Code Execution Vulnerability
9.8
CVE-2021-39144KEV
XStream is vulnerable to a Remote Command Execution attack
8.5
CVE-2022-41223KEV
Mitel MiVoice Connect Code Injection Vulnerability
6.8
CVE-2023-22952KEV
Multiple SugarCRM Products Remote Code Execution Vulnerability
8.8
CVE-2022-3236KEV
Sophos Firewall Code Injection Vulnerability
9.8
CVE-2022-22963KEV
VMware Tanzu Spring Cloud Function Remote Code Execution Vulnerability
9.8
CVE-2009-0557KEV
Microsoft Office Object Record Corruption Vulnerability
7.8
CVE-2014-4148KEV
Microsoft Windows Remote Code Execution Vulnerability
8.8
CVE-2022-22947KEV
VMware Spring Cloud Gateway Code Injection Vulnerability
10.0
CVE-2022-22954KEV
VMware Workspace ONE Access and Identity Manager Server-Side Template Injection Vulnerability
9.8
CVE-2018-7602KEV
Drupal core - Highly critical - Remote Code Execution - SA-CORE-2018-004
8.1
CVE-2022-22965KEV
Spring Framework JDK 9+ Remote Code Execution Vulnerability
9.8
CVE-2014-6287KEV
Rejetto HTTP File Server (HFS) Remote Code Execution Vulnerability
9.8
CVE-2018-1273KEV
VMware Tanzu Spring Data Commons Property Binder Vulnerability
9.8
CVE-2009-1151KEV
phpMyAdmin Remote Code Execution Vulnerability
9.8
CVE-2013-4810KEV
HP Multiple Products Remote Code Execution Vulnerability
9.8
CVE-2020-8218KEV
Pulse Connect Secure Code Injection Vulnerability
7.2
CVE-2010-0188KEV
Adobe Reader and Acrobat Arbitrary Code Execution Vulnerability
7.8
CVE-2012-1856KEV
Microsoft Office MSCOMCTL.OCX Remote Code Execution Vulnerability
8.8
CVE-2012-1535KEV
Adobe Flash Player Arbitrary Code Execution Vulnerability
7.8
CVE-2014-6352KEV
Microsoft Windows Code Injection Vulnerability
7.8
CVE-2017-9841KEV
PHPUnit Command Injection Vulnerability
9.8
CVE-2013-3906KEV
Microsoft Graphics Component Memory Corruption Vulnerability
7.8
CVE-2015-1635KEV
Microsoft HTTP.sys Remote Code Execution Vulnerability
9.8
CVE-2012-0391KEV
Apache Struts 2 Improper Input Validation Vulnerability
9.8
CVE-2019-7609KEV
Kibana Arbitrary Code Execution
9.8
CVE-2019-10758KEV
MongoDB mongo-express Remote Code Execution Vulnerability
9.9
CVE-2019-0193KEV
Apache Solr DataImportHandler Code Injection Vulnerability
7.2
CVE-2021-22204KEV
ExifTool Remote Code Execution Vulnerability
6.8
CVE-2012-0158KEV
Microsoft MSCOMCTL.OCX Remote Code Execution Vulnerability
8.8
CVE-2021-22205KEV
GitLab Community and Enterprise Editions Remote Code Execution Vulnerability
10.0
CVE-2019-16759KEV
vBulletin PHP Module Remote Code Execution Vulnerability
9.8
CVE-2017-9822KEV
DotNetNuke (DNN) Remote Code Execution Vulnerability
8.8
CVE-2020-8243KEV
Ivanti Pulse Connect Secure Code Execution Vulnerability
7.2
CVE-2017-8759KEV
Microsoft .NET Framework Remote Code Execution Vulnerability
7.8
CVE-2019-4716KEV
IBM Planning Analytics Remote Code Execution Vulnerability
10.0
CVE-2020-8644KEV
PlaySMS Server-Side Template Injection Vulnerability
9.8
CVE-2021-22894KEV
Ivanti Pulse Connect Secure Collaboration Suite Buffer Overflow Vulnerability
8.8
CVE-2021-22900KEV
Ivanti Pulse Connect Secure Unrestricted File Upload Vulnerability
7.2
CVE-2026-6875
Sandbox Escape in ServiceNow AI Platform
9.5
CVE-2026-2701
RCE vulnerability in Progress ShareFile Storage Zones Controller (SZC)
9.1
CVE-2026-3300
Everest Forms Pro <= 1.9.12 - Unauthenticated Remote Code Execution via Calculation Field
9.8
CVE-2026-4257
Contact Form by Supsystic <= 1.7.36 - Unauthenticated Server-Side Template Injection via Prefill Functionality
9.8
CVE-2026-29014
MetInfo CMS Unauthenticated PHP Code Injection RCE
9.3
CVE-2026-27966
Langflow has Remote Code Execution in CSV Agent
9.8
CVE-2026-46442
Flowise: Authenticated Host RCE via POST /api/v1/node-custom-function and NodeVM Sandbox Escape
9.4
CVE-2026-27760
OpenCATS PHP Code Injection via installer AJAX endpoint
9.2
CVE-2026-0768
Langflow code Code Injection Remote Code Execution Vulnerability
9.8
CVE-2026-61447
PraisonAI before 1.6.78 Remote Code Execution via CodeAgent
10.0
CVE-2026-4582910.0
CVE-2026-93674
Langflow OSS is affected by multiple vulnerabilities
9.8
CVE-2026-33309
Langflow has an Arbitrary File Write (RCE) via v2 API
10.0
CVE-2026-26026
GLPI has a Server-Side Template Injection via Double-Compilation
9.1
CVE-2026-27577
n8n: Expression Sandbox Escape Leads to RCE
9.4
CVE-2026-1560
Custom Block Builder – Lazy Blocks <= 4.2.0 - Authenticated (Contributor+) Remote Code Execution
8.8
CVE-2026-58138
Orkes Conductor 3.21.21 < 3.30.2 Unauthenticated RCE via GraalVM Script Evaluators
9.3
CVE-2026-18885
Unauthenticated Remote Code Execution in GraphQL Composite Data API
10.0
CVE-2026-3584
Kali Forms <= 2.4.9 - Unauthenticated Remote Code Execution via form_process
9.8
CVE-2026-33057
Mesop Affected by Unauthenticated Remote Code Execution via Test Suite Route /exec-py
9.8
CVE-2026-23523
Dive allows One-click Remote Code Execution through Deep Links for MCP Install
9.7
CVE-2026-7873
Code Injection Vulnerability in Code Validation Endpoint
9.9
CVE-2026-27174
MajorDoMo Unauthenticated Remote Code Execution via Admin Console Eval
9.3

Frequently Asked Questions

What is CWE-94 code injection?→

CWE-94 is a weakness where outside input is placed into code the product generates, without neutralizing syntax that changes how that code behaves.

Is every remote code execution bug a CWE-94?→

No. MITRE notes that code execution is a technical impact that dozens of weaknesses can cause. CWE-94 fits only when the product deliberately constructs code from input.

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

This database lists 104 CVE records mapped to CWE-94 by their CVE Numbering Authority. 77 of them are in the CISA Known Exploited Vulnerabilities catalog, and CISA links 14 to known ransomware campaigns. Examples include CVE-2026-90817, CVE-2026-115731, CVE-2026-0322.

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

For CWE-94 entries added to the CISA KEV catalog since 2023, the median time from CVE publication to KEV listing is 22 days, compared with 15 days for all entries added in that period. These figures are as of November 23, 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.