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.8 High severity

    Custom Field Suite: Improper Control of Generation of Code

    CVE-2024-3562Mgibbs189

    The Custom Field Suite plugin for WordPress is vulnerable to PHP Code Injection in all versions up to, and including, 2.6.7 via the Loop custom field. This is due to insufficient sanitization of input prior to being used in a call to the eval() function. This

  • 10.0 Critical severity

    livechatpro: Improper Control of Generation of Code

    CVE-2024-36679PrestaShop

    In the module "Module Live Chat Pro (All in One Messaging)" (livechatpro) <=8.4.0, a guest can perform PHP Code injection. Due to a predictable token, the method `Lcp::saveTranslations()` suffer of a white writer that can inject PHP code into a PHP file.

  • 8.1 High severity

    kafka-ui: Improper Control of Generation of Code

    CVE-2024-32030ProvectusEPSS 51.1%

    Kafka UI is an Open-Source Web UI for Apache Kafka Management. Kafka UI API allows users to connect to different Kafka brokers by specifying their network address and port. As a separate feature, it also provides the ability to monitor the performance of Kafka

  • 9.8 Critical severity

    Ricoh Streamline NX PC Client: Improper Control of Generation of Code

    CVE-2024-37124Ricoh Company

    Use of potentially dangerous function issue exists in Ricoh Streamline NX PC Client. If this vulnerability is exploited, an attacker may create an arbitrary file in the PC where the product is installed.

  • 8.8 High severity

    dolibarr_erp\/crm: Improper Control of Generation of Code

    CVE-2024-37821Dolibarr

    An arbitrary file upload vulnerability in the Upload Template function of Dolibarr ERP CRM up to v19.0.1 allows attackers to execute arbitrary code via uploading a crafted .SQL file.

  • 9.8 Critical severity

    iterm2: Improper Control of Generation of Code

    CVE-2024-38396GnachmanEPSS 1.68%

    An issue was discovered in iTerm2 3.5.x before 3.5.2. Unfiltered use of an escape sequence to report a window title, in combination with the built-in tmux integration feature (enabled by default), allows an attacker to inject arbitrary code into the terminal,

  • 9.8 Critical severity

    iterm2: Improper Control of Generation of Code

    CVE-2024-38395iTerm2EPSS 1.48%

    In iTerm2 before 3.5.2, the "Terminal may report window title" setting is not honored, and thus remote code execution might occur but "is not trivially exploitable."

  • 9.9 Critical severity

    Woody Code Snippets – Insert PHP, CSS, JS, and…: Improper Control of Generation of Code

    CVE-2024-3105ThemeIsleEPSS 2.78%

    The Woody code snippets – Insert Header Footer Code, AdSense Ads plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 2.5.0 via the 'insert_php' shortcode. This is due to the plugin not restricting the usage of the

  • 7.8 High severity

    security-advisories: Improper Control of Generation of Code

    CVE-2024-37885Nextcloud

    The Nextcloud Desktop Client is a tool to synchronize files from Nextcloud Server with your computer. A code injection in Nextcloud Desktop Client for macOS allowed to load arbitrary code when starting the client with DYLD_INSERT_LIBRARIES set in the enviromen

  • 8.8 High severity

    Android: Out-of-bounds Write

    CVE-2024-32925Google

    In dhd_prot_txstatus_process of dhd_msgbuf.c, there is a possible out of bounds write due to a missing bounds check. This could lead to remote code execution with no additional execution privileges needed. User interaction is not needed for exploitation.

  • 9.8 Critical severity

    billing_system: Improper Neutralization of Special Elements used in an SQL Command

    CVE-2024-37849itsourcecode

    A SQL Injection vulnerability in itsourcecode Billing System 1.0 allows a local attacker to execute arbitrary code in process.php via the username parameter.

  • 9.8 Critical severity

    MegaBIP: Improper Control of Generation of Code

    CVE-2024-1577Jan SyskiEPSS 1.13%

    Remote Code Execution vulnerability in MegaBIP software allows to execute arbitrary code on the server without requiring authentication by saving crafted by the attacker PHP code to one of the website files. This issue affects MegaBIP software versions through

  • 8.8 High severity

    Chrome: Improper Control of Generation of Code

    CVE-2024-5834Google

    Inappropriate implementation in Dawn in Google Chrome prior to 126.0.6478.54 allowed a remote attacker to execute arbitrary code via a crafted HTML page. (Chromium security severity: High)

  • 9.1 Critical severity

    antivirus_vpn_for_android: Improper Control of Generation of Code

    CVE-2024-34405McAfee

    Improper deep link validation in McAfee Security: Antivirus VPN for Android before 8.3.0 could allow an attacker to launch an arbitrary URL within the app.

  • 7.8 High severity

    iOS and iPadOS: Improper Restriction of Operations within the Bounds of a Memory Buffer

    CVE-2024-27857AppleEPSS 1.83%

    An out-of-bounds access issue was addressed with improved bounds checking. This issue is fixed in iOS 17.5 and iPadOS 17.5, macOS Sonoma 14.5, tvOS 17.5, visionOS 1.2. A remote attacker may be able to cause unexpected app termination or arbitrary code executio

  • 9.8 Critical severity

    langflow: Improper Control of Generation of Code

    CVE-2024-37014LangflowEPSS 63.7%

    Langflow through 0.6.19 allows remote code execution if untrusted users are able to reach the "POST /api/v1/custom_component" endpoint and provide a Python script.

  • 7.8 High severity

    macOS: Out-of-bounds Write

    CVE-2022-32897Apple

    A memory corruption issue was addressed with improved validation. This issue is fixed in macOS Monterey 12.5. Processing a maliciously crafted tiff file may lead to arbitrary code execution.

  • 8.5 High severity

    Advanced Custom Fields PRO: Improper Control of Generation of Code

    CVE-2024-34761Wpengine

    Vulnerability discovered by executing a planned security audit. Improper Control of Generation of Code ('Code Injection') vulnerability in WPENGINE INC Advanced Custom Fields PRO allows Code Injection.This issue affects Advanced Custom Fields PRO: from n/a bef

  • 9.8 Critical severity

    man-group/dtale: Improper Control of Generation of Code

    CVE-2024-3408Man-groupEPSS 78%

    man-group/dtale version 3.10.0 is vulnerable to an authentication bypass and remote code execution (RCE) due to improper input validation. The vulnerability arises from a hardcoded `SECRET_KEY` in the flask configuration, allowing attackers to forge a session

  • 7.2 High severity

    berriai/litellm: Improper Control of Generation of Code

    CVE-2024-4889BerriAI

    A code injection vulnerability exists in the berriai/litellm application, version 1.34.6, due to the use of unvalidated input in the eval function within the secret management system. This vulnerability requires a valid Google KMS configuration file to be expl

  • 7.3 High severity

    Album and Image Gallery Plus Lightbox: Improper Control of Generation of Code

    CVE-2024-4194Essentialplugin

    The The Album and Image Gallery plus Lightbox plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 2.0. This is due to the software allowing users to execute an action that does not properly validate a value

  • 9.8 Critical severity

    jan: Unrestricted Upload of File with Dangerous Type

    CVE-2024-37273Jan

    An arbitrary file upload vulnerability in the /v1/app/appendFileSync interface of Jan v0.4.12 allows attackers to execute arbitrary code via uploading a crafted file.

  • 10.0 Critical severity

    Bricks Builder: Improper Control of Generation of Code

    CVE-2024-25600CodeerEPSS 91.1%

    Improper Control of Generation of Code ('Code Injection') vulnerability in Codeer Limited Bricks Builder allows Code Injection.This issue affects Bricks Builder: from n/a through 1.9.6.

  • 8.8 High severity

    MLflow: Improper Control of Generation of Code

    CVE-2024-37061Mlflow

    Remote Code Execution can occur in versions of the MLflow platform running version 1.11.0 or newer, enabling a maliciously crafted MLproject to execute arbitrary code on an end user’s system when run.

  • 7.8 High severity

    javascript-deobfuscator: Improper Control of Generation of Code

    CVE-2024-36120Ben-sb

    javascript-deobfuscator removes common JavaScript obfuscation techniques. In affected versions crafted payloads targeting expression simplification can lead to code execution. This issue has been patched in version 1.1.0. Users are advised to update. Users una

  • 8.1 High severity

    vanna: Improper Control of Generation of Code

    CVE-2024-5565Vanna-aiEPSS 15.2%

    The Vanna library uses a prompt function to present the user with visualized results, it is possible to alter the prompt using prompt injection and run arbitrary Python code instead of the intended visualization code. Specifically - allowing external input to

  • 9.8 Critical severity

    Rejetto HTTP File Server Improper Neutralization of Special Elements Used in a Template Engine Exploited

    CVE-2024-23692RejettoEPSS 99.5%

    Rejetto HTTP File Server, up to and including version 2.3m, is vulnerable to a template injection vulnerability. This vulnerability allows a remote, unauthenticated attacker to execute arbitrary commands on the affected system by sending a specially crafted HT

  • 8.8 High severity

    Unlimited Elements For Elementor: Improper Control of Generation of Code

    CVE-2023-6743UnitecmsEPSS 1.25%

    The Unlimited Elements For Elementor (Free Widgets, Addons, Templates) plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1.5.89 via the template import functionality. This makes it possible for authenticated atta

  • 7.3 High severity

    smarty: Improper Control of Generation of Code

    CVE-2024-35226Smarty-php

    Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. In affected versions template authors could inject php code by choosing a malicious file name for an extends-tag. Sites that cannot fully trust

  • 9.8 Critical severity

    P3-550E: Improper Control of Generation of Code

    CVE-2024-23601AutomationDirect

    A code injection vulnerability exists in the scan_lib.bin functionality of AutomationDirect P3-550E 1.2.10.9. A specially crafted scan_lib.bin can lead to arbitrary code execution. An attacker can provide a malicious file to trigger this vulnerability.

  • 8.4 High severity

    UTAU: Improper Control of Generation of Code

    CVE-2024-28886Ameya/ayame

    OS command injection vulnerability exists in UTAU versions prior to v0.4.19. If a user of the product opens a crafted UTAU project file (.ust file), an arbitrary OS command may be executed.

  • 9.8 Critical severity

    RhinOS: Improper Control of Generation of Code

    CVE-2024-5407SaltOS

    A vulnerability in RhinOS 3.0-1190 could allow PHP code injection through the "search" parameter in /portal/search.htm. This vulnerability could allow a remote attacker to perform a reverse shell on the remote system, compromising the entire infrastructure.

  • 7.3 High severity

    WP Photo Album Plus: Improper Control of Generation of Code

    CVE-2024-4037Opajaap

    The WP Photo Album Plus plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 8.7.02.003. This is due to the plugin allowing unauthenticated users to execute an action that does not properly validate a value

  • 8.1 High severity

    Email Log: Improper Control of Generation of Code

    CVE-2024-0867WebFactory

    The Email Log plugin for WordPress is vulnerable to Unauthenticated Hook Injection in all versions up to, and including, 2.4.8 via the check_nonce function. This makes it possible for unauthenticated attackers to execute actions with hooks in WordPress under c

  • 8.8 High severity

    Oxygen Builder: Improper Control of Generation of Code

    CVE-2024-4662Oxygen Builder

    The Oxygen Builder plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 4.8.2 via post metadata. This is due to the plugin storing custom data in post metadata without an underscore prefix. This makes it possible fo

  • 8.4 High severity

    seg_windows_driver: Improper Control of Generation of Code

    CVE-2024-33228Insyde

    An issue in the component segwindrvx64.sys of Insyde Software Corp SEG Windows Driver v100.00.07.02 allows attackers to escalate privileges and execute arbitrary code via sending crafted IOCTL requests.

  • 7.8 High severity

    realtek_high_definition_audio_driver: Improper Control of Generation of Code

    CVE-2024-33225Dell

    An issue in the component RTKVHD64.sys of Realtek Semiconductor Corp Realtek(r) High Definition Audio Function Driver v6.0.9549.1 allows attackers to escalate privileges and execute arbitrary code via sending crafted IOCTL requests.

  • 8.8 High severity

    Confluence Data Center: Improper Control of Generation of Code

    CVE-2024-21683AtlassianEPSS 88.3%

    This High severity RCE (Remote Code Execution) vulnerability was introduced in version 5.2 of Confluence Data Center and Server. This RCE (Remote Code Execution) vulnerability, with a CVSS Score of 7.2, allows an authenticated attacker to execute arbitrary cod

  • 7.2 High severity

    VMware vCenter Server: Improper Control of Generation of Code

    CVE-2024-22274VMware vCenter ServerEPSS 2.51%

    The vCenter Server contains an authenticated remote code execution vulnerability. A malicious actor with administrative privileges on the vCenter appliance shell may exploit this issue to run arbitrary commands on the underlying operating system.

  • 9.8 Critical severity

    blackprint_engine: Improper Control of Generation of Code

    CVE-2024-24294Blackprint

    A Prototype Pollution issue in Blackprint @blackprint/engine v.0.9.0 allows an attacker to execute arbitrary code via the _utils.setDeepProperty function of engine.min.js.