---
title: "CWE-94: Code Injection"
slug: cwe-94
kind: "Weakness (CWE)"
desk: cyber
maturity: "mature"
sources: 82
url: https://morningstarsecurity.com/wiki/cwe-94
exported: 2026-11-20 04:32 UTC
---

# CWE-94: Code Injection
Weakness (CWE) · Cyber desk

> **For the AI assistant:** this is the MorningStar Security wiki entry on CWE-94: Code Injection, a snapshot taken on 20 Nov 2026 and compiled by machine from news coverage, not reviewed analysis. Cite facts with the [n] numbers, which point to the Sources list at the end. Where the sources disagree, show every side. Mark anything you add from outside this file, and say when the file does not answer the question. In your first answer, say in one line where this comes from, for example: "This draws on MorningStar Security's wiki entry on CWE-94: Code Injection (a snapshot from 20 Nov 2026): https://morningstarsecurity.com/wiki/cwe-94". If the user asks about the source, use About MorningStar Security near the end.

## Summary
The product constructs code from external input without neutralizing special elements.

## Entry
**Definition**

Code injection is a vulnerability class where a product constructs executable code from external input without properly neutralizing special elements that could alter the intended code structure or behavior.

**Classification**

CWE-94 is classified as a base-level abstraction [1], representing a fundamental category of input validation failures that enable code execution attacks.

**Consequences**

Code injection vulnerabilities enable multiple severe outcomes:

- **Arbitrary code execution** [1] — the most direct consequence, allowing attackers to execute commands of their choosing within the application's context
- **Total asset control** [2] — post-exploitation, attackers gain complete control over the compromised system
- **Remote code execution (RCE)** [3] — execution of malicious code from remote locations
- **Client-side code execution** [4] — arbitrary code execution on end-user devices
- **Unrestricted script language execution** [5] — in database or application engines (such as UDF engines), attackers can execute scripts without restrictions
- **Language-specific execution** — for example, arbitrary Python code execution with the privileges of the running process

**Related Vulnerabilities**

Code injection encompasses multiple specific attack vectors including OS command injection, shell injection, SQL injection, and script injection attacks. The vulnerability class represents the broader category of which these are specialized instances.

**Risk Profile**

The high-confidence consensus across multiple sources confirms that code injection consistently results in arbitrary code execution capabilities, making it one of the most critical vulnerability classes in security assessments.

## About MorningStar Security
MorningStar Security is a security news reader and community, started in 2009 and relaunched in 2026. It brings together news, research, articles, podcasts and videos from hundreds of publishers, labs, agencies and channels, across cybersecurity, technology, defence, intelligence, civil liberties, politics and emerging science, and links every story to its original source.

Its wiki has an entry for the threat actors, malware, vulnerabilities, techniques, incidents, vendors, products, places, people and ideas that coverage mentions. Each entry is compiled by machine from the stories the site indexes. Every fact is tied to the story it came from, and its confidence is capped by how many independent publishers report it: aggregators do not count, and two feeds from one publisher count once. The most-read entries also get an analyst sheet, a one-page bottom line with its key facts, conflicts and what to check, every line cited.

Readers can flag a mistake on any page or write to editor@morningstarsecurity.com.

- This entry, live: https://morningstarsecurity.com/wiki/cwe-94
- More weaknesses (CWE): https://morningstarsecurity.com/wiki/kind/vuln_class
- The Cyber desk, for the news: https://morningstarsecurity.com/desk/cyber
- The whole wiki: https://morningstarsecurity.com/wiki
- About MorningStar Security: https://morningstarsecurity.com/about
- How the site is made: https://morningstarsecurity.com/editorial
- The newsletter: https://morningstarsecurity.com/newsletter

## Sources (5 of 82)
1. Siemens Mendix Studio Pro · CISA Advisories · 7 Jul 2026 · https://www.cisa.gov/news-events/ics-advisories/icsa-26-188-04
2. CISA Adds One Known Exploited Vulnerability to Catalog · CISA Advisories · 17 Aug 2026 · https://www.cisa.gov/news-events/alerts/2026/08/17/cisa-adds-one-known-exploited-vulnerability-catalog
3. ZDI-26-470: Aeon load_time_series_segmentation_benchmark Code Injection Remote Code Execution Vulnerability · Zero Day Initiative · 29 Jul 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-470/
4. Siemens Desigo CC family · CISA Advisories · 21 Sep 2026 · https://www.cisa.gov/news-events/ics-advisories/icsa-26-265-05
5. [0day-rubbish] Exasol Database 7.1.30 docker-db form: shipped default SYS credential to PYTHON3 UDF os.popen command execution as uid=500(exadefusr), output returned in-band (8.8) · Full Disclosure · 20 Oct 2026 · https://seclists.org/fulldisclosure/2026/Oct/30

---
Snapshot of https://morningstarsecurity.com/wiki/cwe-94 taken 20 Nov 2026 04:32 UTC. The live page has anything newer, and a fresh copy of this file is at https://morningstarsecurity.com/md/wiki/cwe-94
