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.
8301 vulnerabilities reference this CWE, most recent first.
GHSA-CMX3-WHXW-V8MP
Vulnerability from github – Published: 2024-02-02 12:30 – Updated: 2025-06-17 18:31An issue in Blurams Lumi Security Camera (A31C) v23.0406.435.4120 allows attackers to execute arbitrary code.
{
"affected": [],
"aliases": [
"CVE-2023-50488"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-02-02T10:15:08Z",
"severity": "CRITICAL"
},
"details": "An issue in Blurams Lumi Security Camera (A31C) v23.0406.435.4120 allows attackers to execute arbitrary code.",
"id": "GHSA-cmx3-whxw-v8mp",
"modified": "2025-06-17T18:31:32Z",
"published": "2024-02-02T12:30:30Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-50488"
},
{
"type": "WEB",
"url": "https://github.com/roman-mueller/PoC/tree/master/CVE-2023-50488"
},
{
"type": "WEB",
"url": "https://infosec.rm-it.de/2024/02/01/blurams-lumi-security-camera-analysis"
}
],
"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-CP2P-6XH4-JMCP
Vulnerability from github – Published: 2023-01-02 18:30 – Updated: 2023-10-20 22:38A vulnerability was found in nterchange up to 4.1.0. It has been rated as critical. This issue affects the function getContent of the file app/controllers/code_caller_controller.php. The manipulation of the argument q with the input %5C%27%29;phpinfo%28%29;/* leads to code injection. The exploit has been disclosed to the public and may be used. Upgrading to version 4.1.1 is able to address this issue. The name of the patch is fba7d89176fba8fe289edd58835fe45080797d99. It is recommended to upgrade the affected component. The associated identifier of this vulnerability is VDB-217187.
{
"affected": [
{
"package": {
"ecosystem": "Packagist",
"name": "nonfiction/nterchange"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "4.1.1"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2015-10009"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": true,
"github_reviewed_at": "2023-10-20T22:38:12Z",
"nvd_published_at": "2023-01-02T16:15:00Z",
"severity": "CRITICAL"
},
"details": "A vulnerability was found in nterchange up to 4.1.0. It has been rated as critical. This issue affects the function getContent of the file `app/controllers/code_caller_controller.php`. The manipulation of the argument q with the input %5C%27%29;phpinfo%28%29;/* leads to code injection. The exploit has been disclosed to the public and may be used. Upgrading to version 4.1.1 is able to address this issue. The name of the patch is fba7d89176fba8fe289edd58835fe45080797d99. It is recommended to upgrade the affected component. The associated identifier of this vulnerability is VDB-217187.",
"id": "GHSA-cp2p-6xh4-jmcp",
"modified": "2023-10-20T22:38:12Z",
"published": "2023-01-02T18:30:27Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2015-10009"
},
{
"type": "WEB",
"url": "https://github.com/nonfiction/nterchange_backend/commit/fba7d89176fba8fe289edd58835fe45080797d99"
},
{
"type": "PACKAGE",
"url": "https://github.com/nonfiction/nterchange_backend"
},
{
"type": "WEB",
"url": "https://github.com/nonfiction/nterchange_backend/releases/tag/4.1.1"
},
{
"type": "WEB",
"url": "https://vuldb.com/?ctiid.217187"
},
{
"type": "WEB",
"url": "https://vuldb.com/?id.217187"
}
],
"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": "nterchange Code Injection vulnerability"
}
GHSA-CP3H-563P-CMFG
Vulnerability from github – Published: 2022-05-01 23:55 – Updated: 2025-04-09 03:56Unspecified vulnerability in the WEC Discussion Forum (wec_discussion) extension 1.6.2 and earlier for TYPO3 allows attackers to execute arbitrary code via vectors related to "certain file types."
{
"affected": [],
"aliases": [
"CVE-2008-3043"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2008-07-07T18:41:00Z",
"severity": "HIGH"
},
"details": "Unspecified vulnerability in the WEC Discussion Forum (wec_discussion) extension 1.6.2 and earlier for TYPO3 allows attackers to execute arbitrary code via vectors related to \"certain file types.\"",
"id": "GHSA-cp3h-563p-cmfg",
"modified": "2025-04-09T03:56:08Z",
"published": "2022-05-01T23:55:58Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2008-3043"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/43512"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/30905"
},
{
"type": "WEB",
"url": "http://typo3.org/teams/security/security-bulletins/typo3-20080701-4"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/30026"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-CP8F-5JP9-RQMH
Vulnerability from github – Published: 2022-05-13 01:14 – Updated: 2025-10-22 00:31Kibana versions before 5.6.15 and 6.6.1 contain an arbitrary code execution flaw in the Timelion visualizer. An attacker with access to the Timelion application could send a request that will attempt to execute javascript code. This could possibly lead to an attacker executing arbitrary commands with permissions of the Kibana process on the host system.
{
"affected": [],
"aliases": [
"CVE-2019-7609"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2019-03-25T19:29:00Z",
"severity": "CRITICAL"
},
"details": "Kibana versions before 5.6.15 and 6.6.1 contain an arbitrary code execution flaw in the Timelion visualizer. An attacker with access to the Timelion application could send a request that will attempt to execute javascript code. This could possibly lead to an attacker executing arbitrary commands with permissions of the Kibana process on the host system.",
"id": "GHSA-cp8f-5jp9-rqmh",
"modified": "2025-10-22T00:31:37Z",
"published": "2022-05-13T01:14:26Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2019-7609"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHBA-2019:2824"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2019:2860"
},
{
"type": "WEB",
"url": "https://discuss.elastic.co/t/elastic-stack-6-6-1-and-5-6-15-security-update/169077"
},
{
"type": "WEB",
"url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-7609"
},
{
"type": "WEB",
"url": "https://www.elastic.co/community/security"
},
{
"type": "WEB",
"url": "http://packetstormsecurity.com/files/174569/Kibana-Timelion-Prototype-Pollution-Remote-Code-Execution.html"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-CP8M-FJ8Q-88FM
Vulnerability from github – Published: 2022-05-17 05:10 – Updated: 2022-05-17 05:10VMware vCenter Server Appliance (vCSA) 5.1 before Update 1 allows remote authenticated users to execute arbitrary programs with root privileges by leveraging Virtual Appliance Management Interface (VAMI) access.
{
"affected": [],
"aliases": [
"CVE-2013-3079"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2013-05-01T12:00:00Z",
"severity": "HIGH"
},
"details": "VMware vCenter Server Appliance (vCSA) 5.1 before Update 1 allows remote authenticated users to execute arbitrary programs with root privileges by leveraging Virtual Appliance Management Interface (VAMI) access.",
"id": "GHSA-cp8m-fj8q-88fm",
"modified": "2022-05-17T05:10:47Z",
"published": "2022-05-17T05:10:47Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2013-3079"
},
{
"type": "WEB",
"url": "http://www.vmware.com/security/advisories/VMSA-2013-0006.html"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-CP8R-2JWF-Q8JJ
Vulnerability from github – Published: 2024-04-10 15:30 – Updated: 2024-08-01 15:31Leantime 3.0.6 is vulnerable to HTML Injection via /dashboard/show#/tickets/newTicket.
{
"affected": [],
"aliases": [
"CVE-2024-27476"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-04-10T15:16:04Z",
"severity": "MODERATE"
},
"details": "Leantime 3.0.6 is vulnerable to HTML Injection via /dashboard/show#/tickets/newTicket.",
"id": "GHSA-cp8r-2jwf-q8jj",
"modified": "2024-08-01T15:31:38Z",
"published": "2024-04-10T15:30:40Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-27476"
},
{
"type": "WEB",
"url": "https://drive.proton.me/urls/X9G9MY1FAW#NLS8RkHUihLY"
},
{
"type": "WEB",
"url": "https://github.com/Leantime/leantime/blob/264a7dbc2c9b18f574821bf27dd568a287ee8498/app/Domain/Tickets/Controllers/ShowTicket.php#L20"
},
{
"type": "WEB",
"url": "https://github.com/dead1nfluence/Leantime-POC/blob/main/README.md"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N",
"type": "CVSS_V3"
}
]
}
GHSA-CP9Q-6FWR-C66G
Vulnerability from github – Published: 2023-12-27 21:31 – Updated: 2024-01-09 21:30The com.phlox.tvwebbrowser TV Bro application through 2.0.0 for Android mishandles external intents through WebView. This allows attackers to execute arbitrary code, create arbitrary files. and perform arbitrary downloads via JavaScript that uses takeBlobDownloadData.
{
"affected": [],
"aliases": [
"CVE-2023-43955"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2023-12-27T21:15:08Z",
"severity": "CRITICAL"
},
"details": "The com.phlox.tvwebbrowser TV Bro application through 2.0.0 for Android mishandles external intents through WebView. This allows attackers to execute arbitrary code, create arbitrary files. and perform arbitrary downloads via JavaScript that uses takeBlobDownloadData.",
"id": "GHSA-cp9q-6fwr-c66g",
"modified": "2024-01-09T21:30:28Z",
"published": "2023-12-27T21:31:01Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-43955"
},
{
"type": "WEB",
"url": "https://github.com/truefedex/tv-bro/pull/182#issue-1901769895"
},
{
"type": "WEB",
"url": "https://github.com/actuator/com.phlox.tvwebbrowser"
},
{
"type": "WEB",
"url": "https://github.com/actuator/com.phlox.tvwebbrowser/blob/main/CWE-94.md"
},
{
"type": "WEB",
"url": "https://github.com/actuator/com.phlox.tvwebbrowser/blob/main/poc.apk"
}
],
"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-CP9W-GP2M-QFM3
Vulnerability from github – Published: 2023-11-15 15:30 – Updated: 2023-11-15 15:30EC-CUBE 3 series (3.0.0 to 3.0.18-p6) and 4 series (4.0.0 to 4.0.6-p3, 4.1.0 to 4.1.2-p2, and 4.2.0 to 4.2.2) contain an arbitrary code execution vulnerability due to improper settings of the template engine Twig included in the product. As a result, arbitrary code may be executed on the server where the product is running by a user with an administrative privilege.
{
"affected": [],
"aliases": [
"CVE-2023-46845"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2023-11-07T08:15:24Z",
"severity": "HIGH"
},
"details": "EC-CUBE 3 series (3.0.0 to 3.0.18-p6) and 4 series (4.0.0 to 4.0.6-p3, 4.1.0 to 4.1.2-p2, and 4.2.0 to 4.2.2) contain an arbitrary code execution vulnerability due to improper settings of the template engine Twig included in the product. As a result, arbitrary code may be executed on the server where the product is running by a user with an administrative privilege.",
"id": "GHSA-cp9w-gp2m-qfm3",
"modified": "2023-11-15T15:30:20Z",
"published": "2023-11-15T15:30:20Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-46845"
},
{
"type": "WEB",
"url": "https://jvn.jp/en/jp/JVN29195731"
},
{
"type": "WEB",
"url": "https://www.ec-cube.net/info/weakness/20231026/index.php"
},
{
"type": "WEB",
"url": "https://www.ec-cube.net/info/weakness/20231026/index_3.php"
},
{
"type": "WEB",
"url": "https://www.ec-cube.net/info/weakness/20231026/index_40.php"
}
],
"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-CPC2-W66G-C9XG
Vulnerability from github – Published: 2022-05-17 00:41 – Updated: 2022-05-17 00:41PHP remote file inclusion vulnerability in includes/todofleetcontrol.php in an older version of Xnova, possibly 0.8 sp1, allows remote attackers to execute arbitrary PHP code via a URL in the ugamela_root_path parameter.
{
"affected": [],
"aliases": [
"CVE-2008-6022"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2009-02-02T22:00:00Z",
"severity": "HIGH"
},
"details": "PHP remote file inclusion vulnerability in includes/todofleetcontrol.php in an older version of Xnova, possibly 0.8 sp1, allows remote attackers to execute arbitrary PHP code via a URL in the ugamela_root_path parameter.",
"id": "GHSA-cpc2-w66g-c9xg",
"modified": "2022-05-17T00:41:39Z",
"published": "2022-05-17T00:41:39Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2008-6022"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/44513"
},
{
"type": "WEB",
"url": "https://www.exploit-db.com/exploits/6254"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/30715"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-CPCV-4Q8J-MRGM
Vulnerability from github – Published: 2022-05-17 03:49 – Updated: 2022-05-17 03:49Huawei Unified Maintenance Audit (UMA) before V200R001C00SPC200 allows remote attackers to execute arbitrary commands via "special characters," a different vulnerability than CVE-2016-7109.
{
"affected": [],
"aliases": [
"CVE-2016-7110"
],
"database_specific": {
"cwe_ids": [
"CWE-94"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2016-09-07T19:28:00Z",
"severity": "CRITICAL"
},
"details": "Huawei Unified Maintenance Audit (UMA) before V200R001C00SPC200 allows remote attackers to execute arbitrary commands via \"special characters,\" a different vulnerability than CVE-2016-7109.",
"id": "GHSA-cpcv-4q8j-mrgm",
"modified": "2022-05-17T03:49:15Z",
"published": "2022-05-17T03:49:15Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2016-7110"
},
{
"type": "WEB",
"url": "http://www.huawei.com/en/psirt/security-advisories/huawei-sa-20160824-01-uma-en"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/92617"
}
],
"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"
}
]
}
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.