CWE-94
Allowed-with-ReviewImproper Control of Generation of Code ('Code Injection')
Abstraction: Base · Status: Draft
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.
8378 vulnerabilities reference this CWE, most recent first.
GHSA-7R5C-R5WW-995H
Vulnerability from github – Published: 2024-08-12 15:30 – Updated: 2024-08-13 18:31Improper validation in a model specific register (MSR) could allow a malicious program with ring0 access to modify SMM configuration while SMI lock is enabled, potentially leading to arbitrary code execution.
{
"affected": [],
"aliases": [
"CVE-2023-31315"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-08-12T13:38:10Z",
"severity": "HIGH"
},
"details": "Improper validation in a model specific register (MSR) could allow a malicious program with ring0 access to modify SMM configuration while SMI lock is enabled, potentially leading to arbitrary code execution.",
"id": "GHSA-7r5c-r5ww-995h",
"modified": "2024-08-13T18:31:14Z",
"published": "2024-08-12T15:30:48Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-31315"
},
{
"type": "WEB",
"url": "https://https://www.amd.com/en/resources/product-security/bulletin/amd-sb-7014.html"
},
{
"type": "WEB",
"url": "https://www.amd.com/en/resources/product-security/bulletin/amd-sb-7014.html"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-7R7X-G5GW-9RGV
Vulnerability from github – Published: 2022-05-17 03:06 – Updated: 2022-05-17 03:06The ConvolveHorizontally function in Skia, as used in Mozilla Firefox before 31.0, Firefox ESR 24.x before 24.7, and Thunderbird before 24.7, does not properly handle the discarding of image data during function execution, which allows remote attackers to execute arbitrary code by triggering prolonged image scaling, as demonstrated by scaling of a high-quality image.
{
"affected": [],
"aliases": [
"CVE-2014-1557"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2014-07-23T11:12:00Z",
"severity": "HIGH"
},
"details": "The ConvolveHorizontally function in Skia, as used in Mozilla Firefox before 31.0, Firefox ESR 24.x before 24.7, and Thunderbird before 24.7, does not properly handle the discarding of image data during function execution, which allows remote attackers to execute arbitrary code by triggering prolonged image scaling, as demonstrated by scaling of a high-quality image.",
"id": "GHSA-7r7x-g5gw-9rgv",
"modified": "2022-05-17T03:06:39Z",
"published": "2022-05-17T03:06:39Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2014-1557"
},
{
"type": "WEB",
"url": "https://bugzilla.mozilla.org/show_bug.cgi?id=913805"
},
{
"type": "WEB",
"url": "https://security.gentoo.org/glsa/201504-01"
},
{
"type": "WEB",
"url": "http://linux.oracle.com/errata/ELSA-2014-0918.html"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/59591"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/59719"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/59760"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/60083"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/60306"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/60486"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/60621"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/60628"
},
{
"type": "WEB",
"url": "http://www.debian.org/security/2014/dsa-2986"
},
{
"type": "WEB",
"url": "http://www.debian.org/security/2014/dsa-2996"
},
{
"type": "WEB",
"url": "http://www.mozilla.org/security/announce/2014/mfsa2014-64.html"
},
{
"type": "WEB",
"url": "http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.html"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/68824"
},
{
"type": "WEB",
"url": "http://www.securitytracker.com/id/1030619"
},
{
"type": "WEB",
"url": "http://www.securitytracker.com/id/1030620"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-7R82-QFF2-HHCM
Vulnerability from github – Published: 2022-05-24 16:52 – Updated: 2024-04-04 01:35A issue was discovered in KuaiFanCMS 5.0. It allows eval injection by placing PHP code in the install.php db_name parameter and then making a config.php request.
{
"affected": [],
"aliases": [
"CVE-2019-14746"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2019-08-07T16:15:00Z",
"severity": "CRITICAL"
},
"details": "A issue was discovered in KuaiFanCMS 5.0. It allows eval injection by placing PHP code in the install.php db_name parameter and then making a config.php request.",
"id": "GHSA-7r82-qff2-hhcm",
"modified": "2024-04-04T01:35:01Z",
"published": "2022-05-24T16:52:50Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2019-14746"
},
{
"type": "WEB",
"url": "https://github.com/poropro/kuaifan/issues/2"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-7R8G-JH99-CMRQ
Vulnerability from github – Published: 2022-05-17 00:00 – Updated: 2022-05-26 00:01The Weintek cMT product line is vulnerable to code injection, which may allow an unauthenticated remote attacker to execute commands with root privileges on the operation system.
{
"affected": [],
"aliases": [
"CVE-2021-27446"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2022-05-16T18:15:00Z",
"severity": "CRITICAL"
},
"details": "The Weintek cMT product line is vulnerable to code injection, which may allow an unauthenticated remote attacker to execute commands with root privileges on the operation system.",
"id": "GHSA-7r8g-jh99-cmrq",
"modified": "2022-05-26T00:01:24Z",
"published": "2022-05-17T00:00:33Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-27446"
},
{
"type": "WEB",
"url": "https://dl.weintek.com/public/Document/TEC/TEC21001E_cMT_EasyWeb_V1_Security_Issues.pdf"
},
{
"type": "WEB",
"url": "https://www.cisa.gov/uscert/ics/advisories/icsa-21-082-01"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-7RG7-C2WP-3XXR
Vulnerability from github – Published: 2022-05-01 01:59 – Updated: 2024-02-14 18:30Eval injection vulnerability in awstats.pl in AWStats 6.4 and earlier, when a URLPlugin is enabled, allows remote attackers to execute arbitrary Perl code via the HTTP Referrer, which is used in a $url parameter that is inserted into an eval function call.
{
"affected": [],
"aliases": [
"CVE-2005-1527"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2005-08-15T04:00:00Z",
"severity": "MODERATE"
},
"details": "Eval injection vulnerability in awstats.pl in AWStats 6.4 and earlier, when a URLPlugin is enabled, allows remote attackers to execute arbitrary Perl code via the HTTP Referrer, which is used in a $url parameter that is inserted into an eval function call.",
"id": "GHSA-7rg7-c2wp-3xxr",
"modified": "2024-02-14T18:30:23Z",
"published": "2022-05-01T01:59:43Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2005-1527"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/21769"
},
{
"type": "WEB",
"url": "https://usn.ubuntu.com/167-1"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/16412"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/17463"
},
{
"type": "WEB",
"url": "http://securitytracker.com/id?1014636"
},
{
"type": "WEB",
"url": "http://www.debian.org/security/2005/dsa-892"
},
{
"type": "WEB",
"url": "http://www.idefense.com/application/poi/display?id=290\u0026type=vulnerabilities\u0026flashstatus=false"
},
{
"type": "WEB",
"url": "http://www.novell.com/linux/security/advisories/2005_19_sr.html"
},
{
"type": "WEB",
"url": "http://www.osvdb.org/18696"
},
{
"type": "WEB",
"url": "http://www.securiteam.com/unixfocus/5DP0J00GKE.html"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/14525"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-7RPP-XG8M-55HX
Vulnerability from github – Published: 2022-04-29 01:28 – Updated: 2022-04-29 01:28Multiple PHP remote file inclusion vulnerabilities in ttCMS 2.2 and ttForum allow remote attackers to execute arbitrary PHP code via the (1) template parameter in News.php or (2) installdir parameter in install.php.
{
"affected": [],
"aliases": [
"CVE-2003-1459"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2003-12-31T05:00:00Z",
"severity": "MODERATE"
},
"details": "Multiple PHP remote file inclusion vulnerabilities in ttCMS 2.2 and ttForum allow remote attackers to execute arbitrary PHP code via the (1) template parameter in News.php or (2) installdir parameter in install.php.",
"id": "GHSA-7rpp-xg8m-55hx",
"modified": "2022-04-29T01:28:06Z",
"published": "2022-04-29T01:28:06Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2003-1459"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/12271"
},
{
"type": "WEB",
"url": "http://securityreason.com/securityalert/3278"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/321000"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/7542"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-7RR7-FGM8-69P5
Vulnerability from github – Published: 2022-05-01 18:40 – Updated: 2022-05-01 18:40Multiple PHP remote file inclusion vulnerabilities in IAPR COMMENCE 1.3 allow remote attackers to execute arbitrary PHP code via a URL in the (a) php_root_path and sometimes the (b) privilege_root_path parameter to various PHP scripts under (1) admin/includes/, (2) admin/phase/, (3) includes/, (4) includes/page_includes/, (5) reviewer/includes/, (6) reviewer/phase/, and (7) user/phase/.
{
"affected": [],
"aliases": [
"CVE-2007-6147"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2007-11-27T19:46:00Z",
"severity": "MODERATE"
},
"details": "Multiple PHP remote file inclusion vulnerabilities in IAPR COMMENCE 1.3 allow remote attackers to execute arbitrary PHP code via a URL in the (a) php_root_path and sometimes the (b) privilege_root_path parameter to various PHP scripts under (1) admin/includes/, (2) admin/phase/, (3) includes/, (4) includes/page_includes/, (5) reviewer/includes/, (6) reviewer/phase/, and (7) user/phase/.",
"id": "GHSA-7rr7-fgm8-69p5",
"modified": "2022-05-01T18:40:01Z",
"published": "2022-05-01T18:40:01Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2007-6147"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/38641"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/4659"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/27788"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/26570"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-7RRF-56G2-VQ8R
Vulnerability from github – Published: 2025-02-07 18:31 – Updated: 2025-02-10 18:30An issue in DataEase v1 allows an attacker to execute arbitrary code via the user account and password components.
{
"affected": [],
"aliases": [
"CVE-2024-57707"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2025-02-07T16:15:38Z",
"severity": "CRITICAL"
},
"details": "An issue in DataEase v1 allows an attacker to execute arbitrary code via the user account and password components.",
"id": "GHSA-7rrf-56g2-vq8r",
"modified": "2025-02-10T18:30:46Z",
"published": "2025-02-07T18:31:22Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-57707"
},
{
"type": "WEB",
"url": "https://github.com/shigophilo/CVE/blob/main/DataEase-v1-code-execute.md"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-7RRR-JVFX-W2GC
Vulnerability from github – Published: 2025-04-11 15:32 – Updated: 2025-04-23 18:30The The Everest Forms – Contact Form, Quiz, Survey, Newsletter & Payment Form Builder for WordPress plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 3.1.1. This is due to the software allowing users to execute an action that does not properly validate a value before running do_shortcode. This makes it possible for authenticated attackers, with Subscriber-level access and above, to execute arbitrary shortcodes.
{
"affected": [],
"aliases": [
"CVE-2025-3422"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2025-04-11T13:15:40Z",
"severity": "MODERATE"
},
"details": "The The Everest Forms \u2013 Contact Form, Quiz, Survey, Newsletter \u0026 Payment Form Builder for WordPress plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 3.1.1. This is due to the software allowing users to execute an action that does not properly validate a value before running do_shortcode. This makes it possible for authenticated attackers, with Subscriber-level access and above, to execute arbitrary shortcodes.",
"id": "GHSA-7rrr-jvfx-w2gc",
"modified": "2025-04-23T18:30:56Z",
"published": "2025-04-11T15:32:29Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-3422"
},
{
"type": "WEB",
"url": "https://plugins.trac.wordpress.org/changeset/3268742"
},
{
"type": "WEB",
"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/3db1d9a0-ea68-4979-a36d-864c649f7aca?source=cve"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N",
"type": "CVSS_V3"
}
]
}
GHSA-7RVM-XJPP-63R9
Vulnerability from github – Published: 2026-06-08 18:21 – Updated: 2026-06-12 21:59Summary
A electron run as node vulnerability was identified in actual (macOS application, version 25.x (Electron 39.2.7)).
Vulnerability Type: Electron Run As Node
Description
ELECTRON_RUN_AS_NODE fuse enabled (Electron 39.2.7) — app can be converted to Node.js REPL for arbitrary code execution
Impact
An attacker who can place a file on disk or control command-line arguments can invoke the signed Actual.app binary with ELECTRON_RUN_AS_NODE=1 to execute arbitrary Node.js code inheriting the apps entitlements and code signature. This bypasses macOS Gatekeeper review of the payload: the Node.js script runs as Actual, under Actuals bundle ID and signed identity, and has access to any entitlements the app carries (network, file access, keychain, automation). Combined with any downloader (browser, mail attachment, Slack link) this becomes a signed-binary-abuse primitive on every Mac with Actual installed.
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "actual"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "26.5.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2026-42890"
],
"database_specific": {
"cwe_ids": [
"CWE-250",
"CWE-693",
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2026-06-08T18:21:26Z",
"nvd_published_at": "2026-06-12T20:16:45Z",
"severity": "MODERATE"
},
"details": "## Summary\n\nA electron run as node vulnerability was identified in `actual` (macOS application, version `25.x (Electron 39.2.7)`).\n\n**Vulnerability Type:** Electron Run As Node\n\n## Description\n\nELECTRON_RUN_AS_NODE fuse enabled (Electron 39.2.7) \u2014 app can be converted to Node.js REPL for arbitrary code execution\n\n## Impact\n\nAn attacker who can place a file on disk or control command-line arguments can invoke the signed Actual.app binary with ELECTRON_RUN_AS_NODE=1 to execute arbitrary Node.js code inheriting the apps entitlements and code signature. This bypasses macOS Gatekeeper review of the payload: the Node.js script runs as Actual, under Actuals bundle ID and signed identity, and has access to any entitlements the app carries (network, file access, keychain, automation). Combined with any downloader (browser, mail attachment, Slack link) this becomes a signed-binary-abuse primitive on every Mac with Actual installed.",
"id": "GHSA-7rvm-xjpp-63r9",
"modified": "2026-06-12T21:59:55Z",
"published": "2026-06-08T18:21:26Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/actualbudget/actual/security/advisories/GHSA-7rvm-xjpp-63r9"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-42890"
},
{
"type": "WEB",
"url": "https://actualbudget.org/blog/release-26.5.0"
},
{
"type": "PACKAGE",
"url": "https://github.com/actualbudget/actual"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N",
"type": "CVSS_V4"
}
],
"summary": "actual Allows Electron to Run As Node"
}
Mitigation
Strategy: Refactoring
Refactor your program so that you do not have to dynamically generate code.
Mitigation
- Run your code in a "jail" or similar sandbox environment that enforces strict boundaries between the process and the operating system. This may effectively restrict which code can be executed by your product.
- Examples include the Unix chroot jail and AppArmor. In general, managed code may provide some protection.
- This may not be a feasible solution, and it only limits the impact to the operating system; the rest of your application may still be subject to compromise.
- Be careful to avoid CWE-243 and other weaknesses related to jails.
Mitigation MIT-5
Strategy: Input Validation
- Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.
- When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue."
- Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.
- To reduce the likelihood of code injection, use stringent allowlists that limit which constructs are allowed. If you are dynamically constructing code that invokes a function, then verifying that the input is alphanumeric might be insufficient. An attacker might still be able to reference a dangerous function that you did not intend to allow, such as system(), exec(), or exit().
Mitigation
Use dynamic tools and techniques that interact with the product using large test suites with many diverse inputs, such as fuzz testing (fuzzing), robustness testing, and fault injection. The product's operation may slow down, but it should not become unstable, crash, or generate incorrect results.
Mitigation MIT-32
Strategy: Compilation or Build Hardening
Run the code in an environment that performs automatic taint propagation and prevents any command execution that uses tainted variables, such as Perl's "-T" switch. This will force the program to perform validation steps that remove the taint, although you must be careful to correctly validate your inputs so that you do not accidentally mark dangerous inputs as untainted (see CWE-183 and CWE-184).
Mitigation MIT-32
Strategy: Environment Hardening
Run the code in an environment that performs automatic taint propagation and prevents any command execution that uses tainted variables, such as Perl's "-T" switch. This will force the program to perform validation steps that remove the taint, although you must be careful to correctly validate your inputs so that you do not accidentally mark dangerous inputs as untainted (see CWE-183 and CWE-184).
Mitigation
For Python programs, it is frequently encouraged to use the ast.literal_eval() function instead of eval, since it is intentionally designed to avoid executing code. However, an adversary could still cause excessive memory or stack consumption via deeply nested structures [REF-1372], so the python documentation discourages use of ast.literal_eval() on untrusted data [REF-1373].
CAPEC-242: Code Injection
An adversary exploits a weakness in input validation on the target to inject new code into that which is currently executing. This differs from code inclusion in that code inclusion involves the addition or replacement of a reference to a code file, which is subsequently loaded by the target and used as part of the code of some application.
CAPEC-35: Leverage Executable Code in Non-Executable Files
An attack of this type exploits a system's trust in configuration and resource files. When the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high.
CAPEC-77: Manipulating User-Controlled Variables
This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An adversary can override variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the adversary can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.