Common Weakness Enumeration

CWE-94

Allowed-with-Review

Improper 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.

8272 vulnerabilities reference this CWE, most recent first.

GHSA-H48C-63VF-PV25

Vulnerability from github – Published: 2022-05-01 18:08 – Updated: 2022-05-01 18:08
VLAI
Details

Multiple PHP remote file inclusion vulnerabilities in Scallywag 2005-04-25 allow remote attackers to execute arbitrary PHP code via a URL in the path parameter to template.php in (1) skin/dark/, (2) skin/gold/, or (3) skin/original/.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2007-2900"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-94"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2007-05-30T10:30:00Z",
    "severity": "MODERATE"
  },
  "details": "Multiple PHP remote file inclusion vulnerabilities in Scallywag 2005-04-25 allow remote attackers to execute arbitrary PHP code via a URL in the path parameter to template.php in (1) skin/dark/, (2) skin/gold/, or (3) skin/original/.",
  "id": "GHSA-h48c-63vf-pv25",
  "modified": "2022-05-01T18:08:26Z",
  "published": "2022-05-01T18:08:26Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2007-2900"
    },
    {
      "type": "WEB",
      "url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/34469"
    },
    {
      "type": "WEB",
      "url": "https://www.exploit-db.com/exploits/3972"
    },
    {
      "type": "WEB",
      "url": "http://osvdb.org/38142"
    },
    {
      "type": "WEB",
      "url": "http://osvdb.org/38143"
    },
    {
      "type": "WEB",
      "url": "http://osvdb.org/38144"
    },
    {
      "type": "WEB",
      "url": "http://www.vupen.com/english/advisories/2007/1933"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}

GHSA-H4FQ-C9G5-9QMG

Vulnerability from github – Published: 2022-05-01 06:44 – Updated: 2022-05-01 06:44
VLAI
Details

PHP remote file include vulnerability in admin/index.php in Archangel Weblog 0.90.02 allows remote authenticated administrators to execute arbitrary PHP code via a URL ending in a NULL (%00) in the index parameter.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2006-0945"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-94"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2006-03-01T02:02:00Z",
    "severity": "MODERATE"
  },
  "details": "PHP remote file include vulnerability in admin/index.php in Archangel Weblog 0.90.02 allows remote authenticated administrators to execute arbitrary PHP code via a URL ending in a NULL (%00) in the index parameter.",
  "id": "GHSA-h4fq-c9g5-9qmg",
  "modified": "2022-05-01T06:44:20Z",
  "published": "2022-05-01T06:44:20Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2006-0945"
    },
    {
      "type": "WEB",
      "url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/25142"
    },
    {
      "type": "WEB",
      "url": "http://securitytracker.com/id?1015689"
    },
    {
      "type": "WEB",
      "url": "http://www.osvdb.org/23621"
    },
    {
      "type": "WEB",
      "url": "http://www.securityfocus.com/archive/1/426184/100/0/threaded"
    },
    {
      "type": "WEB",
      "url": "http://www.securityfocus.com/bid/16848"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}

GHSA-H4FR-MVM7-WCFP

Vulnerability from github – Published: 2022-05-01 07:02 – Updated: 2022-05-01 07:02
VLAI
Details

PHP remote file inclusion vulnerability in Ottoman 1.1.2, when register_globals is enabled, allows remote attackers to execute arbitrary PHP code via the default_path parameter in (1) error.php, (2) index.php, and (3) classes/main_class.php.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2006-2767"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-94"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2006-06-02T10:18:00Z",
    "severity": "MODERATE"
  },
  "details": "PHP remote file inclusion vulnerability in Ottoman 1.1.2, when register_globals is enabled, allows remote attackers to execute arbitrary PHP code via the default_path parameter in (1) error.php, (2) index.php, and (3) classes/main_class.php.",
  "id": "GHSA-h4fr-mvm7-wcfp",
  "modified": "2022-05-01T07:02:25Z",
  "published": "2022-05-01T07:02:25Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2006-2767"
    },
    {
      "type": "WEB",
      "url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/26894"
    },
    {
      "type": "WEB",
      "url": "https://www.exploit-db.com/exploits/1854"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/20399"
    },
    {
      "type": "WEB",
      "url": "http://www.osvdb.org/25916"
    },
    {
      "type": "WEB",
      "url": "http://www.osvdb.org/25917"
    },
    {
      "type": "WEB",
      "url": "http://www.osvdb.org/25918"
    },
    {
      "type": "WEB",
      "url": "http://www.securityfocus.com/bid/18208"
    },
    {
      "type": "WEB",
      "url": "http://www.vupen.com/english/advisories/2006/2073"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}

