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.
8358 vulnerabilities reference this CWE, most recent first.
GHSA-476M-7XFC-P9FX
Vulnerability from github – Published: 2022-05-24 19:08 – Updated: 2022-05-24 19:08Zoho ManageEngine ADManager Plus before 7110 allows remote code execution.
{
"affected": [],
"aliases": [
"CVE-2021-33911"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2021-07-17T19:15:00Z",
"severity": "CRITICAL"
},
"details": "Zoho ManageEngine ADManager Plus before 7110 allows remote code execution.",
"id": "GHSA-476m-7xfc-p9fx",
"modified": "2022-05-24T19:08:20Z",
"published": "2022-05-24T19:08:20Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-33911"
},
{
"type": "WEB",
"url": "https://www.manageengine.com/products/ad-manager/release-notes.html#7110"
}
],
"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-47F3-J862-735C
Vulnerability from github – Published: 2022-05-14 02:59 – Updated: 2022-05-14 02:59The installer script in webEdition CMS before 6.2.7-s1 and 6.3.x before 6.3.8-s1 allows remote attackers to conduct PHP Object Injection attacks by intercepting a request to update.webedition.org.
{
"affected": [],
"aliases": [
"CVE-2014-2302"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2018-07-19T17:29:00Z",
"severity": "CRITICAL"
},
"details": "The installer script in webEdition CMS before 6.2.7-s1 and 6.3.x before 6.3.8-s1 allows remote attackers to conduct PHP Object Injection attacks by intercepting a request to update.webedition.org.",
"id": "GHSA-47f3-j862-735c",
"modified": "2022-05-14T02:59:16Z",
"published": "2022-05-14T02:59:16Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2014-2302"
},
{
"type": "WEB",
"url": "https://www.redteam-pentesting.de/advisories/rt-sa-2014-004"
},
{
"type": "WEB",
"url": "http://packetstormsecurity.com/files/126861/webEdition-CMS-2.8.0.0-Remote-Command-Execution.html"
},
{
"type": "WEB",
"url": "http://seclists.org/fulldisclosure/2014/May/147"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/532230/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/67692"
}
],
"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-47GJ-JQ93-7CPF
Vulnerability from github – Published: 2022-05-17 00:42 – Updated: 2022-05-17 00:42Multiple PHP remote file inclusion vulnerabilities in the Clickheat - Heatmap stats (com_clickheat) component 1.0.1 for Joomla! allow remote attackers to execute arbitrary PHP code via a URL in the (1) GLOBALS[mosConfig_absolute_path] parameter to (a) install.clickheat.php, (b) Cache.php and (c) Clickheat_Heatmap.php in Recly/Clickheat/, and (d) Recly/common/GlobalVariables.php; and the (2) mosConfig_absolute_path parameter to (e) _main.php and (f) main.php in includes/heatmap, and (g) includes/overview/main.php.
{
"affected": [],
"aliases": [
"CVE-2008-5793"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2008-12-31T11:30:00Z",
"severity": "MODERATE"
},
"details": "Multiple PHP remote file inclusion vulnerabilities in the Clickheat - Heatmap stats (com_clickheat) component 1.0.1 for Joomla! allow remote attackers to execute arbitrary PHP code via a URL in the (1) GLOBALS[mosConfig_absolute_path] parameter to (a) install.clickheat.php, (b) Cache.php and (c) Clickheat_Heatmap.php in Recly/Clickheat/, and (d) Recly/common/GlobalVariables.php; and the (2) mosConfig_absolute_path parameter to (e) _main.php and (f) main.php in includes/heatmap, and (g) includes/overview/main.php.",
"id": "GHSA-47gj-jq93-7cpf",
"modified": "2022-05-17T00:42:53Z",
"published": "2022-05-17T00:42:53Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2008-5793"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/46439"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/7038"
},
{
"type": "WEB",
"url": "http://securityreason.com/securityalert/4841"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/32190"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-47GR-PFR8-R958
Vulnerability from github – Published: 2022-05-02 03:45 – Updated: 2022-05-02 03:45Argument injection vulnerability in the iim: URI handler in IBMIM.exe in IBM Installation Manager 1.3.2 and earlier, as used in IBM Rational Robot and Rational Team Concert, allows remote attackers to load arbitrary DLL files via the -vm option, as demonstrated by a reference to a UNC share pathname.
{
"affected": [],
"aliases": [
"CVE-2009-3518"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2009-10-01T15:30:00Z",
"severity": "HIGH"
},
"details": "Argument injection vulnerability in the iim: URI handler in IBMIM.exe in IBM Installation Manager 1.3.2 and earlier, as used in IBM Rational Robot and Rational Team Concert, allows remote attackers to load arbitrary DLL files via the -vm option, as demonstrated by a reference to a UNC share pathname.",
"id": "GHSA-47gr-pfr8-r958",
"modified": "2022-05-02T03:45:59Z",
"published": "2022-05-02T03:45:59Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2009-3518"
},
{
"type": "WEB",
"url": "http://retrogod.altervista.org/9sg_ibm_uri.html"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/36906"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2009/2792"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-47H8-JMP3-9F28
Vulnerability from github – Published: 2024-12-19 15:14 – Updated: 2024-12-20 18:35pyrage uses the Rust age crate for its underlying operations, and age is vulnerable to GHSA-4fg7-vxc8-qx5w.
All details of GHSA-4fg7-vxc8-qx5w are relevant to pyrage for the versions specified in this advisory. See GHSA-4fg7-vxc8-qx5w for full details.
Versions of pyrage before 1.2.0 lack plugin support and are therefore not affected.
An equivalent issue was fixed in the reference Go implementation of age, see advisory GHSA-32gq-x56h-299c.
Thanks to ⬡-49016 for reporting this issue.
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "pyrage"
},
"ranges": [
{
"events": [
{
"introduced": "1.2.0"
},
{
"fixed": "1.2.3"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2024-56327"
],
"database_specific": {
"cwe_ids": [
"CWE-1395",
"CWE-25",
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2024-12-19T15:14:06Z",
"nvd_published_at": "2024-12-19T23:15:07Z",
"severity": "HIGH"
},
"details": "`pyrage` uses the Rust `age` crate for its underlying operations, and `age` is vulnerable to GHSA-4fg7-vxc8-qx5w.\n\nAll details of GHSA-4fg7-vxc8-qx5w are relevant to `pyrage` for the versions specified in this advisory. See GHSA-4fg7-vxc8-qx5w for full details.\n\nVersions of `pyrage` before 1.2.0 lack plugin support and are therefore **not affected**.\n\nAn equivalent issue was fixed in [the reference Go implementation of age](https://github.com/FiloSottile/age), see advisory [GHSA-32gq-x56h-299c](https://github.com/FiloSottile/age/security/advisories/GHSA-32gq-x56h-299c).\n\nThanks to \u2b21-49016 for reporting this issue.",
"id": "GHSA-47h8-jmp3-9f28",
"modified": "2024-12-20T18:35:12Z",
"published": "2024-12-19T15:14:06Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/FiloSottile/age/security/advisories/GHSA-32gq-x56h-299c"
},
{
"type": "WEB",
"url": "https://github.com/str4d/rage/security/advisories/GHSA-4fg7-vxc8-qx5w"
},
{
"type": "WEB",
"url": "https://github.com/woodruffw/pyrage/security/advisories/GHSA-47h8-jmp3-9f28"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-56327"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-4fg7-vxc8-qx5w"
},
{
"type": "PACKAGE",
"url": "https://github.com/woodruffw/pyrage"
}
],
"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:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
"type": "CVSS_V4"
}
],
"summary": "pyrage vulnerable to malicious plugin names, recipients, or identities causing arbitrary binary execution"
}
GHSA-47HH-2GGX-7R2J
Vulnerability from github – Published: 2022-05-01 18:33 – Updated: 2022-05-01 18:33Microsoft Internet Explorer 7 and earlier allows remote attackers to bypass the "File Download - Security Warning" dialog box and download arbitrary .exe files by placing a '?' (question mark) followed by a non-.exe filename after the .exe filename, as demonstrated by (1) .txt, (2) .cda, (3) .log, (4) .dif, (5) .sol, (6) .htt, (7) .itpc, (8) .itms, (9) .dvr-ms, (10) .dib, (11) .asf, (12) .tif, and unspecified other extensions, a different issue than CVE-2004-1331. NOTE: this issue might not cross privilege boundaries, although it does bypass an intended protection mechanism.
{
"affected": [],
"aliases": [
"CVE-2007-5456"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2007-10-14T18:17:00Z",
"severity": "HIGH"
},
"details": "Microsoft Internet Explorer 7 and earlier allows remote attackers to bypass the \"File Download - Security Warning\" dialog box and download arbitrary .exe files by placing a \u0027?\u0027 (question mark) followed by a non-.exe filename after the .exe filename, as demonstrated by (1) .txt, (2) .cda, (3) .log, (4) .dif, (5) .sol, (6) .htt, (7) .itpc, (8) .itms, (9) .dvr-ms, (10) .dib, (11) .asf, (12) .tif, and unspecified other extensions, a different issue than CVE-2004-1331. NOTE: this issue might not cross privilege boundaries, although it does bypass an intended protection mechanism.",
"id": "GHSA-47hh-2ggx-7r2j",
"modified": "2022-05-01T18:33:32Z",
"published": "2022-05-01T18:33:32Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2007-5456"
},
{
"type": "WEB",
"url": "http://securityreason.com/securityalert/3222"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/482220/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/482248/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/482297/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/482314/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/26062"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-47QG-45WP-9CGC
Vulnerability from github – Published: 2022-05-01 18:37 – Updated: 2022-05-01 18:37PHP remote file inclusion vulnerability in starnet/themes/c-sky/main.inc.php in Fred Stuurman SyndeoCMS 2.5.01 allows remote attackers to execute arbitrary PHP code via a URL in the cmsdir parameter, a different vector than CVE-2006-4920.2.
{
"affected": [],
"aliases": [
"CVE-2007-5840"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2007-11-06T21:46:00Z",
"severity": "MODERATE"
},
"details": "PHP remote file inclusion vulnerability in starnet/themes/c-sky/main.inc.php in Fred Stuurman SyndeoCMS 2.5.01 allows remote attackers to execute arbitrary PHP code via a URL in the cmsdir parameter, a different vector than CVE-2006-4920.2.",
"id": "GHSA-47qg-45wp-9cgc",
"modified": "2022-05-01T18:37:10Z",
"published": "2022-05-01T18:37:10Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2007-5840"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/38244"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/4607"
},
{
"type": "WEB",
"url": "http://osvdb.org/38406"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/27527"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/26321"
},
{
"type": "WEB",
"url": "http://www.syndeocms.org/forum/index.php?topic=1737.0"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2007/3748"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-47R6-WVQ3-44G4
Vulnerability from github – Published: 2022-04-22 00:24 – Updated: 2024-04-03 23:04Ekiga versions before 3.3.0 attempted to load a module from /tmp/ekiga_test.so.
{
"affected": [],
"aliases": [
"CVE-2011-1830"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2019-04-22T16:29:00Z",
"severity": "HIGH"
},
"details": "Ekiga versions before 3.3.0 attempted to load a module from /tmp/ekiga_test.so.",
"id": "GHSA-47r6-wvq3-44g4",
"modified": "2024-04-03T23:04:29Z",
"published": "2022-04-22T00:24:07Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2011-1830"
},
{
"type": "WEB",
"url": "https://gitlab.gnome.org/GNOME/ekiga/commit/02654fc949722a78d41fcffac8687d73d8574647"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-47VJ-PRCG-C299
Vulnerability from github – Published: 2022-05-17 02:49 – Updated: 2025-04-20 03:35A code injection vulnerability exists in SAP TREX / Business Warehouse Accelerator (BWA). The vendor response is SAP Security Note 2419592.
{
"affected": [],
"aliases": [
"CVE-2017-7691"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2017-04-11T21:59:00Z",
"severity": "CRITICAL"
},
"details": "A code injection vulnerability exists in SAP TREX / Business Warehouse Accelerator (BWA). The vendor response is SAP Security Note 2419592.",
"id": "GHSA-47vj-prcg-c299",
"modified": "2025-04-20T03:35:48Z",
"published": "2022-05-17T02:49:46Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2017-7691"
},
{
"type": "WEB",
"url": "https://blogs.sap.com/2017/04/11/sap-security-patch-day-april-2017"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/97567"
}
],
"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-47WW-8Q94-PGP6
Vulnerability from github – Published: 2026-03-02 18:31 – Updated: 2026-03-02 18:31sourcecodester Personnel Property Equipment System v1.0 is vulnerable to arbitrary code execution in ip/ppes/admin/admin_change_picture.php.
{
"affected": [],
"aliases": [
"CVE-2026-26699"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-03-02T16:16:25Z",
"severity": "HIGH"
},
"details": "sourcecodester Personnel Property Equipment System v1.0 is vulnerable to arbitrary code execution in ip/ppes/admin/admin_change_picture.php.",
"id": "GHSA-47ww-8q94-pgp6",
"modified": "2026-03-02T18:31:44Z",
"published": "2026-03-02T18:31:44Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-26699"
},
{
"type": "WEB",
"url": "https://github.com/Thirtypenny77/bug_report/blob/main/sourcecodester/personel-property-equipment-system/RCE-1.md"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
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.