Export
The link always opens the latest version of this page.
Ask an AI about it
Open in ChatGPTA new chat that reads this entry from the site Open in ClaudeThe same, in ClaudeShare the link instead of a file, and they will always see the latest version.
Files are a snapshot of today. The live page has anything newer.
CWE-94: Code Injection
The product constructs code from external input without neutralizing special elements.
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.
In the news 5
- Siemens Mendix Studio Pro · CISA Advisories
- CISA Adds One Known Exploited Vulnerability to Catalog · CISA Advisories
- ZDI-26-470: Aeon load_time_series_segmentation_benchmark Code Injection Remote Code Execution Vulnerability · Zero Day Initiative
- Siemens Desigo CC family · CISA Advisories
- [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
Sign in for the full story cards: summaries, tags and starring.