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.
8339 vulnerabilities reference this CWE, most recent first.
GHSA-9PR5-9R42-FHH9
Vulnerability from github – Published: 2022-05-01 23:36 – Updated: 2022-05-01 23:36PHP remote file inclusion vulnerability in include/body_comm.inc.php in phpProfiles 4.5.2 BETA allows remote attackers to execute arbitrary PHP code via a URL in the content parameter.
{
"affected": [],
"aliases": [
"CVE-2008-1051"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2008-02-27T19:44:00Z",
"severity": "MODERATE"
},
"details": "PHP remote file inclusion vulnerability in include/body_comm.inc.php in phpProfiles 4.5.2 BETA allows remote attackers to execute arbitrary PHP code via a URL in the content parameter.",
"id": "GHSA-9pr5-9r42-fhh9",
"modified": "2022-05-01T23:36:20Z",
"published": "2022-05-01T23:36:20Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2008-1051"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/5175"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/27952"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-9PRF-GWM7-XF3X
Vulnerability from github – Published: 2022-05-17 02:18 – Updated: 2022-05-17 02:18PHP remote file inclusion vulnerability in read.php in Chattaitaliano Istant-Replay allows remote attackers to execute arbitrary PHP code via a URL in the data parameter.
{
"affected": [],
"aliases": [
"CVE-2008-4911"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2008-11-04T00:57:00Z",
"severity": "HIGH"
},
"details": "PHP remote file inclusion vulnerability in read.php in Chattaitaliano Istant-Replay allows remote attackers to execute arbitrary PHP code via a URL in the data parameter.",
"id": "GHSA-9prf-gwm7-xf3x",
"modified": "2022-05-17T02:18:34Z",
"published": "2022-05-17T02:18:34Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2008-4911"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/41844"
},
{
"type": "WEB",
"url": "http://archives.neohapsis.com/archives/bugtraq/2008-04/0196.html"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/28797"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-9PRX-6FQF-VVJH
Vulnerability from github – Published: 2026-03-12 15:30 – Updated: 2026-03-12 15:30A vulnerability allowing an authenticated user with the Backup Administrator role to perform remote code execution (RCE) in high availability (HA) deployments of Veeam Backup & Replication.
{
"affected": [],
"aliases": [
"CVE-2026-21671"
],
"database_specific": {
"cwe_ids": [
"CWE-693",
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-03-12T15:16:13Z",
"severity": "CRITICAL"
},
"details": "A vulnerability allowing an authenticated user with the Backup Administrator role to perform remote code execution (RCE) in high availability (HA) deployments of Veeam Backup \u0026 Replication.",
"id": "GHSA-9prx-6fqf-vvjh",
"modified": "2026-03-12T15:30:26Z",
"published": "2026-03-12T15:30:26Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-21671"
},
{
"type": "WEB",
"url": "https://www.veeam.com/kb4831"
}
],
"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-9PV8-Q5RX-C8GQ
Vulnerability from github – Published: 2018-07-13 15:16 – Updated: 2024-09-16 22:58An exploitable vulnerability exists in the YAML parsing functionality in the read_yaml_file method in io_utils.py in django_make_app 0.1.3. A YAML parser can execute arbitrary Python commands resulting in command execution. An attacker can insert Python into loaded YAML to trigger this vulnerability.
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "django_make_app"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "0.1.3"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2017-16764"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2020-06-16T21:29:17Z",
"nvd_published_at": null,
"severity": "CRITICAL"
},
"details": "An exploitable vulnerability exists in the YAML parsing functionality in the `read_yaml_file` method in `io_utils.py` in django_make_app 0.1.3. A YAML parser can execute arbitrary Python commands resulting in command execution. An attacker can insert Python into loaded YAML to trigger this vulnerability.",
"id": "GHSA-9pv8-q5rx-c8gq",
"modified": "2024-09-16T22:58:59Z",
"published": "2018-07-13T15:16:59Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16764"
},
{
"type": "WEB",
"url": "https://github.com/illagrenan/django-make-app/issues/5"
},
{
"type": "WEB",
"url": "https://github.com/illagrenan/django-make-app/commit/acd814433d1021aa8783362521b0bd151fdfc9d2"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-9pv8-q5rx-c8gq"
},
{
"type": "PACKAGE",
"url": "https://github.com/illagrenan/django-make-app"
},
{
"type": "WEB",
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/django-make-app/PYSEC-2017-79.yaml"
},
{
"type": "WEB",
"url": "https://joel-malwarebenchmark.github.io/blog/2017/11/12/cve-2017-16764-vulnerability-in-django-make-app"
}
],
"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",
"type": "CVSS_V4"
}
],
"summary": "django_make_app is vulnerable to Code Injection"
}
GHSA-9PV8-WHMH-9Q87
Vulnerability from github – Published: 2022-05-02 00:05 – Updated: 2022-05-02 00:05emacs/lisp/progmodes/python.el in Emacs 22.1 and 22.2 imports Python script from the current working directory during editing of a Python file, which allows local users to execute arbitrary code via a Trojan horse Python file.
{
"affected": [],
"aliases": [
"CVE-2008-3949"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2008-09-22T18:52:00Z",
"severity": "HIGH"
},
"details": "emacs/lisp/progmodes/python.el in Emacs 22.1 and 22.2 imports Python script from the current working directory during editing of a Python file, which allows local users to execute arbitrary code via a Trojan horse Python file.",
"id": "GHSA-9pv8-whmh-9q87",
"modified": "2022-05-02T00:05:23Z",
"published": "2022-05-02T00:05:23Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2008-3949"
},
{
"type": "WEB",
"url": "https://bugzilla.novell.com/show_bug.cgi?id=424340"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/45021"
},
{
"type": "WEB",
"url": "http://lists.gnu.org/archive/html/emacs-devel/2008-09/msg00215.html"
},
{
"type": "WEB",
"url": "http://lists.opensuse.org/opensuse-security-announce/2008-09/msg00004.html"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/31982"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/34004"
},
{
"type": "WEB",
"url": "http://security.gentoo.org/glsa/glsa-200902-06.xml"
},
{
"type": "WEB",
"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2008:216"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/31052"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-9PX2-42WJ-2333
Vulnerability from github – Published: 2026-06-17 18:35 – Updated: 2026-06-17 18:35Contributor Remote Code Execution (RCE) in Blocksy Companion Pro <= 2.1.37 versions.
{
"affected": [],
"aliases": [
"CVE-2026-40783"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-06-17T13:20:38Z",
"severity": "CRITICAL"
},
"details": "Contributor Remote Code Execution (RCE) in Blocksy Companion Pro \u003c= 2.1.37 versions.",
"id": "GHSA-9px2-42wj-2333",
"modified": "2026-06-17T18:35:50Z",
"published": "2026-06-17T18:35:50Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-40783"
},
{
"type": "WEB",
"url": "https://patchstack.com/database/wordpress/plugin/blocksy-companion-pro/vulnerability/wordpress-blocksy-companion-pro-plugin-2-1-37-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-9Q3V-WM75-QJW9
Vulnerability from github – Published: 2022-05-01 18:27 – Updated: 2022-05-01 18:27PHP before 5.2.3 allows context-dependent attackers to cause a denial of service (application crash) via (1) a long string in the pattern parameter to the glob function; or (2) a long string in the string parameter to the fnmatch function, accompanied by a pattern parameter value with undefined characteristics, as demonstrated by a "*[1]e" value. NOTE: this might not be a vulnerability in most web server environments that support multiple threads, unless these issues can be demonstrated for code execution.
{
"affected": [],
"aliases": [
"CVE-2007-4782"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2007-09-10T21:17:00Z",
"severity": "MODERATE"
},
"details": "PHP before 5.2.3 allows context-dependent attackers to cause a denial of service (application crash) via (1) a long string in the pattern parameter to the glob function; or (2) a long string in the string parameter to the fnmatch function, accompanied by a pattern parameter value with undefined characteristics, as demonstrated by a \"*[1]e\" value. NOTE: this might not be a vulnerability in most web server environments that support multiple threads, unless these issues can be demonstrated for code execution.",
"id": "GHSA-9q3v-wm75-qjw9",
"modified": "2022-05-01T18:27:02Z",
"published": "2022-05-01T18:27:02Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2007-4782"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/36457"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/36461"
},
{
"type": "WEB",
"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10897"
},
{
"type": "WEB",
"url": "https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00773.html"
},
{
"type": "WEB",
"url": "http://lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.html"
},
{
"type": "WEB",
"url": "http://osvdb.org/38686"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/27102"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/28658"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/30828"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/31119"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/31200"
},
{
"type": "WEB",
"url": "http://securityreason.com/securityalert/3109"
},
{
"type": "WEB",
"url": "http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml"
},
{
"type": "WEB",
"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2009:022"
},
{
"type": "WEB",
"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2009:023"
},
{
"type": "WEB",
"url": "http://www.redhat.com/support/errata/RHSA-2008-0505.html"
},
{
"type": "WEB",
"url": "http://www.redhat.com/support/errata/RHSA-2008-0544.html"
},
{
"type": "WEB",
"url": "http://www.redhat.com/support/errata/RHSA-2008-0545.html"
},
{
"type": "WEB",
"url": "http://www.redhat.com/support/errata/RHSA-2008-0582.html"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/478626/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/478630/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/478726/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.ubuntu.com/usn/usn-628-1"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-9Q5F-7FH4-3HGX
Vulnerability from github – Published: 2022-05-02 03:44 – Updated: 2022-05-02 03:44PHP remote file inclusion vulnerability in koesubmit.php in the koeSubmit (com_koesubmit) component 1.0 for Mambo allows remote attackers to execute arbitrary PHP code via a URL in the mosConfig_absolute_path parameter.
{
"affected": [],
"aliases": [
"CVE-2009-3333"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2009-09-23T12:08:00Z",
"severity": "HIGH"
},
"details": "PHP remote file inclusion vulnerability in koesubmit.php in the koeSubmit (com_koesubmit) component 1.0 for Mambo allows remote attackers to execute arbitrary PHP code via a URL in the mosConfig_absolute_path parameter.",
"id": "GHSA-9q5f-7fh4-3hgx",
"modified": "2022-05-02T03:44:00Z",
"published": "2022-05-02T03:44:00Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2009-3333"
},
{
"type": "WEB",
"url": "http://www.exploit-db.com/exploits/9714"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/36447"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-9Q76-JPWF-Q3PQ
Vulnerability from github – Published: 2022-05-01 18:22 – Updated: 2022-05-01 18:22Multiple PHP remote file inclusion vulnerabilities in Mapos Bilder Galerie 1.0 allow remote attackers to execute arbitrary PHP code via a URL in the config[root_ordner] parameter to (1) index.php, (2) galerie.php, or (3) anzagien.php. NOTE: A later report states that 1.1 is also affected, but that the filename for vector 3 is anzeigen.php.
{
"affected": [],
"aliases": [
"CVE-2007-4328"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2007-08-14T00:17:00Z",
"severity": "MODERATE"
},
"details": "Multiple PHP remote file inclusion vulnerabilities in Mapos Bilder Galerie 1.0 allow remote attackers to execute arbitrary PHP code via a URL in the config[root_ordner] parameter to (1) index.php, (2) galerie.php, or (3) anzagien.php. NOTE: A later report states that 1.1 is also affected, but that the filename for vector 3 is anzeigen.php.",
"id": "GHSA-9q76-jpwf-q3pq",
"modified": "2022-05-01T18:22:42Z",
"published": "2022-05-01T18:22:42Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2007-4328"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/35923"
},
{
"type": "WEB",
"url": "http://osvdb.org/36455"
},
{
"type": "WEB",
"url": "http://osvdb.org/36456"
},
{
"type": "WEB",
"url": "http://osvdb.org/36457"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/26400"
},
{
"type": "WEB",
"url": "http://securityreason.com/securityalert/2999"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/475952/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/25256"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2007/2838"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-9Q7G-843W-JFX8
Vulnerability from github – Published: 2022-05-01 18:42 – Updated: 2022-05-01 18:42Direct static code injection vulnerability in wiki/index.php in Bitweaver 2.0.0 and earlier, when comments are enabled, allows remote attackers to inject arbitrary PHP code via an editcomments action.
{
"affected": [],
"aliases": [
"CVE-2007-6412"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2007-12-17T18:46:00Z",
"severity": "MODERATE"
},
"details": "Direct static code injection vulnerability in wiki/index.php in Bitweaver 2.0.0 and earlier, when comments are enabled, allows remote attackers to inject arbitrary PHP code via an editcomments action.",
"id": "GHSA-9q7g-843w-jfx8",
"modified": "2022-05-01T18:42:46Z",
"published": "2022-05-01T18:42:46Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2007-6412"
},
{
"type": "WEB",
"url": "http://osvdb.org/40148"
},
{
"type": "WEB",
"url": "http://securityreason.com/securityalert/3428"
},
{
"type": "WEB",
"url": "http://securityreason.com/securityalert/3454"
},
{
"type": "WEB",
"url": "http://www.hackerscenter.com/archive/view.asp?id=28129"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/484805/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/26801"
}
],
"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.