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.
8386 vulnerabilities reference this CWE, most recent first.
GHSA-687P-FC47-C8PH
Vulnerability from github – Published: 2025-03-25 21:31 – Updated: 2025-03-26 15:32An issue in IIT Bombay, Mumbai, India Bodhitree of cs101 version allows a remote attacker to execute arbitrary code.
{
"affected": [],
"aliases": [
"CVE-2024-48818"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2025-03-25T20:15:22Z",
"severity": "CRITICAL"
},
"details": "An issue in IIT Bombay, Mumbai, India Bodhitree of cs101 version allows a remote attacker to execute arbitrary code.",
"id": "GHSA-687p-fc47-c8ph",
"modified": "2025-03-26T15:32:37Z",
"published": "2025-03-25T21:31:33Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-48818"
},
{
"type": "WEB",
"url": "https://packetstorm.news/files/id/183309"
}
],
"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-68C6-3M87-9QJ2
Vulnerability from github – Published: 2022-05-14 02:38 – Updated: 2022-05-14 02:38Argument injection vulnerability in Exodus 0.10 allows remote attackers to inject arbitrary command line arguments, overwrite arbitrary files, and cause a denial of service via encoded spaces in an im:// URI.
{
"affected": [],
"aliases": [
"CVE-2008-6935"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2009-08-11T21:00:00Z",
"severity": "HIGH"
},
"details": "Argument injection vulnerability in Exodus 0.10 allows remote attackers to inject arbitrary command line arguments, overwrite arbitrary files, and cause a denial of service via encoded spaces in an im:// URI.",
"id": "GHSA-68c6-3m87-9qj2",
"modified": "2022-05-14T02:38:15Z",
"published": "2022-05-14T02:38:15Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2008-6935"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/46663"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/7145"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/7167"
},
{
"type": "WEB",
"url": "http://osvdb.org/49888"
},
{
"type": "WEB",
"url": "http://retrogod.altervista.org/exodus_uri.html"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/32729"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/498389/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/32330"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2008/3191"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-68CF-J259-WGR8
Vulnerability from github – Published: 2026-02-25 06:31 – Updated: 2026-02-26 21:31The SPIP tickets plugin versions prior to 4.3.3 contain an unauthenticated remote code execution vulnerability in the forum preview handling for public ticket pages. The plugin appends untrusted request parameters into HTML that is later rendered by a template using unfiltered environment rendering (#ENV**), which disables SPIP output filtering. As a result, an unauthenticated attacker can inject crafted content that is evaluated through SPIP's template processing chain, leading to execution of code in the context of the web server.
{
"affected": [],
"aliases": [
"CVE-2026-27744"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-02-25T04:16:04Z",
"severity": "CRITICAL"
},
"details": "The SPIP tickets plugin versions prior to\u00a04.3.3 contain an unauthenticated remote code execution vulnerability in the forum preview handling for public ticket pages. The plugin appends untrusted request parameters into HTML that is later rendered by a template using unfiltered environment rendering (#ENV**), which disables SPIP output filtering. As a result, an unauthenticated attacker can inject crafted content that is evaluated through SPIP\u0027s template processing chain, leading to execution of code in the context of the web server.",
"id": "GHSA-68cf-j259-wgr8",
"modified": "2026-02-26T21:31:30Z",
"published": "2026-02-25T06:31:14Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-27744"
},
{
"type": "WEB",
"url": "https://blog.spip.net/Mise-a-jour-de-securite-sortie-de-SPIP-4-4-10.html"
},
{
"type": "WEB",
"url": "https://chocapikk.com/posts/2026/spip-plugins-vulnerabilities"
},
{
"type": "WEB",
"url": "https://git.spip.net/spip-contrib-extensions/tickets/-/commit/869935b6687822ed79ad5477626a664d8ea6dcf7"
},
{
"type": "WEB",
"url": "https://plugins.spip.net/tickets"
},
{
"type": "WEB",
"url": "https://www.vulncheck.com/advisories/spip-tickets-unauthenticated-rce"
}
],
"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"
},
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"type": "CVSS_V4"
}
]
}
GHSA-68CR-62WM-28H7
Vulnerability from github – Published: 2022-05-01 18:28 – Updated: 2025-04-09 03:46Multiple PHP remote file inclusion vulnerabilities in myphpPagetool 0.4.3 allow remote attackers to execute arbitrary PHP code via a URL in the ptinclude parameter to (1) help1.php, (2) help2.php, (3) help3.php, (4) help4.php, (5) help5.php, (6) help6.php, (7) help7.php, (7) help8.php, (8) help9.php, or (10) index.php in doc/admin/.
{
"affected": [],
"aliases": [
"CVE-2007-4947"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2007-09-18T20:17:00Z",
"severity": "HIGH"
},
"details": "Multiple PHP remote file inclusion vulnerabilities in myphpPagetool 0.4.3 allow remote attackers to execute arbitrary PHP code via a URL in the ptinclude parameter to (1) help1.php, (2) help2.php, (3) help3.php, (4) help4.php, (5) help5.php, (6) help6.php, (7) help7.php, (7) help8.php, (8) help9.php, or (10) index.php in doc/admin/.",
"id": "GHSA-68cr-62wm-28h7",
"modified": "2025-04-09T03:46:20Z",
"published": "2022-05-01T18:28:35Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2007-4947"
},
{
"type": "WEB",
"url": "http://arfis.wordpress.com/2007/09/14/rfi-03-myphppagetool"
},
{
"type": "WEB",
"url": "http://osvdb.org/43150"
},
{
"type": "WEB",
"url": "http://osvdb.org/43151"
},
{
"type": "WEB",
"url": "http://osvdb.org/43152"
},
{
"type": "WEB",
"url": "http://osvdb.org/43153"
},
{
"type": "WEB",
"url": "http://osvdb.org/43154"
},
{
"type": "WEB",
"url": "http://osvdb.org/43155"
},
{
"type": "WEB",
"url": "http://osvdb.org/43156"
},
{
"type": "WEB",
"url": "http://osvdb.org/43157"
},
{
"type": "WEB",
"url": "http://osvdb.org/43158"
},
{
"type": "WEB",
"url": "http://osvdb.org/43159"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-68H7-FPQV-G3XF
Vulnerability from github – Published: 2022-05-17 02:18 – Updated: 2022-05-17 02:18Unspecified vulnerability in testMaker before 3.0p16 allows remote authenticated users to execute arbitrary PHP code via unspecified attack vectors.
{
"affected": [],
"aliases": [
"CVE-2008-5173"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2008-11-19T18:11:00Z",
"severity": "HIGH"
},
"details": "Unspecified vulnerability in testMaker before 3.0p16 allows remote authenticated users to execute arbitrary PHP code via unspecified attack vectors.",
"id": "GHSA-68h7-fpqv-g3xf",
"modified": "2022-05-17T02:18:02Z",
"published": "2022-05-17T02:18:02Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2008-5173"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/43403"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/30870"
},
{
"type": "WEB",
"url": "http://sourceforge.net/project/shownotes.php?release_id=609679"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/29978"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-68H9-7525-2J7F
Vulnerability from github – Published: 2022-05-01 18:34 – Updated: 2022-05-01 18:34install.php in Drupal 5.x before 5.3, when the configured database server is not reachable, allows remote attackers to execute arbitrary code via vectors that cause settings.php to be modified.
{
"affected": [],
"aliases": [
"CVE-2007-5593"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2007-10-19T23:17:00Z",
"severity": "MODERATE"
},
"details": "install.php in Drupal 5.x before 5.3, when the configured database server is not reachable, allows remote attackers to execute arbitrary code via vectors that cause settings.php to be modified.",
"id": "GHSA-68h9-7525-2j7f",
"modified": "2022-05-01T18:34:56Z",
"published": "2022-05-01T18:34:56Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2007-5593"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/37265"
},
{
"type": "WEB",
"url": "https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00328.html"
},
{
"type": "WEB",
"url": "http://drupal.org/files/sa-2007-025/SA-2007-025-5.2.patch"
},
{
"type": "WEB",
"url": "http://drupal.org/node/184316"
},
{
"type": "WEB",
"url": "http://osvdb.org/39648"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/27290"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/27352"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/26119"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-68J2-GXMG-QR7Q
Vulnerability from github – Published: 2024-04-02 09:30 – Updated: 2025-03-27 18:30An issue in Bento4 Bento v.1.6.0-641 allows a remote attacker to execute arbitrary code via the Ap4StsdAtom.cpp,AP4_StsdAtom::AP4_StsdAtom,mp4fragment.
{
"affected": [],
"aliases": [
"CVE-2024-31004"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-04-02T08:16:10Z",
"severity": "CRITICAL"
},
"details": "An issue in Bento4 Bento v.1.6.0-641 allows a remote attacker to execute arbitrary code via the Ap4StsdAtom.cpp,AP4_StsdAtom::AP4_StsdAtom,mp4fragment.",
"id": "GHSA-68j2-gxmg-qr7q",
"modified": "2025-03-27T18:30:39Z",
"published": "2024-04-02T09:30:42Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-31004"
},
{
"type": "WEB",
"url": "https://github.com/axiomatic-systems/Bento4/issues/941"
},
{
"type": "WEB",
"url": "https://github.com/zhangteng0526/CVE-information/blob/main/CVE-2024-31004"
}
],
"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-68MC-H6H8-79WJ
Vulnerability from github – Published: 2026-06-15 21:30 – Updated: 2026-06-16 15:33An issue in the sendmail transport integration component of YouTransfer v1.0.6 allows attackers to execute arbitrary code via supplying a crafted request.
{
"affected": [],
"aliases": [
"CVE-2026-50880"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-06-15T20:16:30Z",
"severity": "CRITICAL"
},
"details": "An issue in the sendmail transport integration component of YouTransfer v1.0.6 allows attackers to execute arbitrary code via supplying a crafted request.",
"id": "GHSA-68mc-h6h8-79wj",
"modified": "2026-06-16T15:33:47Z",
"published": "2026-06-15T21:30:41Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-50880"
},
{
"type": "WEB",
"url": "https://gist.github.com/pyuysig/4013f4f10f74b3fded7ddf41b6d36ae5"
}
],
"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-68MV-FRCH-JCFH
Vulnerability from github – Published: 2022-05-01 17:42 – Updated: 2022-05-01 17:42Microsoft Word in Office 2000 SP3, XP SP3, Office 2003 SP2, Works Suite 2004 to 2006, and Office 2004 for Mac allows user-assisted remote attackers to execute arbitrary code via a Word file with a malformed drawing object, which leads to memory corruption.
{
"affected": [],
"aliases": [
"CVE-2007-0209"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2007-02-13T21:28:00Z",
"severity": "HIGH"
},
"details": "Microsoft Word in Office 2000 SP3, XP SP3, Office 2003 SP2, Works Suite 2004 to 2006, and Office 2004 for Mac allows user-assisted remote attackers to execute arbitrary code via a Word file with a malformed drawing object, which leads to memory corruption.",
"id": "GHSA-68mv-frch-jcfh",
"modified": "2022-05-01T17:42:27Z",
"published": "2022-05-01T17:42:27Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2007-0209"
},
{
"type": "WEB",
"url": "https://docs.microsoft.com/en-us/security-updates/securitybulletins/2007/ms07-014"
},
{
"type": "WEB",
"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A187"
},
{
"type": "WEB",
"url": "http://osvdb.org/34386"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/22482"
},
{
"type": "WEB",
"url": "http://www.securitytracker.com/id?1017639"
},
{
"type": "WEB",
"url": "http://www.us-cert.gov/cas/techalerts/TA07-044A.html"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2007/0583"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-68PW-2WMH-CPR9
Vulnerability from github – Published: 2022-05-17 01:16 – Updated: 2025-04-12 12:48Bomgar Remote Support before 15.1.1 allows remote attackers to execute arbitrary PHP code via crafted serialized data to unspecified PHP scripts.
{
"affected": [],
"aliases": [
"CVE-2015-0935"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2015-05-25T19:59:00Z",
"severity": "HIGH"
},
"details": "Bomgar Remote Support before 15.1.1 allows remote attackers to execute arbitrary PHP code via crafted serialized data to unspecified PHP scripts.",
"id": "GHSA-68pw-2wmh-cpr9",
"modified": "2025-04-12T12:48:12Z",
"published": "2022-05-17T01:16:52Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2015-0935"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/39958"
},
{
"type": "WEB",
"url": "http://www.kb.cert.org/vuls/id/978652"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/74460"
}
],
"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.