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.
8376 vulnerabilities reference this CWE, most recent first.
GHSA-2XVG-5JXP-PCCG
Vulnerability from github – Published: 2023-05-23 03:30 – Updated: 2024-04-04 04:17Code injection vulnerability in Drive Explorer for macOS versions 3.5.4 and earlier allows an attacker who can login to the client where the affected product is installed to inject arbitrary code while processing the product execution. Since a full disk access privilege is required to execute LINE WORKS Drive Explorer, the attacker may be able to read and/or write to arbitrary files without the access privileges.
{
"affected": [],
"aliases": [
"CVE-2023-25953"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2023-05-23T02:15:09Z",
"severity": "CRITICAL"
},
"details": "Code injection vulnerability in Drive Explorer for macOS versions 3.5.4 and earlier allows an attacker who can login to the client where the affected product is installed to inject arbitrary code while processing the product execution. Since a full disk access privilege is required to execute LINE WORKS Drive Explorer, the attacker may be able to read and/or write to arbitrary files without the access privileges.",
"id": "GHSA-2xvg-5jxp-pccg",
"modified": "2024-04-04T04:17:49Z",
"published": "2023-05-23T03:30:16Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-25953"
},
{
"type": "WEB",
"url": "https://jvn.jp/en/jp/JVN01937209"
},
{
"type": "WEB",
"url": "https://line.worksmobile.com/jp/release-notes/20230216"
}
],
"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-2XW5-JHRF-JWG8
Vulnerability from github – Published: 2025-07-08 03:31 – Updated: 2025-07-08 03:31SAP S/4HANA and SAP SCM Characteristic Propagation has remote code execution vulnerability. This allows an attacker with high privileges to create a new report with his own code potentially gaining full control of the affected SAP system causing high impact on confidentiality, integrity, and availability of the application.
{
"affected": [],
"aliases": [
"CVE-2025-42967"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2025-07-08T01:15:23Z",
"severity": "CRITICAL"
},
"details": "SAP S/4HANA and SAP SCM Characteristic Propagation has remote code execution vulnerability. This allows an attacker with high privileges to create a new report with his own code potentially gaining full control of the affected SAP system causing high impact on confidentiality, integrity, and availability of the application.",
"id": "GHSA-2xw5-jhrf-jwg8",
"modified": "2025-07-08T03:31:00Z",
"published": "2025-07-08T03:31:00Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-42967"
},
{
"type": "WEB",
"url": "https://me.sap.com/notes/3618955"
},
{
"type": "WEB",
"url": "https://url.sap/sapsecuritypatchday"
}
],
"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-2XX6-QF7X-GRQH
Vulnerability from github – Published: 2026-05-07 15:38 – Updated: 2026-05-12 16:19NPM package next-npm-version1.0.1 is vulnerable to Command injection.
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "@jswork/next-npm-version"
},
"versions": [
"1.0.1"
]
}
],
"aliases": [
"CVE-2025-63706"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2026-05-12T16:19:02Z",
"nvd_published_at": "2026-05-07T15:16:04Z",
"severity": "CRITICAL"
},
"details": "NPM package next-npm-version1.0.1 is vulnerable to Command injection.",
"id": "GHSA-2xx6-qf7x-grqh",
"modified": "2026-05-12T16:19:02Z",
"published": "2026-05-07T15:38:41Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-63706"
},
{
"type": "WEB",
"url": "https://github.com/afeiship/next-npm-version/issues/1"
},
{
"type": "WEB",
"url": "https://gist.github.com/6en6ar/607368f1fc8fe429f03c6e0d9486ba72"
},
{
"type": "PACKAGE",
"url": "https://github.com/afeiship/next-npm-version"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/package/@jswork/next-npm-version"
}
],
"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": "next-npm-version is vulnerable to Command injection"
}
GHSA-2XXC-73FV-36F7
Vulnerability from github – Published: 2023-08-15 18:31 – Updated: 2024-09-30 16:22An issue in llama_index v.0.7.13 and before allows a remote attacker to execute arbitrary code via the exec parameter in PandasQueryEngine function.
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "llama-index"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.9.14"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2023-39662"
],
"database_specific": {
"cwe_ids": [
"CWE-74",
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2023-08-15T21:23:47Z",
"nvd_published_at": "2023-08-15T17:15:13Z",
"severity": "CRITICAL"
},
"details": "An issue in llama_index v.0.7.13 and before allows a remote attacker to execute arbitrary code via the `exec` parameter in PandasQueryEngine function.",
"id": "GHSA-2xxc-73fv-36f7",
"modified": "2024-09-30T16:22:46Z",
"published": "2023-08-15T18:31:32Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-39662"
},
{
"type": "WEB",
"url": "https://github.com/jerryjliu/llama_index/issues/7054"
},
{
"type": "WEB",
"url": "https://github.com/run-llama/llama_index/commit/9f3e50a803f519af9ab62e63d413441c43001d81"
},
{
"type": "WEB",
"url": "https://github.com/run-llama/llama_index/commit/aa6726706476e0f957a8d57a5ca89e519e93bad7"
},
{
"type": "PACKAGE",
"url": "https://github.com/jerryjliu/llama_index"
},
{
"type": "WEB",
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/llama-index/PYSEC-2023-148.yaml"
}
],
"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"
},
{
"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": "llama-index vulnerable to arbitrary code execution"
}
GHSA-2XXG-J453-5C23
Vulnerability from github – Published: 2022-05-24 17:12 – Updated: 2022-09-28 00:00A code injection in Nextcloud Desktop Client 2.6.2 for macOS allowed to load arbitrary code when starting the client with DYLD_INSERT_LIBRARIES set in the environment.
{
"affected": [],
"aliases": [
"CVE-2020-8140"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2020-03-20T21:15:00Z",
"severity": "MODERATE"
},
"details": "A code injection in Nextcloud Desktop Client 2.6.2 for macOS allowed to load arbitrary code when starting the client with DYLD_INSERT_LIBRARIES set in the environment.",
"id": "GHSA-2xxg-j453-5c23",
"modified": "2022-09-28T00:00:22Z",
"published": "2022-05-24T17:12:06Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-8140"
},
{
"type": "WEB",
"url": "https://hackerone.com/reports/633266"
},
{
"type": "WEB",
"url": "https://nextcloud.com/security/advisory/?id=NC-SA-2020-016"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-2XXM-3J3X-786W
Vulnerability from github – Published: 2022-05-02 03:15 – Updated: 2022-05-02 03:15Argument injection vulnerability in Enomaly Elastic Computing Platform (ECP), formerly Enomalism, before 2.1.1 allows local users to send signals to arbitrary processes by populating the /tmp/enomalism2.pid file with command-line arguments for the kill program.
{
"affected": [],
"aliases": [
"CVE-2009-0390"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2009-02-02T22:30:00Z",
"severity": "HIGH"
},
"details": "Argument injection vulnerability in Enomaly Elastic Computing Platform (ECP), formerly Enomalism, before 2.1.1 allows local users to send signals to arbitrary processes by populating the /tmp/enomalism2.pid file with command-line arguments for the kill program.",
"id": "GHSA-2xxm-3j3x-786w",
"modified": "2022-05-02T03:15:05Z",
"published": "2022-05-02T03:15:05Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2009-0390"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/500573/100/0/threaded"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-322F-WQW7-87Q6
Vulnerability from github – Published: 2022-05-01 23:59 – Updated: 2022-05-01 23:59Multiple PHP remote file inclusion vulnerabilities in HIOX Browser Statistics (HBS) 2.0 allow remote attackers to execute arbitrary PHP code via a URL in the hm parameter to (1) hioxupdate.php and (2) hioxstats.php.
{
"affected": [],
"aliases": [
"CVE-2008-3402"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2008-07-31T16:41:00Z",
"severity": "HIGH"
},
"details": "Multiple PHP remote file inclusion vulnerabilities in HIOX Browser Statistics (HBS) 2.0 allow remote attackers to execute arbitrary PHP code via a URL in the hm parameter to (1) hioxupdate.php and (2) hioxstats.php.",
"id": "GHSA-322f-wqw7-87q6",
"modified": "2022-05-01T23:59:45Z",
"published": "2022-05-01T23:59:45Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2008-3402"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/44064"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/6162"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/31299"
},
{
"type": "WEB",
"url": "http://securityreason.com/securityalert/4083"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/494930/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/30436"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-3233-8P6G-FXQ5
Vulnerability from github – Published: 2022-05-05 02:48 – Updated: 2022-05-05 02:48Foreman before 1.1 allows remote attackers to execute arbitrary code via a crafted YAML object to the (1) fact or (2) report import API.
{
"affected": [],
"aliases": [
"CVE-2013-0171"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2014-05-08T14:29:00Z",
"severity": "HIGH"
},
"details": "Foreman before 1.1 allows remote attackers to execute arbitrary code via a crafted YAML object to the (1) fact or (2) report import API.",
"id": "GHSA-3233-8p6g-fxq5",
"modified": "2022-05-05T02:48:31Z",
"published": "2022-05-05T02:48:31Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2013-0171"
},
{
"type": "WEB",
"url": "http://projects.theforeman.org/issues/2069"
},
{
"type": "WEB",
"url": "http://theforeman.org/security.html"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-323W-6P85-26FR
Vulnerability from github – Published: 2025-03-12 18:32 – Updated: 2025-03-12 21:58Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-mj4v-hp69-27x5. This link is maintained to preserve external references.
Original Description
Plenti <= 0.7.16 is vulnerable to code execution. Users uploading '.svelte' files with the /postLocal endpoint can define the file name as javascript codes. The server executes the uploaded file name in host, and cause code execution.
{
"affected": [
{
"database_specific": {
"last_known_affected_version_range": "\u003c 0.7.17"
},
"package": {
"ecosystem": "Go",
"name": "github.com/plentico/plenti"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2025-03-12T21:58:24Z",
"nvd_published_at": "2025-03-12T16:15:23Z",
"severity": "MODERATE"
},
"details": "# Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-mj4v-hp69-27x5. This link is maintained to preserve external references.\n\n# Original Description\nPlenti \u003c= 0.7.16 is vulnerable to code execution. Users uploading \u0027.svelte\u0027 files with the /postLocal endpoint can define the file name as javascript codes. The server executes the uploaded file name in host, and cause code execution.",
"id": "GHSA-323w-6p85-26fr",
"modified": "2025-03-12T21:58:24Z",
"published": "2025-03-12T18:32:53Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/plentico/plenti/security/advisories/GHSA-mj4v-hp69-27x5"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-26260"
},
{
"type": "WEB",
"url": "https://github.com/plentico/plenti/commit/c3e72a9ebbc2a03f4b0f3104becbfc25e390cb8e"
},
{
"type": "WEB",
"url": "https://ahmetakan.com/2025/02/14/cve-2025-26260"
},
{
"type": "WEB",
"url": "https://github.com/ahmetak4n/vulnerability-playground/tree/main/vulnerability-research/CVE-2025-26260"
},
{
"type": "PACKAGE",
"url": "https://github.com/plentico/plenti"
},
{
"type": "WEB",
"url": "https://github.com/plentico/plenti/releases/tag/v0.7.17"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
}
],
"summary": "Duplicate Advisory: Plenti - Code Injection - Denial of Services",
"withdrawn": "2025-03-12T21:58:24Z"
}
GHSA-3263-6J5Q-9QMJ
Vulnerability from github – Published: 2022-05-17 04:20 – Updated: 2022-05-17 04:20Adobe Reader and Acrobat 10.x before 10.1.13 and 11.x before 11.0.10 on Windows and OS X allow attackers to execute arbitrary code or cause a denial of service (memory corruption) via unspecified vectors, a different vulnerability than CVE-2014-8445, CVE-2014-8446, CVE-2014-8447, CVE-2014-8456, CVE-2014-8458, CVE-2014-8459, and CVE-2014-8461.
{
"affected": [],
"aliases": [
"CVE-2014-9158"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2014-12-10T21:59:00Z",
"severity": "HIGH"
},
"details": "Adobe Reader and Acrobat 10.x before 10.1.13 and 11.x before 11.0.10 on Windows and OS X allow attackers to execute arbitrary code or cause a denial of service (memory corruption) via unspecified vectors, a different vulnerability than CVE-2014-8445, CVE-2014-8446, CVE-2014-8447, CVE-2014-8456, CVE-2014-8458, CVE-2014-8459, and CVE-2014-8461.",
"id": "GHSA-3263-6j5q-9qmj",
"modified": "2022-05-17T04:20:14Z",
"published": "2022-05-17T04:20:14Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2014-9158"
},
{
"type": "WEB",
"url": "http://helpx.adobe.com/security/products/reader/apsb14-28.html"
}
],
"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.