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.
8376 vulnerabilities reference this CWE, most recent first.
GHSA-864V-8F4J-CFPR
Vulnerability from github – Published: 2022-05-02 06:17 – Updated: 2022-05-02 06:17PHP remote file inclusion vulnerability in include/mail.inc.php in Rezervi 3.0.2 and earlier, when register_globals is enabled, allows remote attackers to execute arbitrary PHP code via a URL in the root parameter, a different vector than CVE-2007-2156.
{
"affected": [],
"aliases": [
"CVE-2010-0983"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2010-03-16T19:30:00Z",
"severity": "MODERATE"
},
"details": "PHP remote file inclusion vulnerability in include/mail.inc.php in Rezervi 3.0.2 and earlier, when register_globals is enabled, allows remote attackers to execute arbitrary PHP code via a URL in the root parameter, a different vector than CVE-2007-2156.",
"id": "GHSA-864v-8f4j-cfpr",
"modified": "2022-05-02T06:17:48Z",
"published": "2022-05-02T06:17:48Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2010-0983"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/55341"
},
{
"type": "WEB",
"url": "http://osvdb.org/61450"
},
{
"type": "WEB",
"url": "http://packetstormsecurity.org/1001-exploits/rezervi-rfi.txt"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/38118"
},
{
"type": "WEB",
"url": "http://www.exploit-db.com/exploits/10967"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/37589"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2010/0016"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-866H-Q63M-66XM
Vulnerability from github – Published: 2023-12-28 00:30 – Updated: 2024-01-04 21:30An issue in ArtistScope ArtisBrowser v.34.1.5 and before allows an attacker to bypass intended access restrictions via interaction with the com.artis.browser.IntentReceiverActivity component.
{
"affected": [],
"aliases": [
"CVE-2023-49000"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2023-12-27T22:15:16Z",
"severity": "CRITICAL"
},
"details": "An issue in ArtistScope ArtisBrowser v.34.1.5 and before allows an attacker to bypass intended access restrictions via interaction with the com.artis.browser.IntentReceiverActivity component.",
"id": "GHSA-866h-q63m-66xm",
"modified": "2024-01-04T21:30:23Z",
"published": "2023-12-28T00:30:20Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-49000"
},
{
"type": "WEB",
"url": "https://github.com/actuator/com.artis.browser/blob/main/CWE-94.md"
},
{
"type": "WEB",
"url": "https://github.com/actuator/cve/blob/main/CVE-2023-49000"
}
],
"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-867H-HQC2-CCPF
Vulnerability from github – Published: 2024-12-06 00:31 – Updated: 2024-12-06 21:30Buffer Overflow vulnerability in Open Robotic Robotic Operating System 2 ROS2 navigation2- ROS2-humble&& navigation2-humble allows a local attacker to execute arbitrary code via a crafted .yaml file to the nav2_planner process.
{
"affected": [],
"aliases": [
"CVE-2024-37862"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-12-05T23:15:05Z",
"severity": "HIGH"
},
"details": "Buffer Overflow vulnerability in Open Robotic Robotic Operating System 2 ROS2 navigation2- ROS2-humble\u0026\u0026 navigation2-humble allows a local attacker to execute arbitrary code via a crafted .yaml file to the nav2_planner process.",
"id": "GHSA-867h-hqc2-ccpf",
"modified": "2024-12-06T21:30:38Z",
"published": "2024-12-06T00:31:48Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-37862"
},
{
"type": "WEB",
"url": "https://github.com/ros-navigation/navigation2/issues/4005"
},
{
"type": "WEB",
"url": "https://github.com/ros-navigation/navigation2/issues/4062"
},
{
"type": "WEB",
"url": "https://github.com/GoesM/ROS-CVE-CNVDs"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-869X-7923-5X6Q
Vulnerability from github – Published: 2025-04-22 18:32 – Updated: 2025-04-23 15:30TCPWave DDI 11.34P1C2 allows Remote Code Execution via Unrestricted File Upload (combined with Path Traversal).
{
"affected": [],
"aliases": [
"CVE-2025-43946"
],
"database_specific": {
"cwe_ids": [
"CWE-434",
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2025-04-22T18:16:01Z",
"severity": "CRITICAL"
},
"details": "TCPWave DDI 11.34P1C2 allows Remote Code Execution via Unrestricted File Upload (combined with Path Traversal).",
"id": "GHSA-869x-7923-5x6q",
"modified": "2025-04-23T15:30:55Z",
"published": "2025-04-22T18:32:13Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-43946"
},
{
"type": "WEB",
"url": "https://github.com/Henkel-CyberVM/CVEs/tree/main/CVE-2025-43946"
},
{
"type": "WEB",
"url": "https://tcpwave.com/ddi-dns-dhcp-ipam"
}
],
"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-86CQ-6FM2-9W8H
Vulnerability from github – Published: 2022-05-01 02:03 – Updated: 2022-05-01 02:03PHP remote file inclusion vulnerability in siteframe.php for Broadpool Siteframe allows remote attackers to execute arbitrary code via a URL in the LOCAL_PATH parameter.
{
"affected": [],
"aliases": [
"CVE-2005-1965"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2005-06-16T04:00:00Z",
"severity": "HIGH"
},
"details": "PHP remote file inclusion vulnerability in siteframe.php for Broadpool Siteframe allows remote attackers to execute arbitrary code via a URL in the LOCAL_PATH parameter.",
"id": "GHSA-86cq-6fm2-9w8h",
"modified": "2022-05-01T02:03:46Z",
"published": "2022-05-01T02:03:46Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2005-1965"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/20973"
},
{
"type": "WEB",
"url": "http://list.broadpool.com/pipermail/siteframe-announce/2005-June/000020.html"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/15657"
},
{
"type": "WEB",
"url": "http://securitytracker.com/id?1014150"
},
{
"type": "WEB",
"url": "http://www.osvdb.org/17246"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/13928"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-86GR-HF8C-38JV
Vulnerability from github – Published: 2022-05-17 05:15 – Updated: 2024-02-15 03:30Mahara 1.4.x before 1.4.4 and 1.5.x before 1.5.3 allows remote attackers to read arbitrary files or create TCP connections via an XML external entity (XXE) injection attack, as demonstrated by reading config.php.
{
"affected": [],
"aliases": [
"CVE-2012-2239"
],
"database_specific": {
"cwe_ids": [
"CWE-611",
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2012-11-24T20:55:00Z",
"severity": "MODERATE"
},
"details": "Mahara 1.4.x before 1.4.4 and 1.5.x before 1.5.3 allows remote attackers to read arbitrary files or create TCP connections via an XML external entity (XXE) injection attack, as demonstrated by reading config.php.",
"id": "GHSA-86gr-hf8c-38jv",
"modified": "2024-02-15T03:30:19Z",
"published": "2022-05-17T05:15:19Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2012-2239"
},
{
"type": "WEB",
"url": "https://bugs.launchpad.net/mahara/+bug/1047111"
},
{
"type": "WEB",
"url": "https://mahara.org/interaction/forum/topic.php?id=4869"
},
{
"type": "WEB",
"url": "http://www.debian.org/security/2012/dsa-2591"
}
],
"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:N",
"type": "CVSS_V3"
}
]
}
GHSA-86HG-W33Q-7372
Vulnerability from github – Published: 2025-01-21 21:30 – Updated: 2025-02-04 18:30An issue in RAR Extractor - Unarchiver Free and Pro v.6.4.0 allows local attackers to inject arbitrary code potentially leading to remote control and unauthorized access to sensitive user data via the exploit_combined.dylib component on MacOS.
{
"affected": [],
"aliases": [
"CVE-2024-55504"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2025-01-21T19:15:11Z",
"severity": "MODERATE"
},
"details": "An issue in RAR Extractor - Unarchiver Free and Pro v.6.4.0 allows local attackers to inject arbitrary code potentially leading to remote control and unauthorized access to sensitive user data via the exploit_combined.dylib component on MacOS.",
"id": "GHSA-86hg-w33q-7372",
"modified": "2025-02-04T18:30:47Z",
"published": "2025-01-21T21:30:53Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-55504"
},
{
"type": "WEB",
"url": "https://apps.apple.com/us/app/rar-extractor-unarchiver-pro/id647505820?mt=12"
},
{
"type": "WEB",
"url": "https://github.com/Audit00r/RAR-Extractor-Unarchiver-Pro-Dylib-injection"
},
{
"type": "WEB",
"url": "https://github.com/SyFi/CVE-2024-55504"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
"type": "CVSS_V3"
}
]
}
GHSA-86JJ-298H-3X24
Vulnerability from github – Published: 2026-06-15 21:30 – Updated: 2026-06-15 21:30Editor Remote Code Execution (RCE) in Responsive Slider by MetaSlider <= 3.106.0 versions.
{
"affected": [],
"aliases": [
"CVE-2026-39465"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-06-15T21:16:43Z",
"severity": "CRITICAL"
},
"details": "Editor Remote Code Execution (RCE) in Responsive Slider by MetaSlider \u003c= 3.106.0 versions.",
"id": "GHSA-86jj-298h-3x24",
"modified": "2026-06-15T21:30:44Z",
"published": "2026-06-15T21:30:44Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-39465"
},
{
"type": "WEB",
"url": "https://patchstack.com/database/wordpress/plugin/ml-slider/vulnerability/wordpress-responsive-slider-by-metaslider-plugin-3-106-0-remote-code-execution-rce-vulnerability?_s_id=cve"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-86M5-3XXR-W7VW
Vulnerability from github – Published: 2022-05-14 01:03 – Updated: 2022-05-14 01:03XML Core Services (aka MSXML) 3.0 in Microsoft Windows Server 2003 SP2, Windows Vista SP2, Windows Server 2008 SP2 and R2 SP1, Windows 7 SP1, Windows 8, Windows 8.1, Windows Server 2012 Gold and R2, and Windows RT Gold and 8.1 allows remote attackers to execute arbitrary code or cause a denial of service (system-state corruption) via crafted XML content, aka "MSXML Remote Code Execution Vulnerability."
{
"affected": [],
"aliases": [
"CVE-2014-4118"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2014-11-11T22:55:00Z",
"severity": "HIGH"
},
"details": "XML Core Services (aka MSXML) 3.0 in Microsoft Windows Server 2003 SP2, Windows Vista SP2, Windows Server 2008 SP2 and R2 SP1, Windows 7 SP1, Windows 8, Windows 8.1, Windows Server 2012 Gold and R2, and Windows RT Gold and 8.1 allows remote attackers to execute arbitrary code or cause a denial of service (system-state corruption) via crafted XML content, aka \"MSXML Remote Code Execution Vulnerability.\"",
"id": "GHSA-86m5-3xxr-w7vw",
"modified": "2022-05-14T01:03:38Z",
"published": "2022-05-14T01:03:38Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2014-4118"
},
{
"type": "WEB",
"url": "https://docs.microsoft.com/en-us/security-updates/securitybulletins/2014/ms14-067"
},
{
"type": "WEB",
"url": "http://www.securitytracker.com/id/1031187"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-86Q3-F3QV-8R7R
Vulnerability from github – Published: 2022-05-17 00:36 – Updated: 2022-05-17 00:36PHP remote file inclusion vulnerability in admin/plugins/Online_Users/main.php in PageTree CMS 0.0.2 BETA 0001 allows remote attackers to execute arbitrary PHP code via a URL in the GLOBALS[PT_Config][dir][data] parameter.
{
"affected": [],
"aliases": [
"CVE-2008-7067"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2009-08-25T10:30:00Z",
"severity": "HIGH"
},
"details": "PHP remote file inclusion vulnerability in admin/plugins/Online_Users/main.php in PageTree CMS 0.0.2 BETA 0001 allows remote attackers to execute arbitrary PHP code via a URL in the GLOBALS[PT_Config][dir][data] parameter.",
"id": "GHSA-86q3-f3qv-8r7r",
"modified": "2022-05-17T00:36:38Z",
"published": "2022-05-17T00:36:38Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2008-7067"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/46922"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/7255"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/32510"
}
],
"schema_version": "1.4.0",
"severity": []
}
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.