GHSA-H4FR-QHV5-6JFQ

Vulnerability from github – Published: 2025-04-17 00:30 – Updated: 2025-04-17 15:32
VLAI
Details

Access Control Vulnerability in Gerrit chromiumos project configuration in Google ChromeOS 131.0.6778.268 allows an attacker with a registered Gerrit account to inject malicious code into ChromeOS projects and potentially achieve Remote Code Execution and Denial of Service via editing trusted pipelines by insufficient access controls and misconfigurations in Gerrit's project.config.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2025-1568"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-284",
      "CWE-94"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2025-04-16T23:15:44Z",
    "severity": "CRITICAL"
  },
  "details": "Access Control Vulnerability in Gerrit chromiumos project configuration in Google ChromeOS 131.0.6778.268 allows an attacker with a registered Gerrit account to inject malicious code into ChromeOS projects and potentially achieve Remote Code Execution and Denial of Service  via editing trusted pipelines by insufficient access controls and misconfigurations in Gerrit\u0027s project.config.",
  "id": "GHSA-h4fr-qhv5-6jfq",
  "modified": "2025-04-17T15:32:35Z",
  "published": "2025-04-17T00:30:26Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-1568"
    },
    {
      "type": "WEB",
      "url": "https://issues.chromium.org/issues/b/374279912"
    },
    {
      "type": "WEB",
      "url": "https://issuetracker.google.com/issues/374279912"
    }
  ],
  "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-H4J5-C7CJ-74XG

Vulnerability from github – Published: 2021-05-04 18:02 – Updated: 2023-09-08 19:46
VLAI
Summary
xmlhttprequest and xmlhttprequest-ssl vulnerable to Arbitrary Code Injection
Details

This affects the package xmlhttprequest before 1.7.0; all versions of package xmlhttprequest-ssl. Provided requests are sent synchronously (async=False on xhr.open), malicious user input flowing into xhr.send could result in arbitrary code being injected and run.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "xmlhttprequest"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.7.0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "npm",
        "name": "xmlhttprequest-ssl"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.6.2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2020-28502"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-94"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2021-03-18T20:34:02Z",
    "nvd_published_at": "2021-03-05T18:15:00Z",
    "severity": "CRITICAL"
  },
  "details": "This affects the package xmlhttprequest before 1.7.0; all versions of package xmlhttprequest-ssl. Provided requests are sent synchronously (`async=False` on `xhr.open`), malicious user input flowing into `xhr.send` could result in arbitrary code being injected and run.",
  "id": "GHSA-h4j5-c7cj-74xg",
  "modified": "2023-09-08T19:46:08Z",
  "published": "2021-05-04T18:02:34Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-28502"
    },
    {
      "type": "WEB",
      "url": "https://github.com/driverdan/node-XMLHttpRequest/commit/983cfc244c7567ad6a59e366e55a8037e0497fe6"
    },
    {
      "type": "WEB",
      "url": "https://github.com/mjwwit/node-XMLHttpRequest/commit/ee1e81fc67729c7c0eba5537ed7fe1e30a6b3291"
    },
    {
      "type": "WEB",
      "url": "https://github.com/driverdan/node-XMLHttpRequest/blob/1.6.0/lib/XMLHttpRequest.js#L480"
    },
    {
      "type": "WEB",
      "url": "https://github.com/driverdan/node-XMLHttpRequest/blob/1.6.0/lib/XMLHttpRequest.js%23L480"
    },
    {
      "type": "WEB",
      "url": "https://github.com/mjwwit/node-XMLHttpRequest/blob/ae38832a0f1347c5e96dda665402509a3458e302/lib/XMLHttpRequest.js#L531"
    },
    {
      "type": "WEB",
      "url": "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1082937"
    },
    {
      "type": "WEB",
      "url": "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1082938"
    },
    {
      "type": "WEB",
      "url": "https://snyk.io/vuln/SNYK-JS-XMLHTTPREQUEST-1082935"
    },
    {
      "type": "WEB",
      "url": "https://snyk.io/vuln/SNYK-JS-XMLHTTPREQUESTSSL-1082936"
    }
  ],
  "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": "xmlhttprequest and xmlhttprequest-ssl vulnerable to Arbitrary Code Injection"
}

