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.
8400 vulnerabilities reference this CWE, most recent first.
GHSA-568C-R828-V9MV
Vulnerability from github – Published: 2022-05-17 04:29 – Updated: 2022-05-17 04:29The Ploticus module in PhpWiki 1.5.0 allows remote attackers to execute arbitrary code via shell metacharacters in a device option in the edit[content] parameter to index.php/HeIp. NOTE: some of these details are obtained from third party information.
{
"affected": [],
"aliases": [
"CVE-2014-5519"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2014-09-11T14:16:00Z",
"severity": "HIGH"
},
"details": "The Ploticus module in PhpWiki 1.5.0 allows remote attackers to execute arbitrary code via shell metacharacters in a device option in the edit[content] parameter to index.php/HeIp. NOTE: some of these details are obtained from third party information.",
"id": "GHSA-568c-r828-v9mv",
"modified": "2022-05-17T04:29:44Z",
"published": "2022-05-17T04:29:44Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2014-5519"
},
{
"type": "WEB",
"url": "http://osvdb.org/show/osvdb/110576"
},
{
"type": "WEB",
"url": "http://packetstormsecurity.com/files/128031/PhpWiki-Ploticus-Command-Injection.html"
},
{
"type": "WEB",
"url": "http://seclists.org/fulldisclosure/2014/Aug/77"
},
{
"type": "WEB",
"url": "http://seclists.org/oss-sec/2014/q3/456"
},
{
"type": "WEB",
"url": "http://seclists.org/oss-sec/2014/q3/465"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/60293"
},
{
"type": "WEB",
"url": "http://www.exploit-db.com/exploits/34451"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-569V-5VQ7-8W92
Vulnerability from github – Published: 2022-05-14 02:35 – Updated: 2022-05-14 02:35Microsoft Internet Explorer 6 through 9 does not properly handle objects in memory, which allows remote attackers to execute arbitrary code by accessing a malformed virtual function table after this table's deletion, aka "Virtual Function Table Corruption Remote Code Execution Vulnerability."
{
"affected": [],
"aliases": [
"CVE-2012-2522"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2012-08-15T01:55:00Z",
"severity": "HIGH"
},
"details": "Microsoft Internet Explorer 6 through 9 does not properly handle objects in memory, which allows remote attackers to execute arbitrary code by accessing a malformed virtual function table after this table\u0027s deletion, aka \"Virtual Function Table Corruption Remote Code Execution Vulnerability.\"",
"id": "GHSA-569v-5vq7-8w92",
"modified": "2022-05-14T02:35:09Z",
"published": "2022-05-14T02:35:09Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2012-2522"
},
{
"type": "WEB",
"url": "https://docs.microsoft.com/en-us/security-updates/securitybulletins/2012/ms12-052"
},
{
"type": "WEB",
"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A15498"
},
{
"type": "WEB",
"url": "http://www.us-cert.gov/cas/techalerts/TA12-227A.html"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-56CF-WWVG-6CRQ
Vulnerability from github – Published: 2022-05-01 18:32 – Updated: 2022-05-01 18:32PHP remote file inclusion vulnerability in active/components/xmlrpc/client.php in Pindorama 0.1 allows remote attackers to execute arbitrary PHP code via a URL in the c[components] parameter.
{
"affected": [],
"aliases": [
"CVE-2007-5387"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2007-10-12T10:17:00Z",
"severity": "MODERATE"
},
"details": "PHP remote file inclusion vulnerability in active/components/xmlrpc/client.php in Pindorama 0.1 allows remote attackers to execute arbitrary PHP code via a URL in the c[components] parameter.",
"id": "GHSA-56cf-wwvg-6crq",
"modified": "2022-05-01T18:32:47Z",
"published": "2022-05-01T18:32:47Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2007-5387"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/37179"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/4519"
},
{
"type": "WEB",
"url": "http://osvdb.org/37879"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/26026"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-56CX-5F5P-V4RV
Vulnerability from github – Published: 2022-09-21 00:00 – Updated: 2022-09-23 00:00In Zutty before 0.13, DECRQSS in text written to the terminal can achieve arbitrary code execution.
{
"affected": [],
"aliases": [
"CVE-2022-41138"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2022-09-20T18:15:00Z",
"severity": "CRITICAL"
},
"details": "In Zutty before 0.13, DECRQSS in text written to the terminal can achieve arbitrary code execution.",
"id": "GHSA-56cx-5f5p-v4rv",
"modified": "2022-09-23T00:00:41Z",
"published": "2022-09-21T00:00:39Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-41138"
},
{
"type": "WEB",
"url": "https://github.com/tomszilagyi/zutty/commit/bde7458c60a7bafe08bbeaafbf861eb865edfa38"
},
{
"type": "WEB",
"url": "https://bugs.gentoo.org/868495"
},
{
"type": "WEB",
"url": "https://github.com/tomszilagyi/zutty/compare/0.12...0.13"
},
{
"type": "WEB",
"url": "https://security.gentoo.org/glsa/202209-25"
}
],
"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-56GH-3FJ7-PPW8
Vulnerability from github – Published: 2022-05-17 02:11 – Updated: 2022-05-17 02:11Unspecified vulnerability in Nagios before 3.0.6 has unspecified impact and remote attack vectors related to CGI programs, "adaptive external commands," and "writing newlines and submitting service comments."
{
"affected": [],
"aliases": [
"CVE-2008-6373"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2009-03-02T19:30:00Z",
"severity": "MODERATE"
},
"details": "Unspecified vulnerability in Nagios before 3.0.6 has unspecified impact and remote attack vectors related to CGI programs, \"adaptive external commands,\" and \"writing newlines and submitting service comments.\"",
"id": "GHSA-56gh-3fj7-ppw8",
"modified": "2022-05-17T02:11:45Z",
"published": "2022-05-17T02:11:45Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2008-6373"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/47081"
},
{
"type": "WEB",
"url": "http://marc.info/?l=bugtraq\u0026m=124156641928637\u0026w=2"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/32909"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/35002"
},
{
"type": "WEB",
"url": "http://security.gentoo.org/glsa/glsa-200907-15.xml"
},
{
"type": "WEB",
"url": "http://www.nagios.org/development/history/nagios-3x.php"
},
{
"type": "WEB",
"url": "http://www.nagios.org/news/#88"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/32611"
},
{
"type": "WEB",
"url": "http://www.securitytracker.com/id?1022165"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2009/1256"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-56M6-W8WR-XJ4X
Vulnerability from github – Published: 2025-08-14 12:30 – Updated: 2026-04-01 18:35Improper Control of Generation of Code ('Code Injection') vulnerability in WPFactory Product XML Feed Manager for WooCommerce allows Remote Code Inclusion. This issue affects Product XML Feed Manager for WooCommerce: from n/a through 2.9.3.
{
"affected": [],
"aliases": [
"CVE-2025-49887"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2025-08-14T11:15:40Z",
"severity": "CRITICAL"
},
"details": "Improper Control of Generation of Code (\u0027Code Injection\u0027) vulnerability in WPFactory Product XML Feed Manager for WooCommerce allows Remote Code Inclusion. This issue affects Product XML Feed Manager for WooCommerce: from n/a through 2.9.3.",
"id": "GHSA-56m6-w8wr-xj4x",
"modified": "2026-04-01T18:35:49Z",
"published": "2025-08-14T12:30:25Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-49887"
},
{
"type": "WEB",
"url": "https://patchstack.com/database/wordpress/plugin/product-xml-feeds-for-woocommerce/vulnerability/wordpress-product-xml-feed-manager-for-woocommerce-plugin-2-9-3-remote-code-execution-rce-vulnerability?_s_id=cve"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-56MM-VMX4-JPM3
Vulnerability from github – Published: 2024-12-13 12:31 – Updated: 2024-12-13 12:31The The Notibar – Notification Bar for WordPress plugin for WordPress is vulnerable to arbitrary shortcode execution via njt_nofi_text AJAX action in all versions up to, and including, 2.1.4. 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-2024-11012"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-12-13T10:15:07Z",
"severity": "MODERATE"
},
"details": "The The Notibar \u2013 Notification Bar for WordPress plugin for WordPress is vulnerable to arbitrary shortcode execution via njt_nofi_text AJAX action in all versions up to, and including, 2.1.4. 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-56mm-vmx4-jpm3",
"modified": "2024-12-13T12:31:46Z",
"published": "2024-12-13T12:31:46Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-11012"
},
{
"type": "WEB",
"url": "https://plugins.trac.wordpress.org/browser/notibar/trunk/includes/NotificationBar/WpCustomNotification.php#L90"
},
{
"type": "WEB",
"url": "https://plugins.trac.wordpress.org/changeset/3205224"
},
{
"type": "WEB",
"url": "https://wordpress.org/plugins/notibar/#developers"
},
{
"type": "WEB",
"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/1766727d-ba54-4b46-b362-415c14be027d?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:L",
"type": "CVSS_V3"
}
]
}
GHSA-56RX-CH74-JH4V
Vulnerability from github – Published: 2022-05-02 00:00 – Updated: 2022-05-02 00:00Sun Java 1.6.0_03 and earlier versions, and possibly later versions, does not properly verify the authenticity of updates, which allows man-in-the-middle attackers to execute arbitrary code via a Trojan horse update, as demonstrated by evilgrade and DNS cache poisoning.
{
"affected": [],
"aliases": [
"CVE-2008-3440"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2008-08-01T14:41:00Z",
"severity": "HIGH"
},
"details": "Sun Java 1.6.0_03 and earlier versions, and possibly later versions, does not properly verify the authenticity of updates, which allows man-in-the-middle attackers to execute arbitrary code via a Trojan horse update, as demonstrated by evilgrade and DNS cache poisoning.",
"id": "GHSA-56rx-ch74-jh4v",
"modified": "2022-05-02T00:00:11Z",
"published": "2022-05-02T00:00:11Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2008-3440"
},
{
"type": "WEB",
"url": "http://archives.neohapsis.com/archives/bugtraq/2008-07/0250.html"
},
{
"type": "WEB",
"url": "http://securitytracker.com/id?1020584"
},
{
"type": "WEB",
"url": "http://www.infobyte.com.ar/down/Francisco%20Amato%20-%20evilgrade%20-%20ENG.pdf"
},
{
"type": "WEB",
"url": "http://www.infobyte.com.ar/down/isr-evilgrade-1.0.0.tar.gz"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-56X6-Q6PH-HM88
Vulnerability from github – Published: 2022-05-17 00:58 – Updated: 2022-05-17 00:58The PPP dissector in Wireshark 1.4.x before 1.4.14, 1.6.x before 1.6.9, and 1.8.x before 1.8.1 allows remote attackers to cause a denial of service (invalid pointer dereference and application crash) via a crafted packet, as demonstrated by a usbmon dump.
{
"affected": [],
"aliases": [
"CVE-2012-4048"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2012-07-24T19:55:00Z",
"severity": "LOW"
},
"details": "The PPP dissector in Wireshark 1.4.x before 1.4.14, 1.6.x before 1.6.9, and 1.8.x before 1.8.1 allows remote attackers to cause a denial of service (invalid pointer dereference and application crash) via a crafted packet, as demonstrated by a usbmon dump.",
"id": "GHSA-56x6-q6ph-hm88",
"modified": "2022-05-17T00:58:07Z",
"published": "2022-05-17T00:58:07Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2012-4048"
},
{
"type": "WEB",
"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A15547"
},
{
"type": "WEB",
"url": "http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=680056"
},
{
"type": "WEB",
"url": "http://lists.opensuse.org/opensuse-updates/2012-08/msg00000.html"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/49971"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/54425"
},
{
"type": "WEB",
"url": "http://www.debian.org/security/2012/dsa-2590"
},
{
"type": "WEB",
"url": "http://www.gentoo.org/security/en/glsa/glsa-201308-05.xml"
},
{
"type": "WEB",
"url": "http://www.wireshark.org/security/wnpa-sec-2012-11.html"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-5726-G6R9-5F22
Vulnerability from github – Published: 2017-10-24 18:33 – Updated: 2022-02-25 19:54Versions of syntax-error prior to 1.1.1 are affected by a cross-site scripting vulnerability which may allow a malicious file to execute code when browserified.
Recommendation
Update to version 1.1.1 or later.
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "syntax-error"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.1.1"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2014-7192"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2020-06-16T21:00:12Z",
"nvd_published_at": null,
"severity": "HIGH"
},
"details": "Versions of `syntax-error` prior to 1.1.1 are affected by a cross-site scripting vulnerability which may allow a malicious file to execute code when browserified. \n\n## Recommendation\n\nUpdate to version 1.1.1 or later.",
"id": "GHSA-5726-g6r9-5f22",
"modified": "2022-02-25T19:54:10Z",
"published": "2017-10-24T18:33:36Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2014-7192"
},
{
"type": "WEB",
"url": "https://github.com/substack/node-syntax-error/commit/9aa4e66eb90ec595d2dba55e6f9c2dd9a668b309"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/96728"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-5726-g6r9-5f22"
},
{
"type": "WEB",
"url": "https://github.com/substack/node-browserify/blob/master/changelog.markdown#421"
},
{
"type": "PACKAGE",
"url": "https://github.com/substack/node-syntax-error"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/advisories/37"
},
{
"type": "WEB",
"url": "http://www-01.ibm.com/support/docview.wss?uid=swg21690815"
}
],
"schema_version": "1.4.0",
"severity": [],
"summary": "Potential for Script Injection in syntax-error"
}
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.