CWE-94: Improper Control of Generation of Code (Code Injection), published in 2022, page 4
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
- 8.8CVE-2021-42651pentest collaboration framework project pentest collaboration frameworkEPSS 1.7%
A Server Side Template Injection (SSTI) vulnerability in Pentest-Collaboration-Framework v1.0.8 allows an authenticated remote attacker to execute arbitrary code through /project/PROJECTNAME/reports/.
- 8.8CVE-2022-23332ejointechEPSS 5.1%
Command injection vulnerability in Manual Ping Form (Web UI) in Shenzhen Ejoin Information Technology Co., Ltd. ACOM508/ACOM516/ACOM532 609-915-041-100-020 allows a remote attacker to inject arbitrary code via the field.
- 7.2CVE-2022-29171sourcegraphEPSS 1.4%
Sourcegraph is a fast and featureful code search and navigation engine. Versions before 3.38.0 are vulnerable to Remote Code Execution in the gitserver service. The Gitolite code host integration with Phabricator allows Sourcegraph site ad…
- 9.9CVE-2022-24817fluxcdEPSS 1.1%
Flux2 is an open and extensible continuous delivery solution for Kubernetes. Flux2 versions between 0.1.0 and 0.29.0, helm-controller 0.1.0 to v0.19.0, and kustomize-controller 0.1.0 to v0.23.0 are vulnerable to Code Injection via maliciou…
- 9.6CVE-2022-1575diagrams drawioEPSS 2.4%
Arbitrary Code Execution through Sanitizer Bypass in GitHub repository jgraph/drawio prior to 18.0.0. - Arbitrary (remote) code execution in the desktop app. - Stored XSS in the web app.
- 7.7CVE-2022-29821jetbrains pycharmEPSS 0.2%
In JetBrains Rider before 2022.1 local code execution via links in ReSharper Quick Documentation was possible
- 7.7CVE-2022-29819jetbrains intellij ideaEPSS 0.2%
In JetBrains IntelliJ IDEA before 2022.1 local code execution via links in Quick Documentation was possible
- 6.7CVE-2022-29815jetbrains intellij ideaEPSS 0.2%
In JetBrains IntelliJ IDEA before 2022.1 local code execution via workspace settings was possible
- 7.7CVE-2022-29814jetbrains intellij ideaEPSS 0.2%
In JetBrains IntelliJ IDEA before 2022.1 local code execution via HTML descriptions in custom JSON schemas was possible
- 6.7CVE-2022-29813jetbrains intellij ideaEPSS 0.2%
In JetBrains IntelliJ IDEA before 2022.1 local code execution via custom Pandoc path was possible
- 7.8CVE-2022-24735EPSS 2.2%
Redis is an in-memory database that persists on disk. By exploiting weaknesses in the Lua script execution environment, an attacker with access to Redis prior to version 7.0.0 or 6.2.7 can inject Lua code that will execute with the (potent…
- 9.8CVE-2022-24881ballcat codegenEPSS 3.2%
Ballcat Codegen provides the function of online editing code to generate templates. In versions prior to 1.0.0.beta.2, attackers can implement remote code execution through malicious code injection of the template engine. This happens beca…
- 9.8CVE-2022-29078ejsEPSS 33%
The ejs (aka Embedded JavaScript templates) package 3.1.6 for Node.js allows server-side template injection in settings[view options][outputFunctionName]. This is parsed as an internal option, and overwrites the outputFunctionName option w…
- 7.2CVE-2022-0661ad injection project ad injectionEPSS 40%
The Ad Injection WordPress plugin through 1.2.0.19 does not properly sanitize the body of the adverts injected into the pages, allowing a high privileged user (Admin+) to inject arbitrary HTML or javascript even with unfiltered_html disall…
- 10.0CVE-2022-24816geosolutionsgroup jai-extKEVEPSS >99.9%
JAI-EXT is an open-source project which aims to extend the Java Advanced Imaging (JAI) API. Programs allowing Jiffle script to be provided via network request can lead to a Remote Code Execution as the Jiffle script is compiled into Java c…
- 7.8CVE-2022-27837samsung accessibilityEPSS 0.6%
A vulnerability using PendingIntent in Accessibility prior to version 12.5.3.2 in Android R(11.0) and 13.0.1.1 in Android S(12.0) allows attacker to access the file with system privilege.
- 9.8CVE-2022-22954vmwareKEVExploitEPSS >99.9%
VMware Workspace ONE Access and Identity Manager contain a remote code execution vulnerability due to server-side template injection. A malicious actor with network access can trigger a server-side template injection that may result in rem…
- 8.8CVE-2021-40219bolt cmsEPSS 3.4%
Bolt CMS <= 4.2 is vulnerable to Remote Code Execution. Unsafe theme rendering allows an authenticated attacker to edit theme to inject server-side template injection that leads to remote code execution.
- 8.8CVE-2022-24780combodo itopEPSS 5.7%
Combodo iTop is a web based IT Service Management tool. In versions prior to 2.7.6 and 3.0.0, users of the iTop user portal can send TWIG code to the server by forging specific http queries, and execute arbitrary code on the server using h…
- 7.2CVE-2022-26982simplemachines simple machines forumExploitEPSS 9.2%
SimpleMachinesForum 2.1.1 and earlier allows remote authenticated administrators to execute arbitrary code by inserting a vulnerable php code because the themes can be modified by an administrator. NOTE: the vendor's position is that admin…
- 8.8CVE-2021-39114atlassianEPSS 1.7%
Affected versions of Atlassian Confluence Server and Data Center allow users with a valid account on a Confluence Data Center instance to execute arbitrary Java code or run arbitrary system commands by injecting an OGNL payload. The affect…
- 9.8CVE-2022-22965KEVExploitEPSS 99.6%
A Spring MVC or Spring WebFlux application running on JDK 9+ may be vulnerable to remote code execution (RCE) via data binding. The specific exploit requires the application to run on Tomcat as a WAR deployment. If the application is deplo…
- 9.8CVE-2022-22963KEVExploitEPSS >99.9%
In Spring Cloud Function versions 3.1.6, 3.2.2 and older unsupported versions, when using routing functionality it is possible for a user to provide a specially crafted SpEL as a routing-expression that may result in remote code execution …
- 7.2CVE-2022-1159rockwellautomationEPSS 3.5%
Rockwell Automation Studio 5000 Logix Designer (all versions) are vulnerable when an attacker who achieves administrator access on a workstation running Studio 5000 Logix Designer could inject controller code undetectable to a user.
- 7.5CVE-2021-39908gitlabEPSS 1.3%
In all versions of GitLab CE/EE starting from 0.8.0 before 14.2.6, all versions starting from 14.3 before 14.3.4, and all versions starting from 14.4 before 14.4.1 certain Unicode characters can be abused to commit malicious code into proj…
- 7.2CVE-2021-43097diyhi bbsEPSS 2.4%
A Server-side Template Injection (SSTI) vulnerability exists in bbs 5.3 in TemplateManageAction.javawhich could let a malicoius user execute arbitrary code.
- 10.0CVE-2021-26622genians genian nacEPSS 3.0%
An remote code execution vulnerability due to SSTI vulnerability and insufficient file name parameter validation was discovered in Genian NAC. Remote attackers are able to execute arbitrary malicious code with SYSTEM privileges on all conn…
- 6.8CVE-2021-38745chamiloEPSS 0.9%
Chamilo LMS v1.11.14 was discovered to contain a zero click code injection vulnerability which allows attackers to execute arbitrary code via a crafted plugin. This vulnerability is triggered through user interaction with the attacker's pr…
- 9.8CVE-2021-39383diaowen dwsurveyEPSS 3.1%
DWSurvey v3.2.0 was discovered to contain a remote command execution (RCE) vulnerability via the component /sysuser/SysPropertyAction.java.
- 9.8CVE-2022-25578taogogo taocmsEPSS 1.8%
taocms v3.0.2 allows attackers to execute code injection via arbitrarily editing the .htaccess file.
- 8.8CVE-2020-25197geEPSS 3.2%
A code injection vulnerability exists in one of the webpages in GE Reason RT430, RT431 & RT434 GNSS clocks in firmware versions prior to version 08A06 that could allow an authenticated remote attacker to execute arbitrary code on the syste…
- 9.8CVE-2020-15591uni-stuttgart frams\' fast file exchangeEPSS 4.1%
fexsrv in F*EX (aka Frams' Fast File EXchange) before fex-20160919_2 allows eval injection (for unauthenticated remote code execution).
- 9.8CVE-2022-25760accesslog project accesslogEPSS 1.6%
All versions of package accesslog are vulnerable to Arbitrary Code Injection due to the usage of the Function constructor without input sanitization. If (attacker-controlled) user input is given to the format option of the package's export…
- 8.8CVE-2022-0811kubernetes cri-oEPSS 19%
A flaw was found in CRI-O in the way it set kernel options for a pod. This issue allows anyone with rights to deploy a pod on a Kubernetes cluster that uses the CRI-O runtime to achieve a container escape and arbitrary code execution as ro…
- 9.8CVE-2022-25498cuppacmsEPSS 3.1%
CuppaCMS v1.0 was discovered to contain a remote code execution (RCE) vulnerability via the saveConfigData function in /classes/ajax/Functions.php.
- 7.2CVE-2022-0944sqlpadEPSS 8.5%
Template injection in connection test endpoint leads to RCE in GitHub repository sqlpad/sqlpad prior to 6.10.1.
- 9.8CVE-2021-25003wptaskforce wpcargo track \& traceEPSS 56%
The WPCargo Track & Trace WordPress plugin before 6.9.0 contains a file which could allow unauthenticated attackers to write a PHP file anywhere on the web server, leading to RCE
- 6.7CVE-2022-0921microweberEPSS 2.2%
Abusing Backup/Restore feature to achieve Remote Code Execution in GitHub repository microweber/microweber prior to 1.2.12.
- 9.8CVE-2021-44618nystudio107 seomaticEPSS 1.4%
A Server-side Template Injection (SSTI) vulnerability exists in Nystudio107 Seomatic 3.4.12 in src/helpers/UrlHelper.php via the host header.
- 8.8CVE-2022-24915ipcomm ipdio firmwareEPSS 1.0%
The absence of filters when loading some sections in the web application of the vulnerable device allows attackers to inject malicious code that will be interpreted when a legitimate user accesses the web section where the information is d…
- 8.8CVE-2022-22985ipcomm ipdio firmwareEPSS 1.0%
The absence of filters when loading some sections in the web application of the vulnerable device allows attackers to inject malicious code that will be interpreted when a legitimate user accesses the specific web section where the informa…
- 7.2CVE-2022-24734mybbExploitEPSS 78%
MyBB is a free and open source forum software. In affected versions the Admin CP's Settings management module does not validate setting types correctly on insertion and update, making it possible to add settings of supported type `php` wit…
- 6.3CVE-2022-24512EPSS 1.6%
.NET and Visual Studio Remote Code Execution Vulnerability
- 8.8CVE-2022-0896microweberEPSS 1.4%
Improper Neutralization of Special Elements Used in a Template Engine in GitHub repository microweber/microweber prior to 1.3.
- 7.2CVE-2021-43944atlassianEPSS 2.3%
This issue exists to document that a security improvement in the way that Jira Server and Data Center use templates has been implemented. Affected versions of Atlassian Jira Server and Data Center allowed remote attackers with system admin…
- 9.8CVE-2022-0845lightningai pytorch lightningEPSS 1.0%
Code Injection in GitHub repository pytorchlightning/pytorch-lightning prior to 1.6.0.
- 10.0CVE-2022-22947KEVExploitEPSS 98%
In spring cloud gateway versions prior to 3.1.1+ and 3.0.7+ , applications are vulnerable to a code injection attack when the Gateway Actuator endpoint is enabled, exposed and unsecured. A remote attacker could make a maliciously crafted r…
- 8.8CVE-2022-22909digitaldruid hoteldruidExploitEPSS 45%
HotelDruid v3.0.3 was discovered to contain a remote code execution (RCE) vulnerability which is exploited via an attacker inserting a crafted payload into the name field under the Create New Room module.
- 8.8CVE-2022-0819dolibarr erp\/crmEPSS 43%
Code Injection in GitHub repository dolibarr/dolibarr prior to 15.0.1.
- 7.2CVE-2021-44238ayacms project ayacmsEPSS 1.9%
AyaCMS 3.1.2 is vulnerable to Remote Code Execution (RCE) via /aya/module/admin/ust_tab_e.inc.php,