---
title: "CWE-94: Code Injection"
slug: cwe-94
kind: "Weakness (CWE)"
desk: cyber
maturity: "mature"
sources: 83
url: https://morningstarsecurity.com/wiki/cwe-94
exported: 2026-11-25 01:10 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 25 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 25 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** [6] — 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 (50 of 83)
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
6. Trusting Unsloth’s trust setting could mean executing malicious code · CSO Online · 28 Oct 2026 · https://www.csoonline.com/article/4241619/trusting-unsloths-trust-setting-could-mean-executing-malicious-code.html

Not cited above. Other coverage that mentions CWE-94: Code Injection, for context only:

7. Azure API Management Classic Secrets Leak; iTerm2 Kitty Protocol RCE; binary-parser Code Injection (CVE-2026-134814) (Nov 24th 2026) · SANS ISC: Daily Podcast (podcast) · 24 Nov 2026 · https://isc.sans.edu/podcastdetail/10192
8. Siemens ROS# · CISA Advisories · 17 Nov 2026 · https://www.cisa.gov/news-events/ics-advisories/icsa-26-321-06
9. [REVIVE-SA-2026-004] Revive Adserver Vulnerabilities · Full Disclosure · 13 Nov 2026 · https://seclists.org/fulldisclosure/2026/Nov/23
10. VU#685399: PromZard context key code injection leads to remote code execution · CERT/CC Vulnerability Notes · 12 Nov 2026 · https://kb.cert.org/vuls/id/685399
11. ZDI-26-942: (0Day) Meta fairseq rerank Code Injection Remote Code Execution Vulnerability · Zero Day Initiative · 11 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-942/
12. ZDI-26-938: (0Day) Meta fairseq parse_manifest Code Injection Remote Code Execution Vulnerability · Zero Day Initiative · 11 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-938/
13. ZDI-26-916: (0Day) Meta fairseq split_by_lang Code Injection Remote Code Execution Vulnerability · Zero Day Initiative · 11 Nov 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-916/
14. Feds warn grocers: Don't chill on cyber defenses as freezer hacking spree heats up · The Register: Security · 5 Nov 2026 · https://www.theregister.com/security/2026/11/05/feds-warn-grocers-dont-chill-on-cyber-defenses-as-freezer-hacking-spree-heats-up/5307978
15. Adobe Fixes 8 Critical Campaign Classic Flaws Allowing Code Execution and Security Bypass · The Hacker News · 28 Oct 2026 · https://thehackernews.com/2026/10/adobe-fixes-8-critical-campaign-classic.html
16. ZDI-26-817: (0Day) Ultralytics parse_model Code Injection Remote Code Execution Vulnerability · Zero Day Initiative · 28 Oct 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-817/
17. ZDI-26-813: (0Day) Ultralytics check_det_dataset Code Injection Remote Code Execution Vulnerability · Zero Day Initiative · 28 Oct 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-813/
18. ZDI-26-815: (0Day) Ultralytics parse_model Code Injection Remote Code Execution Vulnerability · Zero Day Initiative · 28 Oct 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-815/
19. Apple Patches for October 2026, (Mon, Oct 26th) · SANS Internet Storm Center · 27 Oct 2026 · https://isc.sans.edu/diary/rss/33458
20. What Happened To Byfron Anticheat? · Guided Hacking (short) · 23 Oct 2026 · https://www.youtube.com/shorts/qCUwP8eFDiY
21. ZDI-26-787: NVIDIA Megatron Bridge YAML File Parsing Code Injection Remote Code Execution Vulnerability · Zero Day Initiative · 22 Oct 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-787/
22. [remote] Exasol Database 7.1.30 - command execution · Exploit-DB · 21 Oct 2026 · https://www.exploit-db.com/exploits/52695
23. Cisco Warns of Active Attacks Exploiting New Critical Secure Email Gateway Vulnerability · The Hacker News · 14 Oct 2026 · https://thehackernews.com/2026/10/cisco-warns-of-active-attacks.html
24. AWS’s repeated problems with AI agent controls illustrates the autonomous agent dilemma · CSO Online · 8 Oct 2026 · https://www.csoonline.com/article/4232054/awss-repeated-problems-with-ai-agent-controls-illustrates-the-autonomous-agent-dilemma.html
25. vLLM Vulnerability Update Fixes RCE and Server-Crashing Flaws · LinuxSecurity: Articles · 8 Oct 2026 · https://linuxsecurity.com/news/security-vulnerabilities/vllm-vulnerability-code-execution-server-crashes
26. [0day-rubbish] StreamSets Transformer 3.17.0 auth-mode none fallback and un-sandboxed ScalaDTransform execution to container root (8.1 primary) · Full Disclosure · 6 Oct 2026 · https://seclists.org/fulldisclosure/2026/Oct/8
27. Hitachi Energy SOI · CISA Advisories · 6 Oct 2026 · https://www.cisa.gov/news-events/ics-advisories/icsa-26-279-04
28. New Linux malware turns vulnerable IoT devices into proxy nodes · CSO Online · 6 Oct 2026 · https://www.csoonline.com/article/4231136/new-linux-malware-turns-vulnerable-iot-devices-into-proxy-nodes.html
29. ClickFix Smuggles Payloads Through Browser Cache to Bypass Windows Run Limits · The Hacker News · 6 Oct 2026 · https://thehackernews.com/2026/10/clickfix-smuggles-payloads-through.html
30. OpenOffice Vulnerability Can Run Code From Malicious Documents · LinuxSecurity: Articles · 6 Oct 2026 · https://linuxsecurity.com/news/desktop-security/openoffice-vulnerability-malicious-documents
31. Post-Quantum Crypto Won't Fix Your Architecture · r/crypto · 3 Oct 2026 · https://www.reddit.com/r/crypto/comments/1wwgerx/postquantum_crypto_wont_fix_your_architecture/
32. Decoding JavaScript Errors: Beyond the AI Prompt · HackerNoon · 3 Oct 2026 · https://hackernoon.com/decoding-javascript-errors-beyond-the-ai-prompt
33. Kiteworks patches max severity code injection vulnerability · BleepingComputer · 1 Oct 2026 · https://www.bleepingcomputer.com/news/security/kiteworks-patches-max-severity-email-protection-gateway-code-injection-vulnerability/
34. CISA Adds Two Known Exploited Vulnerabilities to Catalog · CISA Advisories · 25 Sep 2026 · https://www.cisa.gov/news-events/alerts/2026/09/25/cisa-adds-two-known-exploited-vulnerabilities-catalog
35. New CVSS 10.0 VeloCloud Orchestrator Flaw Actively Exploited in Certificate-Based Setups · The Hacker News · 22 Sep 2026 · https://thehackernews.com/2026/09/new-cvss-100-velocloud-orchestrator.html
36. SharePoint Flaw Initially Listed as Spoofing by Microsoft Enables Authenticated RCE · The Hacker News · 22 Sep 2026 · https://thehackernews.com/2026/09/sharepoint-flaw-initially-listed-as.html
37. Linux Security Researcher Uses AI to Find Four Python Code-Execution Flaws · LinuxSecurity: Articles · 17 Sep 2026 · https://linuxsecurity.com/news/security-trends/python-flaws-ai-vulnerability-research-linux
38. Malicious Chrome and Edge add-ons: how to spot them and why they’re dangerous | Kaspersky official blog · Kaspersky Daily · 17 Sep 2026 · https://www.kaspersky.com/blog/clickfix-malicious-browser-extensions/56428/
39. VU#212479: Sentry Seer vulnerability allows attacker-controlled input to be executed in a privileged environment · CERT/CC Vulnerability Notes · 16 Sep 2026 · https://kb.cert.org/vuls/id/212479
40. ZDI-26-707: (0Day) MindsDB OpenBBtable Code Injection Remote Code Execution Vulnerability · Zero Day Initiative · 16 Sep 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-707/
41. WordPress Adds Automated Plugin Reviews to Block High-Risk Updates Before Distribution · The Hacker News · 14 Sep 2026 · https://thehackernews.com/2026/09/wordpress-adds-automated-plugin-reviews.html
42. FreeIPA Flaw Chain Lets Anonymous Clients Create Reusable Administrator Credentials · The Hacker News · 8 Sep 2026 · https://thehackernews.com/2026/09/freeipa-flaw-chain-lets-anonymous.html
43. ZDI-26-616: Koha Eval Code Injection Remote Code Execution Vulnerability · Zero Day Initiative · 8 Sep 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-616/
44. Claude, Codex, and Hermes Installed Unowned Code Inside Corporate Networks · Slashdot · 27 Aug 2026 · https://yro.slashdot.org/story/26/08/27/207212/claude-codex-and-hermes-installed-unowned-code-inside-corporate-networks
45. Claude, Codex, and Hermes Installed Unowned Code Inside Corporate Networks · Slashdot: Your Rights Online · 27 Aug 2026 · https://yro.slashdot.org/story/26/08/27/207212/claude-codex-and-hermes-installed-unowned-code-inside-corporate-networks
46. CISA Adds One Known Exploited Vulnerability to Catalog · CISA Advisories · 25 Aug 2026 · https://www.cisa.gov/news-events/alerts/2026/08/25/cisa-adds-one-known-exploited-vulnerability-catalog
47. Marimo Notebook Flaw Could Run MCP Commands Before Cells Execute in Edit Mode · The Hacker News · 25 Aug 2026 · https://thehackernews.com/2026/08/marimo-notebook-flaw-could-run-mcp.html
48. ⚡ Weekly Recap: AI-Powered PLC Attacks, GitLab Attacks, Stripe Key Leaks and More · The Hacker News · 24 Aug 2026 · https://thehackernews.com/2026/08/weekly-recap-ai-powered-plc-attacks.html
49. ZDI-26-594: NVIDIA Megatron Bridge load_model_config Code Injection Remote Code Execution Vulnerability · Zero Day Initiative · 24 Aug 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-594/
50. Cisco Patches Multiple Maximum-Severity Vulnerabilities Across Network Automation and Workload Security Platforms - LinkedIn · Google News: Cyber Security · 22 Aug 2026 · https://news.google.com/rss/articles/CBMilwFBVV95cUxQX0RpZDBvYk5lT0RhVjZaRC1FVUk5STdUUkZFck9ZZ29WaENvTlkyMnBxWl9keGJSdzV1bEFRcURSZWxXRnE1M2xuUjEwWFN2VmJUUk15VDJvVU5BQ2FZWnpnYWc2VkZfbDk0RkVxUW9ObE1qNzBnQVVrNlNNamhuZU9KQkxmenpHNVhONVR6ellwdFYtbENz?oc=5

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