CWE-94: Improper Control of Generation of Code (Code Injection), published in 2021
Filter
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
What the weakness is: CWE-94 at MITRE. OWASP Top 10: A05:2025 Injection. All weaknesses
Related attack patterns (CAPEC): 3
- CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
- CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
- CAPEC-242 Code Injection Likelihood: High · Severity: High
The attack patterns MITRE's CAPEC relates to CWE-94, as MITRE names them. Credits.
Ask an AI about CWE-94
Show the prompt
Explain CWE-94: Improper Control of Generation of Code and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/94.html and https://cve.bz/cve/cwe/94?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
By year: all 2026 2025 2024 2023 2022 2021
- 9.8CVE-2020-20601thinkcmfEPSS 8.6%
An issue in ThinkCMF X2.2.2 and below allows attackers to execute arbitrary code via a crafted packet.
- 8.8CVE-2021-23814unisharp laravel-filemanagerEPSS 1.8%
This affects versions of the package unisharp/laravel-filemanager before 2.6.2. The upload() function does not sufficiently validate the file type when uploading. An attacker may be able to reproduce the following steps: 1. Install a pac…
- 9.1CVE-2021-43837vault-cli project vault-cliEPSS 5.2%
vault-cli is a configurable command-line interface tool (and python library) to interact with Hashicorp Vault. In versions before 3.0.0 vault-cli features the ability for rendering templated values. When a secret starts with the prefix `!t…
- 8.8CVE-2021-42309microsoftEPSS 2.9%
Microsoft SharePoint Server Remote Code Execution Vulnerability
- 9.8CVE-2021-44231sapEPSS 1.2%
Internally used text extraction reports allow an attacker to inject code that can be executed by the application. An attacker could thereby control the behavior of the application.
- 7.8CVE-2021-43811amazon sockeyeEPSS 2.5%
Sockeye is an open-source sequence-to-sequence framework for Neural Machine Translation built on PyTorch. Sockeye uses YAML to store model and data configurations on disk. Versions below 2.3.24 use unsafe YAML loading, which can be made to…
- 9.8CVE-2021-44529ivanti endpoint manager cloud services applianceKEVExploitEPSS 99.1%
A code injection vulnerability in the Ivanti EPM Cloud Services Appliance (CSA) allows an unauthenticated user to execute arbitrary code with limited permissions (nobody).
- 7.5CVE-2021-37097huaweiEPSS 0.7%
There is a Code Injection vulnerability in Huawei Smartphone.Successful exploitation of this vulnerability may lead to system restart.
- 9.1CVE-2021-37079huawei harmonyosEPSS 0.7%
There is a Improper Input Validation vulnerability in Huawei Smartphone.Successful exploitation of this vulnerability may lead to delete arbitrary file by system_app permission.
- 6.7CVE-2021-38967ibm mq applianceEPSS 0.3%
IBM MQ Appliance 9.2 CD and 9.2 LTS could allow a local privileged user to inject and execute malicious code. IBM X-Force ID: 212441.
- 8.8CVE-2021-3725planetargon oh my zshEPSS 1.1%
Vulnerability in dirhistory plugin Description: the widgets that go back and forward in the directory history, triggered by pressing Alt-Left and Alt-Right, use functions that unsafely execute eval on directory names. If you cd into a dire…
- 4.2CVE-2021-43221microsoft edge chromiumEPSS 1.2%
Microsoft Edge (Chromium-based) Remote Code Execution Vulnerability
- 7.6CVE-2021-38448traneEPSS 0.3%
The affected controllers do not properly sanitize the input containing code syntax. As a result, an attacker could craft code to alter the intended controller flow of the software.
- 6.0CVE-2021-33493open-xchange ox app suiteEPSS 0.5%
The middleware component in OX App Suite through 7.10.5 allows Code Injection via Java classes in a YAML format.
- 8.8CVE-2021-22053vmware spring cloud netflixEPSS 13%
Applications using both `spring-cloud-netflix-hystrix-dashboard` and `spring-boot-starter-thymeleaf` expose a way to execute code submitted within the request URI path during the resolution of view templates. When a request is made at `/hy…
- 9.8CVE-2021-41269cron-utils project cron-utilsEPSS 4.3%
cron-utils is a Java library to define, parse, validate, migrate crons as well as get human readable descriptions for them. In affected versions A template Injection was identified in cron-utils enabling attackers to inject arbitrary Java …
- 9.8CVE-2021-41653tp-link tl-wr840n firmwareEPSS 76%
The PING function on the TP-Link TL-WR840N EU v5 router with firmware through TL-WR840N(EU)_V5_171211 is vulnerable to remote code execution via a crafted payload in an IP address input field.
- 9.8CVE-2021-33816dolibarr erp\/crmEPSS 3.9%
The website builder module in Dolibarr 13.0.2 allows remote PHP code execution because of an incomplete protection mechanism in which system, exec, and shell_exec are blocked but backticks are not blocked.
- 7.8CVE-2021-43208microsoft 3d viewerEPSS 4.1%
3D Viewer Remote Code Execution Vulnerability
- 7.8CVE-2021-42298microsoft malware protection engineEPSS 5.8%
Microsoft Defender Remote Code Execution Vulnerability
- 7.8CVE-2021-42296microsoftEPSS 1.1%
Microsoft Word Remote Code Execution Vulnerability
- 9.8CVE-2021-43466thymeleafEPSS 4.0%
In the thymeleaf-spring5:3.0.12 component, thymeleaf combined with specific scenarios in template injection may lead to remote code execution.
- 6.5CVE-2021-24721loco translate project loco translateEPSS 0.9%
The Loco Translate WordPress plugin before 2.5.4 mishandles data inputs which get saved to a file, which can be renamed to an extension ending in .php, resulting in authenticated "translator" users being able to inject PHP code into files …
- 7.2CVE-2021-24537shareaholic similar postsEPSS 1.6%
The Similar Posts WordPress plugin through 3.1.5 allow high privilege users to execute arbitrary PHP code in an hardened environment (ie with DISALLOW_FILE_EDIT, DISALLOW_FILE_MODS and DISALLOW_UNFILTERED_HTML set to true) via the 'widget_…
- 7.8CVE-2021-41228google tensorflowEPSS 0.2%
TensorFlow is an open source platform for machine learning. In affected versions TensorFlow's `saved_model_cli` tool is vulnerable to a code injection as it calls `eval` on user supplied strings. This can be used by attackers to run arbitr…
- 7.8CVE-2021-42057obsidian dataviewEPSS 1.2%
Obsidian Dataview through 0.4.12-hotfix1 allows eval injection. The evalInContext function in executes user input, which allows an attacker to craft malicious Markdown files that will execute arbitrary code once opened. NOTE: 0.4.13 provid…
- 7.2CVE-2021-43281mybbEPSS 1.3%
MyBB before 1.8.29 allows Remote Code Injection by an admin with the "Can manage settings?" permission. The Admin CP's Settings management module does not validate setting types correctly on insertion and update, making it possible to add …
- 5.0CVE-2021-42754fortinet forticlientEPSS 0.4%
An improper control of generation of code vulnerability [CWE-94] in FortiClientMacOS versions 7.0.0 and below and 6.4.5 and below may allow an authenticated attacker to hijack the MacOS camera without the user permission via the malicious …
- 7.2CVE-2021-25877youphptubeEPSS 1.6%
AVideo/YouPHPTube 10.0 and prior is affected by Insecure file write. An administrator privileged user is able to write files on filesystem using flag and code variables in file save.php.
- 8.8CVE-2021-40348EPSS 1.8%
Spacewalk 2.10, and derivatives such as Uyuni 2021.08, allows code injection. rhn-config-satellite.pl doesn't sanitize the configuration filename used to append Spacewalk-specific key-value pair. The script is intended to be run by the tom…
- 8.3CVE-2021-42694unicodeEPSS 4.9%
An issue was discovered in the character definitions of the Unicode Specification through 14.0. The specification allows an adversary to produce source code identifiers such as function names using homoglyphs that render visually identical…
- 8.3CVE-2021-42574EPSS 13%
An issue was discovered in the Bidirectional Algorithm in the Unicode Specification through 14.0. It permits the visual reordering of characters via control sequences, which can be used to craft source code that renders different logic tha…
- 7.5CVE-2021-36985huaweiEPSS 0.7%
There is a Code injection vulnerability in Huawei Smartphone.Successful exploitation of this vulnerability may exhaust system resources and cause the system to restart.
- 7.2CVE-2021-41619gradle enterpriseEPSS 2.7%
An issue was discovered in Gradle Enterprise before 2021.1.2. There is potential remote code execution via the application startup configuration. The installation configuration user interface (available to administrators) allows specifying…
- 8.8CVE-2021-38450traneEPSS 1.0%
The affected controllers do not properly sanitize the input containing code syntax. As a result, an attacker could craft code to alter the intended controller flow of the software.
- 9.8CVE-2020-23037portable playableEPSS 1.5%
Portable Ltd Playable v9.18 contains a code injection vulnerability in the filename parameter, which allows attackers to execute arbitrary web scripts or HTML via a crafted POST request.
- 9.8CVE-2021-22961glasswireEPSS 1.7%
A code injection vulnerability exists within the firewall software of GlassWire v2.1.167 that could lead to arbitrary code execution from a file in the user path on first execution.
- 8.8CVE-2021-29679EPSS 2.0%
IBM Cognos Analytics 11.1.7 and 11.2.0 could allow an authenticated user to execute code remotely due to incorrectly neutralizaing user-contrlled input that could be interpreted a a server-side include (SSI) directive. IBM X-Force ID: 1999…
- 8.1CVE-2021-40487microsoftEPSS 48%
Microsoft SharePoint Server Remote Code Execution Vulnerability
- 7.8CVE-2021-40485microsoftEPSS 2.7%
Microsoft Excel Remote Code Execution Vulnerability
- 9.8CVE-2021-40499sap netweaver application server abapEPSS 1.2%
Client-side printing services SAP Cloud Print Manager and SAPSprint for SAP NetWeaver Application Server for ABAP - versions 7.70, 7.70 PI, 7.70 BYD, allow an attacker to inject code that can be executed by the application. An attacker cou…
- 8.8CVE-2021-24546extendify editorskitEPSS 1.8%
The Gutenberg Block Editor Toolkit – EditorsKit WordPress plugin before 1.31.6 does not sanitise and validate the Conditional Logic of the Custom Visibility settings, allowing users with a role as low contributor to execute Arbitrary PHP c…
- 9.8CVE-2021-40889cmsuno project cmsunoEPSS 1.8%
CMSUno version 1.7.2 is affected by a PHP code execution vulnerability. sauvePass action in {webroot}/uno/central.php file calls to file_put_contents() function to write username in password.php file when a user successfully changed their …
- 9.8CVE-2021-42139deno standard modulesEPSS 2.1%
Deno Standard Modules before 0.107.0 allows Code Injection via an untrusted YAML file in certain configurations.
- 9.8CVE-2020-21652myucms project myucmsEPSS 2.8%
Myucms v2.2.1 contains a remote code execution (RCE) vulnerability in the component \controller\Config.php, which can be exploited via the addqq() method.
- 9.8CVE-2020-21651myucms project myucmsEPSS 3.3%
Myucms v2.2.1 contains a remote code execution (RCE) vulnerability in the component \controller\point.php, which can be exploited via the add() method.
- 8.8CVE-2020-21650myucms project myucmsEPSS 3.2%
Myucms v2.2.1 contains a remote code execution (RCE) vulnerability in the component \controller\Config.php, which can be exploited via the add() method.
- 7.9CVE-2021-25470google androidEPSS 0.1%
An improper caller check logic of SMC call in TEEGRIS secure OS prior to SMR Oct-2021 Release 1 can be used to compromise TEE.
- 7.8CVE-2021-22557google slo generatorExploitEPSS 1.6%
SLO generator allows for loading of YAML files that if crafted in a specific format can allow for code execution within the context of the SLO Generator. We recommend upgrading SLO Generator past https://github.com/google/slo-generator/pul…
- 9.8CVE-2021-40323cobbler project cobblerEPSS 87%
Cobbler before 3.3.0 allows log poisoning, and resultant Remote Code Execution, via an XMLRPC method that logs to the logfile for template injection.