GHSA-H4M3-GMCR-5VQW

Vulnerability from github – Published: 2022-05-24 17:42 – Updated: 2022-05-24 17:42
VLAI
Details

An issue was discovered in Mutare Voice (EVM) 3.x before 3.3.8. getfile.asp allows Unauthenticated Local File Inclusion, which can be leveraged to achieve Remote Code Execution.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2021-27236"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-668",
      "CWE-94"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2021-02-16T04:15:00Z",
    "severity": "CRITICAL"
  },
  "details": "An issue was discovered in Mutare Voice (EVM) 3.x before 3.3.8. getfile.asp allows Unauthenticated Local File Inclusion, which can be leveraged to achieve Remote Code Execution.",
  "id": "GHSA-h4m3-gmcr-5vqw",
  "modified": "2022-05-24T17:42:23Z",
  "published": "2022-05-24T17:42:23Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-27236"
    },
    {
      "type": "WEB",
      "url": "https://www.mutare.com/security-adv-mutare-2021-001-mutare-voice"
    }
  ],
  "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-H4MM-72C5-J5RR

Vulnerability from github – Published: 2024-02-29 00:30 – Updated: 2024-08-01 15:31
VLAI
Details

SQL Injection vulnerability in /zms/admin/edit-ticket.php in PHPGurukul Zoo Management System 1.0 via tickettype and tprice parameters.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2024-25350"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-94"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2024-02-28T22:15:26Z",
    "severity": "CRITICAL"
  },
  "details": "SQL Injection vulnerability in /zms/admin/edit-ticket.php in PHPGurukul Zoo Management System 1.0 via tickettype and tprice parameters.",
  "id": "GHSA-h4mm-72c5-j5rr",
  "modified": "2024-08-01T15:31:28Z",
  "published": "2024-02-29T00:30:22Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-25350"
    },
    {
      "type": "WEB",
      "url": "https://github.com/0xQRx/VulnerabilityResearch/blob/master/2024/ZooManagementSystem-SQL_Injection_Edit_Ticket.md"
    }
  ],
  "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-H4MP-FXVG-QVVR

Vulnerability from github – Published: 2026-06-23 18:31 – Updated: 2026-06-23 18:31
VLAI
Details

A missing validation of user input exists when saving delivery limitations in Revive Adserver 6.0.6 and earlier. A low‑privileged user could add an unexpected component parameter and inject malicious PHP code into the compiledlimitations field, which would then be executed during banner delivery. Input sanitisation has been improved to ensure that unexpected parameters are filtered out.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-44959"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-94"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-06-23T17:17:00Z",
    "severity": "HIGH"
  },
  "details": "A missing validation of user input exists when saving delivery limitations in Revive Adserver 6.0.6 and earlier. A low\u2011privileged user could add an unexpected component parameter and inject malicious PHP code into the compiledlimitations field, which would then be executed during banner delivery. Input sanitisation has been improved to ensure that unexpected parameters are filtered out.",
  "id": "GHSA-h4mp-fxvg-qvvr",
  "modified": "2026-06-23T18:31:42Z",
  "published": "2026-06-23T18:31:42Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-44959"
    },
    {
      "type": "WEB",
      "url": "https://hackerone.com/reports/3744200"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}

