CyberSecBulletin

Improper Control of Generation of Code

CWE-94

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.

We track 2,468 vulnerabilities of this type. 100% are rated high or critical, and the average CVSS score is 8.8. 82 have been exploited in real attacks.

How this weakness is prevented

  • Architecture and Design: Refactor your program so that you do not have to dynamically generate code.
  • 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.
  • 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.
  • Operation: 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).
  • Operation: 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).

Latest Improper Control of Generation of Code vulnerabilities

  • 8.0 High severity

    Bamboo Data Center: Improper Control of Generation of Code

    CVE-2024-21689AtlassianEPSS 2.65%

    This High severity RCE (Remote Code Execution) vulnerability CVE-2024-21689 was introduced in versions 9.1.0, 9.2.0, 9.3.0, 9.4.0, 9.5.0, and 9.6.0 of Bamboo Data Center and Server. This RCE (Remote Code Execution) vulnerability, with a CVSS Score of 7.6, allo

  • 9.8 Critical severity

    Apache DolphinScheduler: Improper Control of Generation of Code

    CVE-2024-43202ApacheEPSS 2.15%

    Exposure of Remote Code Execution in Apache Dolphinscheduler. This issue affects Apache DolphinScheduler: before 3.2.2. We recommend users to upgrade Apache DolphinScheduler to version 3.2.2, which fixes the issue.

  • 7.2 High severity

    InnoCMS: Improper Control of Generation of Code

    CVE-2024-7899InnoCMS

    A vulnerability, which was classified as critical, has been found in InnoCMS 0.3.1. This issue affects some unknown processing of the file /panel/pages/1/edit of the component Backend. The manipulation leads to code injection. The attack may be initiated remot

  • 9.8 Critical severity

    ac9: Improper Control of Generation of Code

    CVE-2024-42634TendaEPSS 2.21%

    A Command Injection vulnerability exists in formWriteFacMac of the httpd binary in Tenda AC9 v15.03.06.42. As a result, attacker can execute OS commands with root privileges.

  • 8.8 High severity

    x5000r: Improper Neutralization of Special Elements used in an OS Command

    CVE-2024-42739TOTOLINKEPSS 1.65%

    In TOTOLINK X5000r v9.1.0cu.2350_b20230313, the file /cgi-bin/cstecgi.cgi contains an OS command injection vulnerability in setAccessDeviceCfg. Authenticated Attackers can send malicious packet to execute arbitrary commands.

  • 7.2 High severity

    Kibana: Improperly Controlled Modification of Object Prototype Attributes

    CVE-2024-37287ElasticEPSS 1.65%

    A flaw allowing arbitrary code execution was discovered in Kibana. An attacker with access to ML and Alerting connector features, as well as write access to internal ML indices can trigger a prototype pollution vulnerability, ultimately leading to arbitrary co

  • 7.3 High severity

    WooCommerce Product Table Lite: Improper Control of Generation of Code

    CVE-2024-43128WC Product Table

    Improper Control of Generation of Code ('Code Injection') vulnerability in WC Product Table WooCommerce Product Table Lite allows Code Injection.This issue affects WooCommerce Product Table Lite: from n/a through 3.5.1.

  • 9.8 Critical severity

    JS Help Desk – AI-Powered Support & Ticketing…: Improper Control of Generation of Code

    CVE-2024-7094RabilalEPSS 37.6%

    The JS Help Desk – The Ultimate Help Desk & Support Plugin plugin for WordPress is vulnerable to PHP Code Injection leading to Remote Code Execution in all versions up to, and including, 2.8.6 via the 'storeTheme' function. This is due to a lack of sanitizatio

  • 8.8 High severity

    x5000r: Improper Neutralization of Special Elements used in an OS Command

    CVE-2024-42745TOTOLINKEPSS 1.66%

    In TOTOLINK X5000r v9.1.0cu.2350_b20230313, the file /cgi-bin/cstecgi.cgi contains an OS command injection vulnerability in setUPnPCfg. Authenticated Attackers can send malicious packet to execute arbitrary commands.

  • 8.1 High severity

    prestashop: Server-Side Request Forgery

    CVE-2024-41651PrestaShopEPSS 1.26%

    An issue in Prestashop v.8.1.7 and before allows a remote attacker to execute arbitrary code via the module upgrade functionality. NOTE: this is disputed by multiple parties, who report that exploitation requires that an attacker be able to hijack network requ

  • 8.8 High severity

    Fence Agents Remediation 0.4 for RHEL 8: Improper Control of Generation of Code

    CVE-2024-5651Red HatEPSS 1.37%

    A flaw was found in the Fence Agents Remediation operator. This vulnerability can allow a Remote Code Execution (RCE) primitive by supplying an arbitrary command to execute in the --ssh-path/--telnet-path arguments. A low-privilege user, for example, a user wi

  • 7.6 High severity

    live_membership_system: Improper Control of Generation of Code

    CVE-2024-40487KashiparaEPSS 1.11%

    A Stored Cross Site Scripting (XSS) vulnerability was found in "/view_type.php" of Kashipara Live Membership System v1.0, which allows remote attackers to execute arbitrary code via membershipType parameter.

  • 7.2 High severity

    Zabbix: Improper Control of Generation of Code

    CVE-2024-22116ZabbixEPSS 1.59%

    An administrator with restricted permissions can exploit the script execution functionality within the Monitoring Hosts section. The lack of default escaping for script parameters enabled this user ability to execute arbitrary code via the Ping script, thereby

  • 7.5 High severity

    3rd Gen AMD EPYC™ Processors: Improper Control of Generation of Code

    CVE-2023-31315AMD

    Improper validation in a model specific register (MSR) could allow a malicious program with ring0 access to modify SMM configuration while SMI lock is enabled, potentially leading to arbitrary code execution.

  • 7.2 High severity

    metadata_hub: Improper Control of Generation of Code

    CVE-2024-37382Abinitio

    An issue discovered in import host feature in Ab Initio Metadata Hub and Authorization Gateway before 4.3.1.1 allows attackers to run arbitrary code via crafted modification of server configuration.

  • 7.2 High severity

    shopware: Improper Control of Generation of Code

    CVE-2024-42356Shopware

    Shopware is an open commerce platform. Prior to versions 6.6.5.1 and 6.5.8.13, the `context` variable is injected into almost any Twig Template and allows to access to current language, currency information. The context object allows also to switch for a short

  • 9.8 Critical severity

    shopware: Improper Control of Generation of Code

    CVE-2024-42355Shopware

    Shopware, an open ecommerce platform, has a new Twig Tag `sw_silent_feature_call` which silences deprecation messages while triggered in this tag. Prior to versions 6.6.5.1 and 6.5.8.13, it accepts as parameter a string the feature flag name to silence, but th

  • 9.8 Critical severity

    Hpe Aruba Networking InstantOS and Aruba…: Out-of-bounds Write

    CVE-2024-42393Hewlett Packard Enterprise

    There are vulnerabilities in the Soft AP Daemon Service which could allow a threat actor to execute an unauthenticated RCE attack. Successful exploitation could allow an attacker to execute arbitrary commands on the underlying operating system leading to compl

  • 8.8 High severity

    Firefox: Access of Resource Using Incompatible Type

    CVE-2024-7520Mozilla

    A type confusion bug in WebAssembly could be leveraged by an attacker to potentially achieve code execution. This vulnerability affects Firefox < 129, Firefox ESR < 128.1, and Thunderbird < 128.1.

  • 8.8 High severity

    nuxt: Improper Control of Generation of Code

    CVE-2024-34344Nuxt

    Nuxt is a free and open-source framework to create full-stack web applications and websites with Vue.js. Due to the insufficient validation of the `path` parameter in the NuxtTestComponentWrapper, an attacker can execute arbitrary JavaScript on the server side

  • 7.1 High severity

    WD Discovery: Improper Control of Generation of Code

    CVE-2024-22169Western Digital

    WD Discovery versions prior to 5.0.589 contain a misconfiguration in the Node.js environment settings that could allow code execution by utilizing the 'ELECTRON_RUN_AS_NODE' environment variable. Any malicious application operating with standard user permissio

  • 9.6 Critical severity

    monkeytype: Improper Control of Generation of Code

    CVE-2024-41127Monkeytypegame

    Monkeytype is a minimalistic and customizable typing test. Monkeytype is vulnerable to Poisoned Pipeline Execution through Code Injection in its ci-failure-comment.yml GitHub Workflow, enabling attackers to gain pull-requests write access. The ci-failure-comme

  • 9.8 Critical severity

    Apache InLong TubeMQ Client: Improper Control of Generation of Code

    CVE-2024-36268ApacheEPSS 1.17%

    Improper Control of Generation of Code ('Code Injection') vulnerability in Apache InLong. This issue affects Apache InLong: from 1.10.0 through 1.12.0, which could lead to Remote Code Execution. Users are advised to upgrade to Apache InLong's 1.13.0 or cherry-

  • 9.4 Critical severity

    Dispatch: Improper Control of Generation of Code

    CVE-2024-7093Netflix

    Dispatch's notification service uses Jinja templates to generate messages to users. Jinja permits code execution within blocks, which were neither properly sanitized nor sandboxed. This vulnerability enables users to construct command line scripts in their cus

  • 9.6 Critical severity

    elektra: Improper Control of Generation of Code

    CVE-2024-41961Sapcc

    Elektra is an opinionated Openstack Dashboard for Operators and Consumers of Openstack Services. A code injection vulnerability was found in the live search functionality of the Ruby on Rails based Elektra web application. An authenticated user can craft a sea

  • 8.8 High severity

    xwiki-platform: Improper Control of Generation of Code

    CVE-2024-37901XWikiEPSS 1.06%

    XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Any user with edit right on any page can perform arbitrary remote code execution by adding instances of `XWiki.SearchSuggestConfig` and `XWiki.SearchSugges

  • 8.8 High severity

    Spring Cloud Data Flow: Improper Control of Generation of Code

    CVE-2024-37084SpringEPSS 35.2%

    In Spring Cloud Data Flow versions prior to 2.11.4, a malicious user who has access to the Skipper server api can use a crafted upload request to write an arbitrary file to any location on the file system which could lead to compromising the server

  • 8.0 High severity

    e2500_firmware: Improper Control of Generation of Code

    CVE-2024-40495Linksys

    A vulnerability was discovered in Linksys Router E2500 with firmware 2.0.00, allows authenticated attackers to execute arbitrary code via the hnd_parentalctrl_unblock function.

  • 8.8 High severity

    OpenAM: Improper Control of Generation of Code

    CVE-2024-41667OpenIdentityPlatformEPSS 3.54%

    OpenAM is an open access management solution. In versions 15.0.3 and prior, the `getCustomLoginUrlTemplate` method in RealmOAuth2ProviderSettings.java is vulnerable to template injection due to its usage of user input. Although the developer intended to implem

  • 9.8 Critical severity

    x_1l_traffic_controller_maxtime: Improper Control of Generation of Code

    CVE-2024-38944IntelightEPSS 2.37%

    An issue in Intelight X-1L Traffic controller Maxtime v.1.9.6 allows a remote attacker to execute arbitrary code via the /cgi-bin/generateForm.cgi?formID=142 component.

  • 9.8 Critical severity

    SuperAGI: Improper Control of Generation of Code

    CVE-2024-21552SuperAGI

    All versions of `SuperAGI` are vulnerable to Arbitrary Code Execution due to unsafe use of the ‘eval’ function. An attacker could induce the LLM output to exploit this vulnerability and gain arbitrary code execution on the SuperAGI application server.

  • 8.8 High severity

    CMS: Improper Control of Generation of Code

    CVE-2024-6947Flute

    A vulnerability was found in Flute CMS 0.2.2.4-alpha. It has been rated as critical. This issue affects the function replaceContent of the file app/Core/Support/ContentParser.php of the component Notification Handler. The manipulation leads to code injection.

  • 8.8 High severity

    CMS: Improper Control of Generation of Code

    CVE-2024-6946Flute

    A vulnerability was found in Flute CMS 0.2.2.4-alpha. It has been declared as critical. This vulnerability affects unknown code of the file /admin/pages/list. The manipulation of the argument blocks leads to code injection. The attack can be initiated remotely

  • 7.2 High severity

    DedeCMS: Improper Control of Generation of Code

    CVE-2024-6940DedeCMS

    A vulnerability was found in DedeCMS 5.7.114. It has been classified as critical. This affects an unknown part of the file article_template_rand.php. The manipulation leads to code injection. It is possible to initiate the attack remotely. The exploit has been

  • 9.8 Critical severity

    dir_823x_ax3000_dual_band_gigabit_wirless_router: Improper Control of Generation of Code

    CVE-2024-39962D-LinkEPSS 2.06%

    D-Link DIR-823X AX3000 Dual-Band Gigabit Wireless Router v21_D240126 was discovered to contain a remote code execution (RCE) vulnerability in the ntp_zone_val parameter at /goform/set_ntp. This vulnerability is exploited via a crafted HTTP request.

  • 8.8 High severity

    Apache StreamPark: Improper Control of Generation of Code

    CVE-2024-29178ApacheEPSS 1.24%

    On versions before 2.1.4, a user could log in and perform a template injection attack resulting in Remote Code Execution on the server, The attacker must successfully log into the system to launch an attack, so this is a moderate-impact vulnerability. Mitigati

  • 8.8 High severity

    NetExtender: Improper Control of Generation of Code

    CVE-2024-29014SonicWallEPSS 1.86%

    Vulnerability in SonicWall SMA100 NetExtender Windows (32 and 64-bit) client 10.2.339 and earlier versions allows an attacker to arbitrary code execution when processing an EPC Client update.

  • 8.8 High severity

    Apache Airflow: Improper Control of Generation of Code

    CVE-2024-39877ApacheEPSS 1.73%

    Apache Airflow 2.4.0, and versions before 2.9.3, has a vulnerability that allows authenticated DAG authors to craft a doc_md parameter in a way that could execute arbitrary code in the scheduler context, which should be forbidden according to the Airflow Secur

  • 7.3 High severity

    dbt-core: Improper Control of Generation of Code

    CVE-2024-40637Dbt-labs

    dbt enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications. When a user installs a package in dbt, it has the ability to override macros, materializations, and other core component

  • 9.8 Critical severity

    extension-template: Improper Control of Generation of Code

    CVE-2024-39700JupyterlabEPSS 1.09%

    JupyterLab extension template is a `copier` template for JupyterLab extensions. Repositories created using this template with `test` option include `update-integration-tests.yml` workflow which has an RCE vulnerability. Extension authors hosting their code on