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.
8301 vulnerabilities reference this CWE, most recent first.
GHSA-G4P4-G8HM-9PRR
Vulnerability from github – Published: 2022-05-01 18:36 – Updated: 2022-05-01 18:36Direct static code injection vulnerability in the download module in Flatnuke 3 allows remote authenticated administrators to inject arbitrary PHP code into a description.it.php file in a subdirectory of Download/ by saving a description and setting fneditmode to 1. NOTE: unauthenticated remote attackers can exploit this by leveraging a cookie manipulation issue.
{
"affected": [],
"aliases": [
"CVE-2007-5772"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2007-11-01T16:46:00Z",
"severity": "MODERATE"
},
"details": "Direct static code injection vulnerability in the download module in Flatnuke 3 allows remote authenticated administrators to inject arbitrary PHP code into a description.it.php file in a subdirectory of Download/ by saving a description and setting fneditmode to 1. NOTE: unauthenticated remote attackers can exploit this by leveraging a cookie manipulation issue.",
"id": "GHSA-g4p4-g8hm-9prr",
"modified": "2022-05-01T18:36:38Z",
"published": "2022-05-01T18:36:38Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2007-5772"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/4562"
},
{
"type": "WEB",
"url": "http://osvdb.org/43636"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/482774/100/0/threaded"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-G4PF-3JVQ-2GCW
Vulnerability from github – Published: 2024-06-05 15:08 – Updated: 2024-06-05 15:08TYPO3 uses the package swiftmailer/swiftmailer for mail actions. This package is known to be vulnerable to Remote Code Execution.
{
"affected": [
{
"package": {
"ecosystem": "Packagist",
"name": "typo3/cms"
},
"ranges": [
{
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.2.30"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"package": {
"ecosystem": "Packagist",
"name": "typo3/cms"
},
"ranges": [
{
"events": [
{
"introduced": "7.6.0"
},
{
"fixed": "7.6.15"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"package": {
"ecosystem": "Packagist",
"name": "typo3/cms"
},
"ranges": [
{
"events": [
{
"introduced": "8.0.0"
},
{
"fixed": "8.5.1"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2024-06-05T15:08:03Z",
"nvd_published_at": null,
"severity": "HIGH"
},
"details": "TYPO3 uses the package swiftmailer/swiftmailer for mail actions. This package is known to be vulnerable to Remote Code Execution.",
"id": "GHSA-g4pf-3jvq-2gcw",
"modified": "2024-06-05T15:08:03Z",
"published": "2024-06-05T15:08:03Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms/2017-01-03-1.yaml"
},
{
"type": "PACKAGE",
"url": "https://github.com/TYPO3/typo3"
},
{
"type": "WEB",
"url": "https://typo3.org/security/advisory/typo3-core-sa-2017-001"
}
],
"schema_version": "1.4.0",
"severity": [],
"summary": "TYPO3 Remote Code Execution in third party library swiftmailer"
}
GHSA-G4PW-3X2F-HXMX
Vulnerability from github – Published: 2022-05-17 00:45 – Updated: 2022-05-17 00:45Multiple eval injection vulnerabilities in itpm_estimate.php in Yoxel 1.23beta and earlier allow remote authenticated users to execute arbitrary PHP code via the proj_id parameter.
{
"affected": [],
"aliases": [
"CVE-2008-5071"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2008-11-14T18:07:00Z",
"severity": "HIGH"
},
"details": "Multiple eval injection vulnerabilities in itpm_estimate.php in Yoxel 1.23beta and earlier allow remote authenticated users to execute arbitrary PHP code via the proj_id parameter.",
"id": "GHSA-g4pw-3x2f-hxmx",
"modified": "2022-05-17T00:45:28Z",
"published": "2022-05-17T00:45:28Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2008-5071"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/45488"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/6606"
},
{
"type": "WEB",
"url": "http://securityreason.com/securityalert/4591"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/31448"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-G4R7-86GM-PGQC
Vulnerability from github – Published: 2024-09-18 15:30 – Updated: 2024-09-18 17:39Insecure deserialization in sqlitedict up to v2.1.0 allows attackers to execute arbitrary code.
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "sqlitedict"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "2.1.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2024-35515"
],
"database_specific": {
"cwe_ids": [
"CWE-502",
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2024-09-18T17:39:11Z",
"nvd_published_at": "2024-09-18T15:15:14Z",
"severity": "HIGH"
},
"details": "Insecure deserialization in sqlitedict up to v2.1.0 allows attackers to execute arbitrary code.",
"id": "GHSA-g4r7-86gm-pgqc",
"modified": "2024-09-18T17:39:11Z",
"published": "2024-09-18T15:30:52Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-35515"
},
{
"type": "WEB",
"url": "https://github.com/piskvorky/sqlitedict/issues/174"
},
{
"type": "PACKAGE",
"url": "https://github.com/piskvorky/sqlitedict"
},
{
"type": "WEB",
"url": "https://github.com/piskvorky/sqlitedict?tab=readme-ov-file#serialization"
},
{
"type": "WEB",
"url": "https://wha13.github.io/2024/06/13/mfcve"
}
],
"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"
},
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
"type": "CVSS_V4"
}
],
"summary": "sqlitedict insecure deserialization vulnerability"
}
GHSA-G4WW-J67Q-3J45
Vulnerability from github – Published: 2026-04-15 18:31 – Updated: 2026-04-16 15:31Slah CMS v1.5.0 and below was discovered to contain a remote code execution (RCE) vulnerability in the session() function at config.php. This vulnerability is exploitable via a crafted input.
{
"affected": [],
"aliases": [
"CVE-2026-30993"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-04-15T18:16:59Z",
"severity": "CRITICAL"
},
"details": "Slah CMS v1.5.0 and below was discovered to contain a remote code execution (RCE) vulnerability in the session() function at config.php. This vulnerability is exploitable via a crafted input.",
"id": "GHSA-g4ww-j67q-3j45",
"modified": "2026-04-16T15:31:32Z",
"published": "2026-04-15T18:31:58Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-30993"
},
{
"type": "WEB",
"url": "https://cve.joaopaulodeoliveira.dev/cve.php/published/CVE-2026-30993"
},
{
"type": "WEB",
"url": "https://cve.joaopaulodeoliveira.dev/cve.php/reserved/slah-informatica-eval-injection-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"
}
]
}
GHSA-G4XW-JXRG-5F6M
Vulnerability from github – Published: 2026-02-12 03:31 – Updated: 2026-02-24 14:20The serialize function used to compile MDX in next-mdx-remote is vulnerable to arbitrary code execution due to insufficient sanitization of MDX content.
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "next-mdx-remote"
},
"ranges": [
{
"events": [
{
"introduced": "4.3.0"
},
{
"fixed": "6.0.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2026-0969"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2026-02-24T14:20:55Z",
"nvd_published_at": "2026-02-12T03:15:46Z",
"severity": "HIGH"
},
"details": "The serialize function used to compile MDX in next-mdx-remote is vulnerable to arbitrary code execution due to insufficient sanitization of MDX content.",
"id": "GHSA-g4xw-jxrg-5f6m",
"modified": "2026-02-24T14:20:56Z",
"published": "2026-02-12T03:31:01Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-0969"
},
{
"type": "WEB",
"url": "https://github.com/hashicorp/next-mdx-remote/commit/4d527fdcaed911b87f427d0b4d3c711e817fa4b3"
},
{
"type": "WEB",
"url": "https://discuss.hashicorp.com/t/hcsec-2026-01-arbitrary-code-execution-in-react-server-side-rendering-of-untrusted-mdx-content/77155"
},
{
"type": "PACKAGE",
"url": "https://github.com/hashicorp/next-mdx-remote"
},
{
"type": "WEB",
"url": "https://github.com/hashicorp/next-mdx-remote/releases/tag/v6.0.0"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "next-mdx-remote affected by arbitrary code execution in React server-side rendering of untrusted MDX content"
}
GHSA-G539-5HV9-9M5X
Vulnerability from github – Published: 2022-05-02 03:27 – Updated: 2025-04-09 04:10WebKit in Apple Safari before 4.0, iPhone OS 1.0 through 2.2.1, and iPhone OS for iPod touch 1.1 through 2.2.1 does not initialize a pointer during handling of a Cascading Style Sheets (CSS) attr function call with a large numerical argument, which allows remote attackers to execute arbitrary code or cause a denial of service (memory corruption and application crash) via a crafted HTML document.
{
"affected": [],
"aliases": [
"CVE-2009-1698"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2009-06-10T18:00:00Z",
"severity": "HIGH"
},
"details": "WebKit in Apple Safari before 4.0, iPhone OS 1.0 through 2.2.1, and iPhone OS for iPod touch 1.1 through 2.2.1 does not initialize a pointer during handling of a Cascading Style Sheets (CSS) attr function call with a large numerical argument, which allows remote attackers to execute arbitrary code or cause a denial of service (memory corruption and application crash) via a crafted HTML document.",
"id": "GHSA-g539-5hv9-9m5x",
"modified": "2025-04-09T04:10:43Z",
"published": "2022-05-02T03:27:34Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2009-1698"
},
{
"type": "WEB",
"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9484"
},
{
"type": "WEB",
"url": "https://www.redhat.com/archives/fedora-package-announce/2009-July/msg01177.html"
},
{
"type": "WEB",
"url": "https://www.redhat.com/archives/fedora-package-announce/2009-July/msg01196.html"
},
{
"type": "WEB",
"url": "https://www.redhat.com/archives/fedora-package-announce/2009-July/msg01199.html"
},
{
"type": "WEB",
"url": "https://www.redhat.com/archives/fedora-package-announce/2009-July/msg01200.html"
},
{
"type": "WEB",
"url": "http://blog.zoller.lu/2009/05/advisory-apple-safari-remote-code.html"
},
{
"type": "WEB",
"url": "http://lists.apple.com/archives/security-announce/2009/Jun/msg00005.html"
},
{
"type": "WEB",
"url": "http://lists.apple.com/archives/security-announce/2009/jun/msg00002.html"
},
{
"type": "WEB",
"url": "http://lists.opensuse.org/opensuse-security-announce/2011-01/msg00006.html"
},
{
"type": "WEB",
"url": "http://osvdb.org/55006"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/35379"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/35588"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/36057"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/36062"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/36790"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/37746"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/43068"
},
{
"type": "WEB",
"url": "http://securitytracker.com/id?1022345"
},
{
"type": "WEB",
"url": "http://support.apple.com/kb/HT3613"
},
{
"type": "WEB",
"url": "http://support.apple.com/kb/HT3639"
},
{
"type": "WEB",
"url": "http://www.debian.org/security/2009/dsa-1950"
},
{
"type": "WEB",
"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2009:330"
},
{
"type": "WEB",
"url": "http://www.redhat.com/support/errata/RHSA-2009-1128.html"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/504173/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/504295/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/35260"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/35318"
},
{
"type": "WEB",
"url": "http://www.ubuntu.com/usn/USN-822-1"
},
{
"type": "WEB",
"url": "http://www.ubuntu.com/usn/USN-836-1"
},
{
"type": "WEB",
"url": "http://www.ubuntu.com/usn/USN-857-1"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2009/1522"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2009/1621"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2011/0212"
},
{
"type": "WEB",
"url": "http://www.zerodayinitiative.com/advisories/ZDI-09-032"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-G54P-XMG7-P8P9
Vulnerability from github – Published: 2022-05-01 23:29 – Updated: 2022-05-01 23:29PHP remote file inclusion vulnerability in inc/linkbar.php in Small Axe Weblog 0.3.1 allows remote attackers to execute arbitrary PHP code via a URL in the cfile parameter.
{
"affected": [],
"aliases": [
"CVE-2008-0376"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2008-01-22T20:00:00Z",
"severity": "MODERATE"
},
"details": "PHP remote file inclusion vulnerability in inc/linkbar.php in Small Axe Weblog 0.3.1 allows remote attackers to execute arbitrary PHP code via a URL in the cfile parameter.",
"id": "GHSA-g54p-xmg7-p8p9",
"modified": "2022-05-01T23:29:44Z",
"published": "2022-05-01T23:29:44Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2008-0376"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/39765"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/4937"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/28568"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/27345"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-G56W-CWG4-HXX9
Vulnerability from github – Published: 2022-11-22 21:30 – Updated: 2022-11-26 20:18A vulnerability was found in quarkus. This security flaw happens in Dev UI Config Editor which is vulnerable to drive-by localhost attacks leading to remote code execution.
{
"affected": [
{
"package": {
"ecosystem": "Maven",
"name": "io.quarkus:quarkus-vertx-http-deployment"
},
"ranges": [
{
"events": [
{
"introduced": "2.14.0"
},
{
"fixed": "2.14.2.Final"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"package": {
"ecosystem": "Maven",
"name": "io.quarkus:quarkus-vertx-http-deployment"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.13.5.Final"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2022-4116"
],
"database_specific": {
"cwe_ids": [
"CWE-74",
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2022-11-23T17:42:15Z",
"nvd_published_at": "2022-11-22T19:15:00Z",
"severity": "CRITICAL"
},
"details": "A vulnerability was found in quarkus. This security flaw happens in Dev UI Config Editor which is vulnerable to drive-by localhost attacks leading to remote code execution.",
"id": "GHSA-g56w-cwg4-hxx9",
"modified": "2022-11-26T20:18:38Z",
"published": "2022-11-22T21:30:17Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-4116"
},
{
"type": "WEB",
"url": "https://access.redhat.com/security/cve/CVE-2022-4116"
},
{
"type": "WEB",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=2144748"
},
{
"type": "PACKAGE",
"url": "https://github.com/quarkusio/quarkus"
},
{
"type": "WEB",
"url": "https://github.com/quarkusio/quarkus/discussions/29527"
},
{
"type": "WEB",
"url": "https://github.com/quarkusio/quarkus/discussions/29527#discussioncomment-4387809"
}
],
"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"
}
],
"summary": "Code injection in quarkus dev ui config editor"
}
GHSA-G599-HV4Q-QR6W
Vulnerability from github – Published: 2022-07-31 00:01 – Updated: 2022-08-11 00:00EllieGrid Android Application version 3.4.1 is vulnerable to Code Injection. The application appears to evaluate user input as code (remote).
{
"affected": [],
"aliases": [
"CVE-2022-30083"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2022-07-30T00:15:00Z",
"severity": "CRITICAL"
},
"details": "EllieGrid Android Application version 3.4.1 is vulnerable to Code Injection. The application appears to evaluate user input as code (remote).",
"id": "GHSA-g599-hv4q-qr6w",
"modified": "2022-08-11T00:00:43Z",
"published": "2022-07-31T00:01:00Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-30083"
},
{
"type": "WEB",
"url": "https://portswigger.net/support/using-burp-to-test-for-code-injection-vulnerabilities"
}
],
"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"
}
]
}
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.