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

  • 7.5 High severity

    h2oai/h2o-3: Improper Control of Generation of Code

    CVE-2024-10572H2oai

    In h2oai/h2o-3 version 3.46.0.1, the `run_tool` command exposes classes in the `water.tools` package through the `ast` parser. This includes the `XGBoostLibExtractTool` class, which can be exploited to shut down the server and write large files to arbitrary di

  • 7.2 High severity

    langgenius/dify: Improper Control of Generation of Code

    CVE-2024-10252LangGenius

    A vulnerability in langgenius/dify versions <=v0.9.1 allows for code injection via internal SSRF requests in the Dify sandbox service. This vulnerability enables an attacker to execute arbitrary Python code with root privileges within the sandbox environment,

  • 9.8 Critical severity

    Emlog: Improper Control of Generation of Code

    CVE-2025-29401Emlog

    An arbitrary file upload vulnerability in the component /views/plugin.php of emlog pro v2.5.7 allows attackers to execute arbitrary code via uploading a crafted PHP file.

  • 8.4 High severity

    FortiSOAR: Improper Control of Generation of Code

    CVE-2024-21760Fortinet

    An improper control of generation of code ('Code Injection') vulnerability [CWE-94] in FortiSOAR Connector FortiSOAR 7.4 all versions, 7.3 all versions, 7.2 all versions, 7.0 all versions, 6.4 all versions may allow an authenticated attacker to execute arbitra

  • 7.2 High severity

    LogicalDOC Community: Improper Control of Generation of Code

    CVE-2024-54448LogicalDOC

    The Automation Scripting functionality can be exploited by attackers to run arbitrary system commands on the underlying operating system. An account with administrator privileges or that has been explicitly granted access to use Automation Scripting is needed

  • 7.3 High severity

    Appointment Booking Calendar — Simply Schedule…: Improper Control of Generation of Code

    CVE-2025-1119Croixhaug

    The Appointment Booking Calendar — Simply Schedule Appointments Booking Plugin plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 1.6.8.5. This is due to the software allowing users to execute an action th

  • 9.0 Critical severity

    graphql-ruby: Improper Control of Generation of Code

    CVE-2025-27407RmosolgoEPSS 3.1%

    graphql-ruby is a Ruby implementation of GraphQL. Starting in version 1.11.5 and prior to versions 1.11.8, 1.12.25, 1.13.24, 2.0.32, 2.1.14, 2.2.17, and 2.3.21, loading a malicious schema definition in `GraphQL::Schema.from_introspection` (or `GraphQL::Schema:

  • 8.8 High severity

    Plenti: Improper Control of Generation of Code

    CVE-2025-26260Plenti

    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.

  • 7.7 High severity

    Ptz Dual Band Camera Firmware: Improper Control of Generation of Code

    CVE-2025-25680Lsc

    LSC Smart Connect LSC Indoor PTZ Camera 7.6.32 is contains a RCE vulnerability in the tuya_ipc_direct_connect function of the anyka_ipc process. The vulnerability allows arbitrary code execution through the Wi-Fi configuration process when a specially crafted

  • 9.8 Critical severity

    Keras: Improper Control of Generation of Code

    CVE-2025-1550GoogleEPSS 2.6%

    The Keras Model.load_model function permits arbitrary code execution, even with safe_mode=True, through a manually constructed, malicious .keras archive. By altering the config.json file within the archive, an attacker can specify arbitrary Python modules and

  • 7.3 High severity

    WPCS – WordPress Currency Switcher Professional: Improper Control of Generation of Code

    CVE-2025-2169RealMag777

    The The WPCS – WordPress Currency Switcher Professional plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 1.2.0.4. This is due to the software allowing users to execute an action that does not properly va

  • 10.0 Critical severity

    Fresh Framework: Improper Control of Generation of Code

    CVE-2025-26936FRESHFACE

    Improper Control of Generation of Code ('Code Injection') vulnerability in FRESHFACE Fresh Framework fresh-framework allows Code Injection.This issue affects Fresh Framework: from n/a through <= 1.70.0.

  • 9.8 Critical severity

    PlotAI: Improper Neutralization of Special Elements used in a Command

    CVE-2025-1497MljarEPSS 1.04%

    A vulnerability, that could result in Remote Code Execution (RCE), has been found in PlotAI. Lack of validation of LLM-generated output allows attacker to execute arbitrary Python code. Vendor commented out vulnerable line, further usage of the software requir

  • 7.2 High severity

    Allow PHP Execute: Improper Control of Generation of Code

    CVE-2024-13890Sksdev

    The Allow PHP Execute plugin for WordPress is vulnerable to PHP Code Injection in all versions up to, and including, 1.0. This is due to allowing PHP code to be entered by all users for whom unfiltered HTML is allowed. This makes it possible for authenticated

  • 7.1 High severity

    QTS: Improper Neutralization of CRLF Sequences

    CVE-2024-53693QNAP

    An improper neutralization of CRLF sequences ('CRLF Injection') vulnerability has been reported to affect several QNAP operating system versions. If exploited, the vulnerability could allow remote attackers who have gained user access to modify application dat

  • 10.0 Critical severity

    Tripleplay: Improper Control of Generation of Code

    CVE-2024-50707Uniguest

    Unauthenticated remote code execution vulnerability in Uniguest Tripleplay before 24.2.1 allows remote attackers to execute arbitrary code via the X-Forwarded-For header in an HTTP GET request.

  • 10.0 Critical severity

    Tripleplay: Improper Control of Generation of Code

    CVE-2024-50704Uniguest

    Unauthenticated remote code execution vulnerability in Uniguest Tripleplay before 24.2.1 allows remote attackers to execute arbitrary code via a specially crafted HTTP POST request.

  • 9.8 Critical severity

    Ark Theme Core: Improper Control of Generation of Code

    CVE-2025-26970FRESHFACE

    Improper Control of Generation of Code ('Code Injection') vulnerability in FRESHFACE Ark Theme Core ark-core allows Code Injection.This issue affects Ark Theme Core: from n/a through < 1.71.0.

  • 9.9 Critical severity

    ToDesktop: Improper Control of Generation of Code

    CVE-2025-27554ToDesktop

    ToDesktop before 2024-10-03, as used by Cursor before 2024-10-03 and other applications, allows remote attackers to execute arbitrary commands on the build server (e.g., read secrets from the desktopify config.prod.json file), and consequently deploy updates t

  • 9.9 Critical severity

    mautic/core: Relative Path Traversal

    CVE-2024-47051MauticEPSS 1.8%

    This advisory addresses two critical security vulnerabilities present in Mautic versions before 5.2.3. These vulnerabilities could be exploited by authenticated users. * Remote Code Execution (RCE) via Asset Upload: A Remote Code Execution vulnerability has be

  • 9.8 Critical severity

    Custom Post Type Date Archives: Improper Control of Generation of Code

    CVE-2025-1510Keesiemeijer

    The The Custom Post Type Date Archives plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 2.7.1. This is due to the software allowing users to execute an action that does not properly validate a value befo

  • 9.8 Critical severity

    Show Me The Cookies: Improper Control of Generation of Code

    CVE-2025-1509Versluis

    The The Show Me The Cookies plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 1.0. This is due to the software allowing users to execute an action that does not properly validate a value before running do

  • 7.2 High severity

    Head, Footer and Post Injections: Improper Control of Generation of Code

    CVE-2024-13900Satollo

    The Head, Footer and Post Injections plugin for WordPress is vulnerable to PHP Code Injection in all versions up to, and including, 3.3.0. This makes it possible for authenticated attackers, with Administrator-level access and above, to inject PHP Code in mult

  • 9.8 Critical severity

    Ac10 Firmware: Improper Neutralization of Special Elements used in a Command

    CVE-2025-25675TendaEPSS 1.34%

    Tenda AC10 V1.0 V15.03.06.23 has a command injection vulnerablility located in the formexeCommand function. The str variable receives the cmdinput parameter from a POST request and is later assigned to the cmd_buf variable, which is directly used in the doSyst

  • 9.8 Critical severity

    XWiki Platform Eval Injection Exploited

    CVE-2025-24893XWikiEPSS 100%

    XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Any guest can perform arbitrary remote code execution through a request to `SolrSearch`. This impacts the confidentiality, integrity and availability of th

  • 7.8 High severity

    Security Verify Access: Improper Control of Generation of Code

    CVE-2025-0161IBM

    IBM Security Verify Access Appliance 10.0.0.0 through 10.0.0.9 and 11.0.0.0 could allow a local user to execute arbitrary code due to improper restrictions on code generation.

  • 8.8 High severity

    Restaurant Booking System: Improper Control of Generation of Code

    CVE-2023-51313Phpjabbers

    PHPJabbers Restaurant Booking System v3.0 is vulnerable to CSV Injection vulnerability which allows an attacker to execute remote code. The vulnerability exists due to insufficient input validation on Languages section Labels any parameters field in System Opt

  • 9.8 Critical severity

    WooCommerce Food - Restaurant Menu & Food…: Improper Control of Generation of Code

    CVE-2024-13792Ex-Themes

    The WooCommerce Food - Restaurant Menu & Food ordering plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 3.3.2. This is due to the software allowing users to execute an action that does not properly valid

  • 7.3 High severity

    Bento4: Improper Control of Generation of Code

    CVE-2025-25944Axiosys

    Buffer Overflow vulnerability in Bento4 v.1.6.0-641 allows a local attacker to execute arbitrary code via the Ap4RtpAtom.cpp, specifically in AP4_RtpAtom::AP4_RtpAtom, during the execution of mp4fragment with a crafted MP4 input file.

  • 7.8 High severity

    Bento4: Improper Control of Generation of Code

    CVE-2025-25943Axiosys

    Buffer Overflow vulnerability in Bento4 v.1.6.0-641 allows a local attacker to execute arbitrary code via the AP4_Stz2Atom::AP4_Stz2Atom component located in Ap4Stz2Atom.cpp.

  • 9.8 Critical severity

    PressMart - Modern Elementor WooCommerce…: Improper Control of Generation of Code

    CVE-2024-13797PressLayouts

    The PressMart - Modern Elementor WooCommerce WordPress Theme theme for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 1.2.16. This is due to the software allowing users to execute an action that does not properly

  • 9.8 Critical severity

    jsonpath-plus: Improper Control of Generation of Code

    CVE-2025-1302Jsonpath-plusEPSS 10.4%

    Versions of the package jsonpath-plus before 10.3.0 are vulnerable to Remote Code Execution (RCE) due to improper input sanitization. An attacker can execute aribitrary code on the system by exploiting the unsafe default usage of eval='safe' mode. **Note:** Th

  • 9.8 Critical severity

    Avada | Website Builder For WordPress &…: Improper Control of Generation of Code

    CVE-2024-13346ThemeFusionEPSS 2.3%

    The Avada | Website Builder For WordPress & WooCommerce theme for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 7.11.13. This is due to the software allowing users to execute an action that does not properly val

  • 9.8 Critical severity

    Avada (Fusion) Builder: Improper Control of Generation of Code

    CVE-2024-13345ThemeFusion

    The Avada Builder plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 3.11.13. This is due to the software allowing users to execute an action that does not properly validate a value before running do_short

  • 8.8 High severity

    Global Gallery - WordPress Responsive Gallery: Improper Control of Generation of Code

    CVE-2024-13814LCweb

    The The Global Gallery - WordPress Responsive Gallery plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 9.1.5. This is due to the software allowing users to execute an action that does not properly valida

  • 7.2 High severity

    Connect Secure: Improper Control of Generation of Code

    CVE-2024-10644IvantiEPSS 2.82%

    Code injection in Ivanti Connect Secure before version 22.7R2.4 and Ivanti Policy Secure before version 22.7R1.3 allows a remote authenticated attacker with admin privileges to achieve remote code execution.

  • 8.8 High severity

    iOS and iPadOS: Improper Control of Generation of Code

    CVE-2024-27859Apple

    The issue was addressed with improved memory handling. This issue is fixed in iOS 17.4 and iPadOS 17.4, macOS Sonoma 14.4, tvOS 17.4, visionOS 1.1, watchOS 10.4. Processing web content may lead to arbitrary code execution.

  • 7.2 High severity

    WP All Export Pro: Improper Control of Generation of Code

    CVE-2024-7425WP All Import

    The WP ALL Export Pro plugin for WordPress is vulnerable to unauthorized modification of data that can lead to privilege escalation due to improper user input validation and sanitization in all versions up to, and including, 1.9.1. This makes it possible for a

  • 8.8 High severity

    WP All Export Pro: Improper Control of Generation of Code

    CVE-2024-7419WP All Import

    The WP ALL Export Pro plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1.9.1 via the custom export fields. This is due to the missing input validation and sanitization of user-supplied data. This makes it possib

  • 7.3 High severity

    CURCY – Multi Currency for WooCommerce –…: Improper Control of Generation of Code

    CVE-2024-13487VillaTheme

    The The CURCY – Multi Currency for WooCommerce – The best free currency exchange plugin – Run smoothly on WooCommerce 9.x plugin for WordPress is vulnerable to arbitrary shortcode execution via the get_products_price() function in all versions up to, and inclu