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.
8355 vulnerabilities reference this CWE, most recent first.
GHSA-R837-HPV7-PC2F
Vulnerability from github – Published: 2026-02-24 12:31 – Updated: 2026-02-25 19:20DAG Author (who already has quite a lot of permissions) could manipulate database of Airflow 2 in the way to execute arbitrary code in the web-server context, which they should normally not be able to do, leading to potentially remote code execution in the context of web-server (server-side) as a result of a user viewing historical task information.
The functionality responsible for that (log template history) has been disabled by default in 2.11.1 and users should upgrade to Airflow 3 if they want to continue to use log template history. They can also manually modify historical log file names if they want to see historical logs that were generated before the last log template change.
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "apache-airflow"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.11.1"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2024-56373"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2026-02-25T19:20:56Z",
"nvd_published_at": "2026-02-24T10:16:02Z",
"severity": "HIGH"
},
"details": "DAG Author (who already has quite a lot of permissions) could manipulate database of Airflow 2 in the way to execute arbitrary code in the web-server context, which they should normally not be able to do, leading to potentially remote code execution in the context of web-server (server-side) as a result of a user viewing historical task information.\n\nThe functionality responsible for that (log template history) has been disabled by default in 2.11.1 and users should upgrade to Airflow 3 if they want to continue to use log template history. They can also manually modify historical log file names if they want to see historical logs that were generated before the last log template change.",
"id": "GHSA-r837-hpv7-pc2f",
"modified": "2026-02-25T19:20:56Z",
"published": "2026-02-24T12:31:40Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-56373"
},
{
"type": "WEB",
"url": "https://github.com/apache/airflow/pull/61880"
},
{
"type": "PACKAGE",
"url": "https://github.com/apache/airflow"
},
{
"type": "WEB",
"url": "https://lists.apache.org/thread/2vrmrhcht6g7cp5yjxpnrk2wtrncm6cy"
},
{
"type": "WEB",
"url": "http://www.openwall.com/lists/oss-security/2026/02/23/3"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "Apache Airflow vulnerable to Code Injection in the web-server context via LogTemplate table"
}
GHSA-R85W-V686-F8J6
Vulnerability from github – Published: 2022-05-02 03:12 – Updated: 2022-05-02 03:12Use-after-free vulnerability in DirectShow in Microsoft DirectX 8.1 and 9.0 allows remote attackers to execute arbitrary code via an MJPEG file or video stream with a malformed Huffman table, which triggers an exception that frees heap memory that is later accessed, aka "MJPEG Decompression Vulnerability."
{
"affected": [],
"aliases": [
"CVE-2009-0084"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2009-04-15T08:00:00Z",
"severity": "HIGH"
},
"details": "Use-after-free vulnerability in DirectShow in Microsoft DirectX 8.1 and 9.0 allows remote attackers to execute arbitrary code via an MJPEG file or video stream with a malformed Huffman table, which triggers an exception that frees heap memory that is later accessed, aka \"MJPEG Decompression Vulnerability.\"",
"id": "GHSA-r85w-v686-f8j6",
"modified": "2022-05-02T03:12:45Z",
"published": "2022-05-02T03:12:45Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2009-0084"
},
{
"type": "WEB",
"url": "https://docs.microsoft.com/en-us/security-updates/securitybulletins/2009/ms09-011"
},
{
"type": "WEB",
"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A5618"
},
{
"type": "WEB",
"url": "http://osvdb.org/53632"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/34665"
},
{
"type": "WEB",
"url": "http://support.avaya.com/elmodocs2/security/ASA-2009-132.htm"
},
{
"type": "WEB",
"url": "http://www.piotrbania.com/all/adv/ms-directx-mjpeg-adv.txt"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/34460"
},
{
"type": "WEB",
"url": "http://www.securitytracker.com/id?1022040"
},
{
"type": "WEB",
"url": "http://www.us-cert.gov/cas/techalerts/TA09-104A.html"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2009/1025"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-R863-653F-PW4G
Vulnerability from github – Published: 2022-05-14 02:09 – Updated: 2022-05-14 02:09Cross-site scripting (XSS) vulnerability in the Runtime_SetPrototype function in runtime.cc in Google V8, as used in Google Chrome before 34.0.1847.116, allows remote attackers to inject arbitrary web script or HTML via unspecified vectors, aka "Universal XSS (UXSS)."
{
"affected": [],
"aliases": [
"CVE-2014-1716"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2014-04-09T10:56:00Z",
"severity": "HIGH"
},
"details": "Cross-site scripting (XSS) vulnerability in the Runtime_SetPrototype function in runtime.cc in Google V8, as used in Google Chrome before 34.0.1847.116, allows remote attackers to inject arbitrary web script or HTML via unspecified vectors, aka \"Universal XSS (UXSS).\"",
"id": "GHSA-r863-653f-pw4g",
"modified": "2022-05-14T02:09:22Z",
"published": "2022-05-14T02:09:22Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2014-1716"
},
{
"type": "WEB",
"url": "https://code.google.com/p/chromium/issues/detail?id=354123"
},
{
"type": "WEB",
"url": "https://code.google.com/p/v8/source/detail?r=20138"
},
{
"type": "WEB",
"url": "http://googlechromereleases.blogspot.com/2014/04/stable-channel-update.html"
},
{
"type": "WEB",
"url": "http://lists.opensuse.org/opensuse-updates/2014-05/msg00012.html"
},
{
"type": "WEB",
"url": "http://security.gentoo.org/glsa/glsa-201408-16.xml"
},
{
"type": "WEB",
"url": "http://www.debian.org/security/2014/dsa-2905"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-R87Q-FQ37-PVR6
Vulnerability from github – Published: 2023-09-18 21:30 – Updated: 2023-09-20 21:33A remote command execution (RCE) vulnerability in the /api/runscript endpoint of FUXA 1.1.13 allows attackers to execute arbitrary commands via a crafted POST request.
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "@frangoteam/fuxa"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "1.1.13"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2023-33831"
],
"database_specific": {
"cwe_ids": [
"CWE-77",
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2023-09-19T15:55:58Z",
"nvd_published_at": "2023-09-18T20:15:09Z",
"severity": "CRITICAL"
},
"details": "A remote command execution (RCE) vulnerability in the /api/runscript endpoint of FUXA 1.1.13 allows attackers to execute arbitrary commands via a crafted POST request.",
"id": "GHSA-r87q-fq37-pvr6",
"modified": "2023-09-20T21:33:03Z",
"published": "2023-09-18T21:30:42Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-33831"
},
{
"type": "PACKAGE",
"url": "https://github.com/frangoteam/FUXA"
},
{
"type": "WEB",
"url": "https://github.com/rodolfomarianocy/Unauthenticated-RCE-FUXA-CVE-2023-33831"
},
{
"type": "WEB",
"url": "https://youtu.be/Xxa6yRB2Fpw"
}
],
"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": "A remote command execution (RCE) vulnerability in the /api/runscript endpoint of FUXA"
}
GHSA-R87W-47M8-22W3
Vulnerability from github – Published: 2020-09-01 15:24 – Updated: 2023-09-07 20:41Affected versions of jsrender are susceptible to a remote code execution vulnerability when used with server delivered client-side tempates which dynamically embed user input.
Proof of Concept
//POC-REQUEST
{{for ~x!=1?(constructor.constructor("return arguments.callee.caller")()):~y(10)}}
{{:#data}}
{{/for}}
//POC-RESPONSE
function anonymous(data,view,j,u) { // template var v,t=j._tag,ret="" +t("for",view,this,[ {view:view,tmpl:1, params:{args:['~x!=1?(constructor.constructor(\"return arguments.callee.caller\")()):~y(10)']}, args:[view.hlp("x")!=1?(data.constructor.constructor("return arguments.callee.caller")()):view.hlp("y")(10)], props:{}}]); return ret; }
Recommendation
Update to version 0.9.74 or later.
{
"affected": [
{
"database_specific": {
"last_known_affected_version_range": "\u003c= 0.9.73"
},
"package": {
"ecosystem": "npm",
"name": "jsrender"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.9.74"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2016-3942"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2020-08-31T18:10:44Z",
"nvd_published_at": null,
"severity": "MODERATE"
},
"details": "Affected versions of `jsrender` are susceptible to a remote code execution vulnerability when used with server delivered client-side tempates which dynamically embed user input.\n\n## Proof of Concept\n\n\n```js\n//POC-REQUEST\n{{for ~x!=1?(constructor.constructor(\"return arguments.callee.caller\")()):~y(10)}}\n{{:#data}}\n{{/for}}\n```\n\n```js\n//POC-RESPONSE\nfunction anonymous(data,view,j,u) { // template var v,t=j._tag,ret=\"\" +t(\"for\",view,this,[ {view:view,tmpl:1, params:{args:[\u0027~x!=1?(constructor.constructor(\\\"return arguments.callee.caller\\\")()):~y(10)\u0027]}, args:[view.hlp(\"x\")!=1?(data.constructor.constructor(\"return arguments.callee.caller\")()):view.hlp(\"y\")(10)], props:{}}]); return ret; } \n```\n\n\n## Recommendation\n\nUpdate to version 0.9.74 or later.",
"id": "GHSA-r87w-47m8-22w3",
"modified": "2023-09-07T20:41:26Z",
"published": "2020-09-01T15:24:24Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2016-3942"
},
{
"type": "WEB",
"url": "https://github.com/BorisMoore/jsrender/commit/f984e139deb0a7648d5b543860ec652c21f6dcf6"
},
{
"type": "PACKAGE",
"url": "https://github.com/BorisMoore/jsrender"
},
{
"type": "WEB",
"url": "https://snyk.io/vuln/SNYK-DOTNET-JSRENDER-60173"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/advisories/97"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L",
"type": "CVSS_V3"
}
],
"summary": "Template Injection in jsrender"
}
GHSA-R893-XW42-RX44
Vulnerability from github – Published: 2022-05-01 07:15 – Updated: 2025-04-03 04:38PHP remote file inclusion vulnerability in lib/tpl/default/main.php in the JD-Wiki Component (com_jd-wiki) 1.0.2 and earlier for Joomla!, when register_globals is enabled, allows remote attackers to execute arbitrary PHP code via a URL in the mosConfig_absolute_path parameter.
{
"affected": [],
"aliases": [
"CVE-2006-4074"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2006-08-11T01:04:00Z",
"severity": "MODERATE"
},
"details": "PHP remote file inclusion vulnerability in lib/tpl/default/main.php in the JD-Wiki Component (com_jd-wiki) 1.0.2 and earlier for Joomla!, when register_globals is enabled, allows remote attackers to execute arbitrary PHP code via a URL in the mosConfig_absolute_path parameter.",
"id": "GHSA-r893-xw42-rx44",
"modified": "2025-04-03T04:38:23Z",
"published": "2022-05-01T07:15:10Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2006-4074"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/28253"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/2125"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/21389"
},
{
"type": "WEB",
"url": "http://www.joomladeveloping.org/component/option%2Ccom_jd-wp/Itemid%2C29/p%2C33"
},
{
"type": "WEB",
"url": "http://www.joomladeveloping.org/component/option,com_jd-wp/Itemid,29/p,33"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/19373"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2006/3192"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-R8GC-4GR6-4VF3
Vulnerability from github – Published: 2022-05-17 02:06 – Updated: 2022-05-17 02:06The default configuration of the binding in Uzbl before 2010.08.05 does not properly use the @SELECTED_URI feature, which allows user-assisted remote attackers to execute arbitrary commands via a crafted HREF attribute of an A element in an HTML document.
{
"affected": [],
"aliases": [
"CVE-2010-2809"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2010-08-19T22:00:00Z",
"severity": "MODERATE"
},
"details": "The default configuration of the \u003cButton2\u003e binding in Uzbl before 2010.08.05 does not properly use the @SELECTED_URI feature, which allows user-assisted remote attackers to execute arbitrary commands via a crafted HREF attribute of an A element in an HTML document.",
"id": "GHSA-r8gc-4gr6-4vf3",
"modified": "2022-05-17T02:06:14Z",
"published": "2022-05-17T02:06:14Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2010-2809"
},
{
"type": "WEB",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=621964"
},
{
"type": "WEB",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=621965"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/61011"
},
{
"type": "WEB",
"url": "http://github.com/Dieterbe/uzbl/commit/9cc39cb5c9396be013b5dc2ba7e4b3eaa647e975"
},
{
"type": "WEB",
"url": "http://github.com/pawelz/uzbl/commit/342f292c27973c9df5f631a38bd12f14a9c5cdc2"
},
{
"type": "WEB",
"url": "http://marc.info/?l=oss-security\u0026m=128111493509265\u0026w=2"
},
{
"type": "WEB",
"url": "http://marc.info/?l=oss-security\u0026m=128111994317381\u0026w=2"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/42297"
},
{
"type": "WEB",
"url": "http://www.uzbl.org/bugs/index.php?do=details\u0026task_id=240"
},
{
"type": "WEB",
"url": "http://www.uzbl.org/news.php?id=29"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-R8HF-CX4M-8HGJ
Vulnerability from github – Published: 2021-12-27 00:00 – Updated: 2022-07-13 00:01NETGEAR R6400 devices before 1.0.1.70 are affected by server-side injection.
{
"affected": [],
"aliases": [
"CVE-2021-45655"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2021-12-26T01:15:00Z",
"severity": "MODERATE"
},
"details": "NETGEAR R6400 devices before 1.0.1.70 are affected by server-side injection.",
"id": "GHSA-r8hf-cx4m-8hgj",
"modified": "2022-07-13T00:01:51Z",
"published": "2021-12-27T00:00:32Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-45655"
},
{
"type": "WEB",
"url": "https://kb.netgear.com/000064069/Security-Advisory-for-Server-Side-Injection-on-R6400-PSV-2019-0178"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-R8J9-M9F3-6RR3
Vulnerability from github – Published: 2022-05-01 23:36 – Updated: 2022-05-01 23:36PHP remote file inclusion vulnerability in footer.php in Quinsonnas Mail Checker 1.55 allows remote attackers to execute arbitrary PHP code via a URL in the op[footer_body] parameter.
{
"affected": [],
"aliases": [
"CVE-2008-1046"
],
"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 footer.php in Quinsonnas Mail Checker 1.55 allows remote attackers to execute arbitrary PHP code via a URL in the op[footer_body] parameter.",
"id": "GHSA-r8j9-m9f3-6rr3",
"modified": "2022-05-01T23:36:06Z",
"published": "2022-05-01T23:36:05Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2008-1046"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/5176"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-R8QQ-M2F2-8FXC
Vulnerability from github – Published: 2022-05-02 06:19 – Updated: 2022-05-02 06:19Multiple PHP remote file inclusion vulnerabilities in Web Server Creator - Web Portal 0.1 allow remote attackers to execute arbitrary PHP code via a URL in the (1) pg parameter to index.php and the (2) path parameter to news/form.php.
{
"affected": [],
"aliases": [
"CVE-2010-1114"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2010-03-25T17:30:00Z",
"severity": "HIGH"
},
"details": "Multiple PHP remote file inclusion vulnerabilities in Web Server Creator - Web Portal 0.1 allow remote attackers to execute arbitrary PHP code via a URL in the (1) pg parameter to index.php and the (2) path parameter to news/form.php.",
"id": "GHSA-r8qq-m2f2-8fxc",
"modified": "2022-05-02T06:19:07Z",
"published": "2022-05-02T06:19:07Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2010-1114"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/55727"
},
{
"type": "WEB",
"url": "http://www.packetstormsecurity.com/1001-exploits/webservercreator-traversalxssrfi.txt"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/37841"
}
],
"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.