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.
8517 vulnerabilities reference this CWE, most recent first.
GHSA-8JF4-R324-J6M9
Vulnerability from github – Published: 2022-05-17 04:43 – Updated: 2022-05-17 04:43The directory manager in Caldera 9.20 allows remote attackers to conduct variable-injection attacks in the global scope via (1) the maindir_hotfolder parameter to dirmng/index.php, or an unspecified parameter to (2) PPD/index.php, (3) dirmng/docmd.php, or (4) dirmng/param.php.
{
"affected": [],
"aliases": [
"CVE-2014-2936"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2014-05-08T10:55:00Z",
"severity": "HIGH"
},
"details": "The directory manager in Caldera 9.20 allows remote attackers to conduct variable-injection attacks in the global scope via (1) the maindir_hotfolder parameter to dirmng/index.php, or an unspecified parameter to (2) PPD/index.php, (3) dirmng/docmd.php, or (4) dirmng/param.php.",
"id": "GHSA-8jf4-r324-j6m9",
"modified": "2022-05-17T04:43:49Z",
"published": "2022-05-17T04:43:49Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2014-2936"
},
{
"type": "WEB",
"url": "http://www.kb.cert.org/vuls/id/693092"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/67254"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-8JGR-FF55-G385
Vulnerability from github – Published: 2024-04-25 09:32 – Updated: 2026-04-28 21:34Improper Control of Generation of Code ('Code Injection') vulnerability in AlgolPlus Advanced Order Export For WooCommerce allows Code Injection.This issue affects Advanced Order Export For WooCommerce: from n/a through 3.4.4.
{
"affected": [],
"aliases": [
"CVE-2024-31266"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-04-25T09:15:07Z",
"severity": "CRITICAL"
},
"details": "Improper Control of Generation of Code (\u0027Code Injection\u0027) vulnerability in AlgolPlus Advanced Order Export For WooCommerce allows Code Injection.This issue affects Advanced Order Export For WooCommerce: from n/a through 3.4.4.",
"id": "GHSA-8jgr-ff55-g385",
"modified": "2026-04-28T21:34:57Z",
"published": "2024-04-25T09:32:09Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-31266"
},
{
"type": "WEB",
"url": "https://patchstack.com/database/vulnerability/woo-order-export-lite/wordpress-advanced-order-export-for-woocommerce-plugin-3-4-4-remote-code-execution-vulnerability?_s_id=cve"
}
],
"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-8JM2-G9M4-P7Q2
Vulnerability from github – Published: 2022-05-01 06:48 – Updated: 2022-05-01 06:48Microsoft Office 2003 SP1 and SP2, Office XP SP3, Office 2000 SP3, Office 2004 for Mac, and Office X for Mac do not properly parse record lengths, which allows remote attackers to execute arbitrary code via a malformed control in an Office document, aka "Microsoft Office Control Vulnerability."
{
"affected": [],
"aliases": [
"CVE-2006-1318"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2014-09-19T10:55:00Z",
"severity": "HIGH"
},
"details": "Microsoft Office 2003 SP1 and SP2, Office XP SP3, Office 2000 SP3, Office 2004 for Mac, and Office X for Mac do not properly parse record lengths, which allows remote attackers to execute arbitrary code via a malformed control in an Office document, aka \"Microsoft Office Control Vulnerability.\"",
"id": "GHSA-8jm2-g9m4-p7q2",
"modified": "2022-05-01T06:48:04Z",
"published": "2022-05-01T06:48:04Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2006-1318"
},
{
"type": "WEB",
"url": "https://docs.microsoft.com/en-us/security-updates/securitybulletins/2006/ms06-038"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-8JRF-4F89-74JX
Vulnerability from github – Published: 2024-11-17 15:30 – Updated: 2024-11-17 15:30A flaw was found in GNOME Maps, which is vulnerable to a code injection attack via its service.json configuration file. If the configuration file is malicious, it may execute arbitrary code.
{
"affected": [],
"aliases": [
"CVE-2023-43091"
],
"database_specific": {
"cwe_ids": [
"CWE-79",
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-11-17T13:15:14Z",
"severity": "CRITICAL"
},
"details": "A flaw was found in GNOME Maps, which is vulnerable to a code injection attack via its service.json configuration file. If the configuration file is malicious, it may execute arbitrary code.",
"id": "GHSA-8jrf-4f89-74jx",
"modified": "2024-11-17T15:30:45Z",
"published": "2024-11-17T15:30:45Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-43091"
},
{
"type": "WEB",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=2239091"
},
{
"type": "WEB",
"url": "https://gitlab.gnome.org/GNOME/gnome-maps/-/commit/d26cd774d524404ef7784e6808f551de83de4bea"
},
{
"type": "WEB",
"url": "https://gitlab.gnome.org/GNOME/gnome-maps/-/issues/588"
}
],
"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-8JVR-VH7G-F8GX
Vulnerability from github – Published: 2026-02-05 06:31 – Updated: 2026-07-14 12:31A discrepancy between how Go and C/C++ comments were parsed allowed for code smuggling into the resulting cgo binary.
{
"affected": [],
"aliases": [
"CVE-2025-61732"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-02-05T04:15:50Z",
"severity": "HIGH"
},
"details": "A discrepancy between how Go and C/C++ comments were parsed allowed for code smuggling into the resulting cgo binary.",
"id": "GHSA-8jvr-vh7g-f8gx",
"modified": "2026-07-14T12:31:06Z",
"published": "2026-02-05T06:31:23Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-61732"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:10104"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:3559"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:3855"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:4434"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:5133"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:5878"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:5907"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:5948"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:5950"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:5952"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:7291"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:7385"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:8448"
},
{
"type": "WEB",
"url": "https://access.redhat.com/security/cve/CVE-2025-61732"
},
{
"type": "WEB",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=2437016"
},
{
"type": "WEB",
"url": "https://go.dev/cl/734220"
},
{
"type": "WEB",
"url": "https://go.dev/issue/76697"
},
{
"type": "WEB",
"url": "https://groups.google.com/g/golang-announce/c/K09ubi9FQFk"
},
{
"type": "WEB",
"url": "https://pkg.go.dev/vuln/GO-2026-4433"
},
{
"type": "WEB",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-61732.json"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:12282"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:14100"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:14774"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:15091"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:17598"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:21691"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:2706"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:2708"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:2709"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:2844"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:3192"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:3193"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:3468"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:3469"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:3470"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:3471"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:3472"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:3473"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:3489"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:3556"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-8JW2-7QP4-V2JJ
Vulnerability from github – Published: 2026-07-13 21:31 – Updated: 2026-07-13 21:31ServiceNow has addressed a remote code execution vulnerability that was identified in the ServiceNow AI platform. This vulnerability could enable an unauthenticated user, in certain circumstances, to execute code within the ServiceNow platform.
ServiceNow addressed this vulnerability by deploying a security update to hosted instances. Relevant security updates have also been provided to ServiceNow self-hosted customers and partners.
Further, the vulnerability is addressed in the listed patches and family releases, which have been made available to hosted and self-hosted customers, as well as partners. We are not currently aware of exploitation against ServiceNow instances.
We recommend customers promptly apply appropriate updates or upgrade to a patched release if they have not already done so.
{
"affected": [],
"aliases": [
"CVE-2026-6875"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-07-13T19:17:36Z",
"severity": "CRITICAL"
},
"details": "ServiceNow has addressed a remote code execution vulnerability that was identified in the ServiceNow AI platform. This vulnerability could enable an unauthenticated user, in certain circumstances, to execute code within the ServiceNow platform.\n\n\nServiceNow addressed this vulnerability by deploying a security update to hosted instances. Relevant security updates have also been provided to ServiceNow self-hosted customers and partners.\n\n\n\n\nFurther, the vulnerability is addressed in the listed patches and family releases, which have been made available to hosted and self-hosted customers, as well as partners. We are not currently aware of exploitation against ServiceNow instances.\n\n\n\n\nWe recommend customers promptly apply appropriate updates or upgrade to a patched release if they have not already done so.",
"id": "GHSA-8jw2-7qp4-v2jj",
"modified": "2026-07-13T21:31:24Z",
"published": "2026-07-13T21:31:24Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-6875"
},
{
"type": "WEB",
"url": "https://support.servicenow.com/kb?id=kb_article_view\u0026sysparm_article=KB3137947"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/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-8JWM-2GRR-52WM
Vulnerability from github – Published: 2022-05-01 06:38 – Updated: 2022-05-01 06:38PHP remote file inclusion vulnerability in htmltonuke.php in the htmltonuke 2.0 alpha, and possibly other versions, module for PHP-Nuke allows remote attackers to execute arbitrary PHP code via a URL in the filnavn parameter.
{
"affected": [],
"aliases": [
"CVE-2006-0308"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2006-01-19T00:03:00Z",
"severity": "HIGH"
},
"details": "PHP remote file inclusion vulnerability in htmltonuke.php in the htmltonuke 2.0 alpha, and possibly other versions, module for PHP-Nuke allows remote attackers to execute arbitrary PHP code via a URL in the filnavn parameter.",
"id": "GHSA-8jwm-2grr-52wm",
"modified": "2022-05-01T06:38:42Z",
"published": "2022-05-01T06:38:42Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2006-0308"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/33092"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/3524"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/16282"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-8JX3-M8C9-XWM8
Vulnerability from github – Published: 2022-05-17 05:27 – Updated: 2024-10-10 15:30ESRI ArcMap 9 and ArcGIS 10.0.2.3200 and earlier does not properly prompt users before executing embedded VBA macros, which allows user-assisted remote attackers to execute arbitrary VBA code via a crafted map (.mxd) file.
{
"affected": [],
"aliases": [
"CVE-2012-1661"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2012-07-12T21:55:00Z",
"severity": "HIGH"
},
"details": "ESRI ArcMap 9 and ArcGIS 10.0.2.3200 and earlier does not properly prompt users before executing embedded VBA macros, which allows user-assisted remote attackers to execute arbitrary VBA code via a crafted map (.mxd) file.",
"id": "GHSA-8jx3-m8c9-xwm8",
"modified": "2024-10-10T15:30:30Z",
"published": "2022-05-17T05:27:50Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2012-1661"
},
{
"type": "WEB",
"url": "http://packetstormsecurity.org/files/113644/ESRI-ArcMap-Arbitrary-Code-Execution.html"
},
{
"type": "WEB",
"url": "http://www.cs.umb.edu/~joecohen/exploits/CVE-2012-1661"
},
{
"type": "WEB",
"url": "http://www.exploit-db.com/exploits/19138"
},
{
"type": "WEB",
"url": "http://www.osvdb.org/82986"
},
{
"type": "WEB",
"url": "http://www.securitytracker.com/id?1027170"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-8JXQ-75RW-FHJ9
Vulnerability from github – Published: 2018-07-12 20:29 – Updated: 2024-09-20 17:17io/mongo/parser.py in Eve (aka pyeve) before 0.7.5 allows remote attackers to execute arbitrary code via Code Injection in the where parameter.
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "eve"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.7.5"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2018-8097"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2020-06-16T21:25:51Z",
"nvd_published_at": null,
"severity": "CRITICAL"
},
"details": "`io/mongo/parser.py` in Eve (aka pyeve) before 0.7.5 allows remote attackers to execute arbitrary code via Code Injection in the `where` parameter.",
"id": "GHSA-8jxq-75rw-fhj9",
"modified": "2024-09-20T17:17:54Z",
"published": "2018-07-12T20:29:35Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2018-8097"
},
{
"type": "WEB",
"url": "https://github.com/pyeve/eve/issues/1101"
},
{
"type": "WEB",
"url": "https://github.com/pyeve/eve/commit/f8f7019ffdf9b4e05faf95e1f04e204aa4c91f98"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-8jxq-75rw-fhj9"
},
{
"type": "PACKAGE",
"url": "https://github.com/pyeve/eve"
},
{
"type": "WEB",
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/eve/PYSEC-2018-8.yaml"
}
],
"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"
},
{
"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": "Eve allows execution of arbitrary code"
}
GHSA-8JXX-3X82-42H5
Vulnerability from github – Published: 2022-05-01 23:30 – Updated: 2022-05-01 23:30Multiple PHP remote file inclusion vulnerabilities in Lama Software allow remote attackers to execute arbitrary PHP code via a URL in the MY_CONF[classRoot] parameter to (1) inc.steps.access_error.php, (2) inc.steps.check_login.php, or (3) inc.steps.init_system.php in admin/functions/.
{
"affected": [],
"aliases": [
"CVE-2008-0423"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2008-01-23T22:00:00Z",
"severity": "MODERATE"
},
"details": "Multiple PHP remote file inclusion vulnerabilities in Lama Software allow remote attackers to execute arbitrary PHP code via a URL in the MY_CONF[classRoot] parameter to (1) inc.steps.access_error.php, (2) inc.steps.check_login.php, or (3) inc.steps.init_system.php in admin/functions/.",
"id": "GHSA-8jxx-3x82-42h5",
"modified": "2022-05-01T23:30:09Z",
"published": "2022-05-01T23:30:09Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2008-0423"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/39821"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/4955"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/28442"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/27380"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2008/0230"
}
],
"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.