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.
9721 vulnerabilities reference this CWE, most recent first.
GHSA-HM3P-P79C-PH3C
Vulnerability from github – Published: 2022-05-02 03:50 – Updated: 2022-05-02 03:50Mozilla Firefox before 3.0.16 and 3.5.x before 3.5.6, and SeaMonkey before 2.0.1, allows remote attackers to execute arbitrary JavaScript with chrome privileges by leveraging a reference to a chrome window from a content window, related to the window.opener property.
{
"affected": [],
"aliases": [
"CVE-2009-3986"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2009-12-17T17:30:00Z",
"severity": "HIGH"
},
"details": "Mozilla Firefox before 3.0.16 and 3.5.x before 3.5.6, and SeaMonkey before 2.0.1, allows remote attackers to execute arbitrary JavaScript with chrome privileges by leveraging a reference to a chrome window from a content window, related to the window.opener property.",
"id": "GHSA-hm3p-p79c-ph3c",
"modified": "2022-05-02T03:50:33Z",
"published": "2022-05-02T03:50:32Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2009-3986"
},
{
"type": "WEB",
"url": "https://bugzilla.mozilla.org/show_bug.cgi?id=522430"
},
{
"type": "WEB",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=546724"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/54803"
},
{
"type": "WEB",
"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11568"
},
{
"type": "WEB",
"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8489"
},
{
"type": "WEB",
"url": "https://rhn.redhat.com/errata/RHSA-2009-1674.html"
},
{
"type": "WEB",
"url": "https://www.redhat.com/archives/fedora-package-announce/2009-December/msg00995.html"
},
{
"type": "WEB",
"url": "https://www.redhat.com/archives/fedora-package-announce/2009-December/msg01034.html"
},
{
"type": "WEB",
"url": "https://www.redhat.com/archives/fedora-package-announce/2009-December/msg01041.html"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/37699"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/37704"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/37785"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/37813"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/37856"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/37881"
},
{
"type": "WEB",
"url": "http://securitytracker.com/id?1023344"
},
{
"type": "WEB",
"url": "http://securitytracker.com/id?1023345"
},
{
"type": "WEB",
"url": "http://www.debian.org/security/2009/dsa-1956"
},
{
"type": "WEB",
"url": "http://www.mozilla.org/security/announce/2009/mfsa2009-70.html"
},
{
"type": "WEB",
"url": "http://www.novell.com/linux/security/advisories/2009_63_firefox.html"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/37349"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/37365"
},
{
"type": "WEB",
"url": "http://www.ubuntu.com/usn/USN-873-1"
},
{
"type": "WEB",
"url": "http://www.ubuntu.com/usn/USN-874-1"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2009/3547"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-HM53-MJMF-W6V4
Vulnerability from github – Published: 2026-10-10 06:30 – Updated: 2026-10-10 06:30The Fastcache by Host.it plugin for WordPress is vulnerable to Code Injection in all versions up to, and including, 1.7.4 via the fastcache_settings[cache_cookie_exclude][] parameter. This is due to the plugin registering the cache_cookie_exclude setting via register_setting() without a sanitize_callback, while buildSiteHtaccessRules() applies only trim() to each cookie value before interpolating it directly into an Apache RewriteCond line — a normalization that strips surrounding whitespace but leaves embedded newlines intact, allowing an attacker to break out of the capture group and append arbitrary directives. This makes it possible for authenticated attackers, with administrator-level access and above, to inject arbitrary Apache directives into the site's .htaccess file via file_put_contents(), enabling server-level configuration changes such as setting php_value auto_prepend_file to execute attacker-controlled PHP code on every request.
{
"affected": [],
"aliases": [
"CVE-2026-104021"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-10-10T05:16:39Z",
"severity": "HIGH"
},
"details": "The Fastcache by Host.it plugin for WordPress is vulnerable to Code Injection in all versions up to, and including, 1.7.4 via the `fastcache_settings[cache_cookie_exclude][]` parameter. This is due to the plugin registering the `cache_cookie_exclude` setting via `register_setting()` without a `sanitize_callback`, while `buildSiteHtaccessRules()` applies only `trim()` to each cookie value before interpolating it directly into an Apache `RewriteCond` line \u2014 a normalization that strips surrounding whitespace but leaves embedded newlines intact, allowing an attacker to break out of the capture group and append arbitrary directives. This makes it possible for authenticated attackers, with administrator-level access and above, to inject arbitrary Apache directives into the site\u0027s `.htaccess` file via `file_put_contents()`, enabling server-level configuration changes such as setting `php_value auto_prepend_file` to execute attacker-controlled PHP code on every request.",
"id": "GHSA-hm53-mjmf-w6v4",
"modified": "2026-10-10T06:30:58Z",
"published": "2026-10-10T06:30:57Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-104021"
},
{
"type": "WEB",
"url": "https://plugins.trac.wordpress.org/browser/fastcache-by-host-it/tags/1.7.4/src/Admin.php#L73"
},
{
"type": "WEB",
"url": "https://plugins.trac.wordpress.org/browser/fastcache-by-host-it/tags/1.7.4/src/Core/Platform/Utility.php#L420"
},
{
"type": "WEB",
"url": "https://plugins.trac.wordpress.org/browser/fastcache-by-host-it/tags/1.7.4/src/Core/Platform/Utility.php#L521"
},
{
"type": "WEB",
"url": "https://plugins.trac.wordpress.org/browser/fastcache-by-host-it/tags/1.7.4/src/Core/Platform/Utility.php#L545"
},
{
"type": "WEB",
"url": "https://plugins.trac.wordpress.org/browser/fastcache-by-host-it/tags/1.7.4/src/Dispatcher.php#L480"
},
{
"type": "WEB",
"url": "https://plugins.trac.wordpress.org/changeset?reponame=\u0026old=3735944%40fastcache-by-host-it\u0026new=3735944%40fastcache-by-host-it"
},
{
"type": "WEB",
"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/d72d7a21-0bea-4a32-b92b-326f47998b80?source=cve"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-HM63-8HPC-WC5J
Vulnerability from github – Published: 2022-05-17 01:52 – Updated: 2022-05-17 01:52PHP remote file inclusion vulnerability in actions.php in the Allwebmenus plugin 1.1.3 for WordPress allows remote attackers to execute arbitrary PHP code via a URL in the abspath parameter.
{
"affected": [],
"aliases": [
"CVE-2011-3981"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2011-10-04T10:55:00Z",
"severity": "HIGH"
},
"details": "PHP remote file inclusion vulnerability in actions.php in the Allwebmenus plugin 1.1.3 for WordPress allows remote attackers to execute arbitrary PHP code via a URL in the abspath parameter.",
"id": "GHSA-hm63-8hpc-wc5j",
"modified": "2022-05-17T01:52:35Z",
"published": "2022-05-17T01:52:35Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2011-3981"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/69929"
},
{
"type": "WEB",
"url": "http://plugins.trac.wordpress.org/changeset/438959/allwebmenus-wordpress-menu-plugin/trunk/actions.php?old=408304\u0026old_path=allwebmenus-wordpress-menu-plugin%2Ftrunk%2Factions.php"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/46068"
},
{
"type": "WEB",
"url": "http://www.exploit-db.com/exploits/17861"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/49685"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-HM6H-MCGV-H2X8
Vulnerability from github – Published: 2026-05-21 12:31 – Updated: 2026-05-21 12:31Insufficient Validation of Member Zone Data May Cause Catalog Zone Transfer to Fail
{
"affected": [],
"aliases": [
"CVE-2026-42396"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-05-21T10:16:25Z",
"severity": "MODERATE"
},
"details": "Insufficient Validation of Member Zone Data May Cause Catalog Zone Transfer to Fail",
"id": "GHSA-hm6h-mcgv-h2x8",
"modified": "2026-05-21T12:31:45Z",
"published": "2026-05-21T12:31:45Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-42396"
},
{
"type": "WEB",
"url": "https://docs.powerdns.com/authoritative/security-advisories/powerdns-advisory-powerdns-2026-06.html"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-HM7F-5JXX-CWVG
Vulnerability from github – Published: 2022-05-13 01:54 – Updated: 2022-05-13 01:54mod_perl 2.0 through 2.0.10 allows attackers to execute arbitrary Perl code by placing it in a user-owned .htaccess file, because (contrary to the documentation) there is no configuration option that permits Perl code for the administrator's control of HTTP request processing without also permitting unprivileged users to run Perl code in the context of the user account that runs Apache HTTP Server processes.
{
"affected": [],
"aliases": [
"CVE-2011-2767"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2018-08-26T16:29:00Z",
"severity": "CRITICAL"
},
"details": "mod_perl 2.0 through 2.0.10 allows attackers to execute arbitrary Perl code by placing it in a user-owned .htaccess file, because (contrary to the documentation) there is no configuration option that permits Perl code for the administrator\u0027s control of HTTP request processing without also permitting unprivileged users to run Perl code in the context of the user account that runs Apache HTTP Server processes.",
"id": "GHSA-hm7f-5jxx-cwvg",
"modified": "2022-05-13T01:54:08Z",
"published": "2022-05-13T01:54:08Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2011-2767"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2018:2737"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2018:2825"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2018:2826"
},
{
"type": "WEB",
"url": "https://bugs.debian.org/644169"
},
{
"type": "WEB",
"url": "https://lists.apache.org/thread.html/c8ebe8aad147a3ad2e7b0e8b2da45263171ab5d0fc7f8c100feaa94d@%3Cmodperl-cvs.perl.apache.org%3E"
},
{
"type": "WEB",
"url": "https://lists.debian.org/debian-lts-announce/2018/09/msg00018.html"
},
{
"type": "WEB",
"url": "https://mail-archives.apache.org/mod_mbox/perl-modperl/201110.mbox/raw/%3C20111004084343.GA21290%40ktnx.net%3E"
},
{
"type": "WEB",
"url": "https://usn.ubuntu.com/3825-1"
},
{
"type": "WEB",
"url": "https://usn.ubuntu.com/3825-2"
},
{
"type": "WEB",
"url": "http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00063.html"
},
{
"type": "WEB",
"url": "http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00065.html"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/105195"
}
],
"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-HM7G-WJ92-RJ6W
Vulnerability from github – Published: 2023-11-03 00:30 – Updated: 2024-09-06 15:32An issue in lmxcms v.1.41 allows a remote attacker to execute arbitrary code via a crafted script to the admin.php file.
{
"affected": [],
"aliases": [
"CVE-2023-46958"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2023-11-02T22:15:09Z",
"severity": "CRITICAL"
},
"details": "An issue in lmxcms v.1.41 allows a remote attacker to execute arbitrary code via a crafted script to the admin.php file.",
"id": "GHSA-hm7g-wj92-rj6w",
"modified": "2024-09-06T15:32:54Z",
"published": "2023-11-03T00:30:26Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-46958"
},
{
"type": "WEB",
"url": "https://gist.github.com/durian5201314/6507d1057c62f4bf93e740a631617434"
},
{
"type": "WEB",
"url": "http://lmxcms.com"
},
{
"type": "WEB",
"url": "http://www.lmxcms.com"
}
],
"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-HM7V-P5F8-CV9H
Vulnerability from github – Published: 2022-05-17 04:48 – Updated: 2025-03-31 12:30Multiple incomplete blacklist vulnerabilities in (1) import.php and (2) ajax/uploadimport.php in apps/contacts/ in ownCloud before 4.0.13 and 4.5.x before 4.5.8 allow remote authenticated users to execute arbitrary PHP code by uploading a .htaccess file.
{
"affected": [],
"aliases": [
"CVE-2013-1850"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2014-03-14T16:55:00Z",
"severity": "MODERATE"
},
"details": "Multiple incomplete blacklist vulnerabilities in (1) import.php and (2) ajax/uploadimport.php in apps/contacts/ in ownCloud before 4.0.13 and 4.5.x before 4.5.8 allow remote authenticated users to execute arbitrary PHP code by uploading a .htaccess file.",
"id": "GHSA-hm7v-p5f8-cv9h",
"modified": "2025-03-31T12:30:34Z",
"published": "2022-05-17T04:48:46Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2013-1850"
},
{
"type": "WEB",
"url": "http://owncloud.org/about/security/advisories/oC-SA-2013-009"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-HM9P-F2CP-2W64
Vulnerability from github – Published: 2022-01-27 00:00 – Updated: 2026-07-05 03:30jpress v 4.2.0 is vulnerable to RCE via io.jpress.module.product.ProductNotifyKit#doSendEmail. The admin panel provides a function through which attackers can edit the email templates and inject some malicious code.
{
"affected": [],
"aliases": [
"CVE-2021-46114"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2022-01-26T19:15:00Z",
"severity": "HIGH"
},
"details": "jpress v 4.2.0 is vulnerable to RCE via io.jpress.module.product.ProductNotifyKit#doSendEmail. The admin panel provides a function through which attackers can edit the email templates and inject some malicious code.",
"id": "GHSA-hm9p-f2cp-2w64",
"modified": "2026-07-05T03:30:44Z",
"published": "2022-01-27T00:00:54Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-46114"
},
{
"type": "WEB",
"url": "https://github.com/JPressProjects/jpress/issues/172"
},
{
"type": "WEB",
"url": "https://github.com/JPressProjects/jpress"
},
{
"type": "WEB",
"url": "http://jpress.com"
}
],
"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"
}
]
}
GHSA-HMCW-CRCX-V3Q6
Vulnerability from github – Published: 2022-05-01 18:43 – Updated: 2022-05-01 18:43Anon Proxy Server 0.100, and probably 0.101, allows remote attackers to execute arbitrary commands via shell metacharacters in (1) the host parameter to diagdns.php, and (2) the host parameter and possibly (3) the port parameter to diagconnect.php, a different vulnerability than CVE-2007-6460.
{
"affected": [],
"aliases": [
"CVE-2007-6459"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2007-12-20T00:46:00Z",
"severity": "MODERATE"
},
"details": "Anon Proxy Server 0.100, and probably 0.101, allows remote attackers to execute arbitrary commands via shell metacharacters in (1) the host parameter to diagdns.php, and (2) the host parameter and possibly (3) the port parameter to diagconnect.php, a different vulnerability than CVE-2007-6460.",
"id": "GHSA-hmcw-crcx-v3q6",
"modified": "2022-05-01T18:43:14Z",
"published": "2022-05-01T18:43:14Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2007-6459"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/4734"
},
{
"type": "WEB",
"url": "http://osvdb.org/43711"
},
{
"type": "WEB",
"url": "http://osvdb.org/43712"
},
{
"type": "WEB",
"url": "http://securityreason.com/securityalert/3463"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/485151/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/26882"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-HMFX-447R-RWH3
Vulnerability from github – Published: 2026-09-23 12:31 – Updated: 2026-10-28 00:30A code execution flaw was found in Emacs, affecting versions prior to 31.2. The Flymake mode using language backends other than Lisp would execute arbitrary code from the edited file while performing syntax checking. Viewing or editing untrusted files using Emacs could lead to arbitrary code execution with the privileges of the user running Emacs.
{
"affected": [],
"aliases": [
"CVE-2026-96442"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-09-23T11:17:18Z",
"severity": "HIGH"
},
"details": "A code execution flaw was found in Emacs, affecting versions prior to 31.2. The Flymake mode using language backends other than Lisp would execute arbitrary code from the edited file while performing syntax checking. Viewing or editing untrusted files using Emacs could lead to arbitrary code execution with the privileges of the user running Emacs.",
"id": "GHSA-hmfx-447r-rwh3",
"modified": "2026-10-28T00:30:24Z",
"published": "2026-09-23T12:31:15Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-96442"
},
{
"type": "WEB",
"url": "https://github.com/emacs-mirror/emacs/commit/135e6f63f08fee3d374fa1a5187bce941a2d3e3c"
},
{
"type": "WEB",
"url": "https://github.com/emacs-mirror/emacs/commit/abc802ee2eb0b1663349ddf22a461f8e54a383fb"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:84591"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:85245"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:90800"
},
{
"type": "WEB",
"url": "https://access.redhat.com/security/cve/CVE-2026-96442"
},
{
"type": "WEB",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=2537347"
},
{
"type": "WEB",
"url": "https://www.openwall.com/lists/oss-security/2026/09/14/1"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/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.