GHSA-H4PH-6X2M-2WV3

Vulnerability from github – Published: 2022-05-01 07:24 – Updated: 2025-04-09 03:31
VLAI
Details

Multiple PHP remote file inclusion vulnerabilities in Security Images (com_securityimages) component 3.0.5 and earlier for Joomla! allow remote attackers to execute arbitrary code via a URL in the mosConfig_absolute_path parameter in (1) configinsert.php, (2) lang.php, (3) client.php, and (4) server.php.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2006-5048"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-94"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2006-09-27T23:07:00Z",
    "severity": "MODERATE"
  },
  "details": "Multiple PHP remote file inclusion vulnerabilities in Security Images (com_securityimages) component 3.0.5 and earlier for Joomla! allow remote attackers to execute arbitrary code via a URL in the mosConfig_absolute_path parameter in (1) configinsert.php, (2) lang.php, (3) client.php, and (4) server.php.",
  "id": "GHSA-h4ph-6x2m-2wv3",
  "modified": "2025-04-09T03:31:38Z",
  "published": "2022-05-01T07:24:18Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2006-5048"
    },
    {
      "type": "WEB",
      "url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/28078"
    },
    {
      "type": "WEB",
      "url": "https://www.exploit-db.com/exploits/2083"
    },
    {
      "type": "WEB",
      "url": "http://forum.joomla.org/index.php/topic%2C79477.0.html"
    },
    {
      "type": "WEB",
      "url": "http://forum.joomla.org/index.php/topic%2C81589.0.html"
    },
    {
      "type": "WEB",
      "url": "http://forum.joomla.org/index.php/topic,79477.0.html"
    },
    {
      "type": "WEB",
      "url": "http://forum.joomla.org/index.php/topic,81589.0.html"
    },
    {
      "type": "WEB",
      "url": "http://secunia.com/advisories/21260"
    },
    {
      "type": "WEB",
      "url": "http://www.osvdb.org/27655"
    },
    {
      "type": "WEB",
      "url": "http://www.osvdb.org/27656"
    },
    {
      "type": "WEB",
      "url": "http://www.osvdb.org/27657"
    },
    {
      "type": "WEB",
      "url": "http://www.osvdb.org/27658"
    },
    {
      "type": "WEB",
      "url": "http://www.securityfocus.com/bid/19217"
    },
    {
      "type": "WEB",
      "url": "http://www.vupen.com/english/advisories/2006/3062"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}

GHSA-H4V8-PH46-3VQP

Vulnerability from github – Published: 2026-07-02 00:31 – Updated: 2026-07-02 03:31
VLAI
Details

Inappropriate implementation in V8 in Google Chrome prior to 150.0.7871.46 allowed a remote attacker to execute arbitrary code inside a sandbox via a crafted HTML page. (Chromium security severity: Medium)

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-14383"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-94"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-07-01T23:16:46Z",
    "severity": "HIGH"
  },
  "details": "Inappropriate implementation in V8 in Google Chrome prior to 150.0.7871.46 allowed a remote attacker to execute arbitrary code inside a sandbox via a crafted HTML page. (Chromium security severity: Medium)",
  "id": "GHSA-h4v8-ph46-3vqp",
  "modified": "2026-07-02T03:31:26Z",
  "published": "2026-07-02T00:31:40Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-14383"
    },
    {
      "type": "WEB",
      "url": "https://chromereleases.googleblog.com/2026/06/stable-channel-update-for-desktop_0175352312.html"
    },
    {
      "type": "WEB",
      "url": "https://issues.chromium.org/issues/492410546"
    }
  ],
  "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"
    }
  ]
}

Mitigation
Architecture and Design

Strategy: Refactoring

Refactor your program so that you do not have to dynamically generate code.

Mitigation
Architecture and Design
  • 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
Implementation

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
Testing

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
Operation

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
Operation

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
Implementation

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.