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

    WSO2 Micro Integrator: Improper Control of Generation of Code

    CVE-2025-11093WSO2

    An arbitrary code execution vulnerability exists in multiple WSO2 products due to insufficient restrictions in the GraalJS and NashornJS Script Mediator engines. Authenticated users with elevated privileges can execute arbitrary code within the integration run

  • 9.8 Critical severity

    expr-eval: Improper Control of Generation of Code

    CVE-2025-12735SilentmattEPSS 1.76%

    The expr-eval library is a JavaScript expression parser and evaluator designed to safely evaluate mathematical expressions with user-defined variables. However, due to insufficient input validation, an attacker can pass a crafted context object or use MEMBER o

  • 8.8 High severity

    cursor: Improper Limitation of a Pathname to a Restricted Directory

    CVE-2025-64108Cursor

    Cursor is a code editor built for programming with AI. In versions 1.7.44 and below, various NTFS path quirks allow a prompt injection attacker to circumvent sensitive file protections and overwrite files which Cursor requires human approval to overwrite. Modi

  • 7.2 High severity

    xibo-cms: Improper Control of Generation of Code

    CVE-2025-62369Xibosignage

    Xibo is an open source digital signage platform with a web content management system (CMS). Versions 4.3.0 and below contain a Remote Code Execution vulnerability in the CMS Developer menu's Module Templating functionality, allowing authenticated users with "S

  • 8.8 High severity

    Icescrum: Improper Control of Generation of Code

    CVE-2025-60785Kagilum

    A remote code execution (RCE) vulnerability in the Postgres Drivers component of iceScrum v7.54 Pro On-prem allows attackers to execute arbitrary code via a crafted HTML page.

  • 8.8 High severity

    KALLYAS - Creative eCommerce Multi-Purpose…: Improper Control of Generation of Code

    CVE-2025-6990Hogash

    The kallyas theme for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 4.24.0 via the `TH_PhpCode` pagebuilder widget. This is due to the theme not restricting access to the code editor widget for non-administrators. This

  • 7.3 High severity

    Advanced Ads – Ad Manager & AdSense: Improper Control of Generation of Code

    CVE-2025-10487Monetizemore

    The Advanced Ads – Ad Manager & AdSense plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 2.0.12 via the select_one() function. This is due to the endpoint not properly restricting access to the AJAX endpoint or

  • 9.8 Critical severity

    Log Server: Improper Control of Generation of Code

    CVE-2025-34277NagiosEPSS 2.15%

    Nagios Log Server versions prior to 2024R1.3.1 contain a code injection vulnerability where malformed dashboard ID values are not properly validated before being forwarded to an internal API. An attacker able to supply crafted dashboard ID values can cause the

  • 9.1 Critical severity

    Paid Videochat Turnkey Site: Improper Control of Generation of Code

    CVE-2025-62959VideoWhisper

    Improper Control of Generation of Code ('Code Injection') vulnerability in videowhisper Paid Videochat Turnkey Site ppv-live-webcams allows Remote Code Inclusion.This issue affects Paid Videochat Turnkey Site: from n/a through <= 7.3.23.

  • 9.0 Critical severity

    s2Member: Improper Control of Generation of Code

    CVE-2025-62023Cristián Lávaque

    Improper Control of Generation of Code ('Code Injection') vulnerability in Cristián Lávaque s2Member s2member.This issue affects s2Member: from n/a through 250905.

  • 10.0 Critical severity

    Alone: Improper Control of Generation of Code

    CVE-2025-60206Beplusthemes

    Improper Control of Generation of Code ('Code Injection') vulnerability in Beplusthemes Alone alone allows Code Injection.This issue affects Alone: from n/a through <= 7.8.3.

  • 7.4 High severity

    WP Last Modified Info: Improper Control of Generation of Code

    CVE-2025-52756Sayan Datta

    Improper Control of Generation of Code ('Code Injection') vulnerability in Sayan Datta WP Last Modified Info wp-last-modified-info allows Remote Code Inclusion.This issue affects WP Last Modified Info: from n/a through <= 1.9.4.

  • 7.2 High severity

    Kalium: Improper Control of Generation of Code

    CVE-2025-49926Laborator

    Improper Control of Generation of Code ('Code Injection') vulnerability in Laborator Kalium kalium allows Code Injection.This issue affects Kalium: from n/a through <= 3.25.

  • 7.2 High severity

    clipbucket-v5: Improper Control of Generation of Code

    CVE-2025-62429MacWarrior

    ClipBucket v5 is an open source video sharing platform. Prior to version 5.5.2 #147, ClipBucket v5 is vulnerable to arbitrary PHP code execution. In /upload/admin_area/actions/update_launch.php, the "type" parameter from a POST request is embedded into PHP tag

  • 8.8 High severity

    ChanCMS: Improper Control of Generation of Code

    CVE-2025-11905Yanyutao0402

    A vulnerability was found in yanyutao0402 ChanCMS up to 3.3.2. This vulnerability affects the function getArticle of the file app\modules\cms\controller\gather.js. The manipulation results in code injection. The attack may be launched remotely. The exploit has

  • 9.3 Critical severity

    WebFOCUS: Improper Control of Generation of Code

    CVE-2025-11548Ibi

    A remote, unauthenticated privilege escalation in ibi WebFOCUS allows an attacker to gain administrative access to the application which may lead to unauthenticated Remote Code Execution

  • 7.1 High severity

    FortiClientMac: Improper Control of Generation of Code

    CVE-2025-31365Fortinet

    An Improper Control of Generation of Code ('Code Injection') vulnerability [CWE-94] in FortiClientMac 7.4.0 through 7.4.3, 7.2.1 through 7.2.8 may allow an unauthenticated attacker to execute arbitrary code on the victim's host via tricking the user into visit

  • 9.8 Critical severity

    ZXCDN: Improper Control of Generation of Code

    CVE-2025-46581ZTE

    ZTE's ZXCDN product is affected by a Struts remote code execution (RCE) vulnerability. An unauthenticated attacker can remotely execute commands with non-root privileges.

  • 8.8 High severity

    CHARX SEC-3150: Improper Control of Generation of Code

    CVE-2025-41699Phoenix Contact

    An low privileged remote attacker with an account for the Web-based management can change the system configuration to perform a command injection as root, resulting in a total loss of confidentiality, availability and integrity due to improper control of gener

  • 9.6 Critical severity

    cherry-studio: Improper Control of Generation of Code

    CVE-2025-61929CherryHQ

    Cherry Studio is a desktop client that supports for multiple LLM providers. Cherry Studio registers a custom protocol called `cherrystudio://`. When handling the MCP installation URL, it parses the base64-encoded configuration data and directly executes the co

  • 7.2 High severity

    happy-dom: Improper Control of Generation of Code

    CVE-2025-61927Capricorn86

    Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. Happy DOM v19 and lower contains a security vulnerability that puts the owner system at the risk of RCE (Remote Code Execution) attacks. A Node.js VM Context is not

  • 8.1 High severity

    pyload: Improper Neutralization of Special Elements in Output Used by a Downstream Component

    CVE-2025-61773Pyload

    pyLoad is a free and open-source download manager written in Python. In versions prior to 0.5.0b3.dev91, pyLoad web interface contained insufficient input validation in both the Captcha script endpoint and the Click'N'Load (CNL) Blueprint. This flaw allowed un

  • 9.9 Critical severity

    grafana-image-renderer: Improper Control of Generation of Code

    CVE-2025-11539Grafana

    Grafana Image Renderer is vulnerable to remote code execution due to an arbitrary file write vulnerability. This is due to the fact that the /render/csv endpoint lacked validation of the filePath parameter that allowed an attacker to save a shared object to an

  • 9.3 Critical severity

    pyvista: Improper Control of Generation of Code

    CVE-2025-61774Pyvista

    PyVista provides 3D plotting and mesh analysis through an interface for the Visualization Toolkit (VTK). Version 0.46.3 of the PyVista Project is vulnerable to remote code execution via dependency confusion. Two pieces of code use`--extra-index-url`. But when

  • 9.8 Critical severity

    ILIAS: Improper Neutralization of Special Elements in Output Used by a Downstream Component

    CVE-2025-11344Ilias

    A vulnerability was detected in ILIAS up to 8.23/9.13/10.1. Affected by this vulnerability is an unknown functionality of the component Certificate Import Handler. The manipulation results in Remote Code Execution. The attack may be performed from remote. Upgr

  • 8.8 High severity

    eidos: Improper Control of Generation of Code

    CVE-2025-54374Mayneyao

    Eidos is an extensible framework for Personal Data Management. Versions 0.21.0 and below contain a one-click remote code execution vulnerability. An attacker can exploit this vulnerability by embedding a specially crafted eidos: URL on any website, including a

  • 7.3 High severity

    redis: Improper Control of Generation of Code

    CVE-2025-46818Redis

    Redis is an open source, in-memory database that persists on disk. Versions 8.2.1 and below allow an authenticated user to use a specially crafted Lua script to manipulate different LUA objects and potentially run their own code in the context of another user.

  • 8.8 High severity

    cursor: Improper Control of Generation of Code

    CVE-2025-61593Cursor

    Cursor is a code editor built for programming with AI. In versions 1.7 and below, a vulnerability in the way Cursor CLI Agent protects its sensitive files (i.e. */.cursor/cli.json) allows attackers to modify the content of the files through prompt injection, t

  • 7.5 High severity

    cursor: Improper Control of Generation of Code

    CVE-2025-61590Cursor

    Cursor is a code editor built for programming with AI. Versions 1.6 and below are vulnerable to Remote Code Execution (RCE) attacks through Visual Studio Code Workspaces. Workspaces allow users to open more than a single folder and save specific settings (pret

  • 8.8 High severity

    claude-code: Improper Control of Generation of Code

    CVE-2025-59536AnthropicsEPSS 25.2%

    Claude Code is an agentic coding tool. Versions before 1.0.111 were vulnerable to Code Injection due to a bug in the startup trust dialog implementation. Claude Code could be tricked to execute code contained in a project before the user accepted the startup t

  • 9.3 Critical severity

    risc0: Improper Control of Generation of Code

    CVE-2025-61588Risc0

    RISC Zero is a zero-knowledge verifiable general computing platform based on zk-STARKs and the RISC-V microarchitecture. In versions 2.0.2 and below of risc0-zkvm-platform, when the zkVM guest calls sys_read, the host is able to use a crafted response to write

  • 8.8 High severity

    Dolibarr Erp/crm: Improper Control of Generation of Code

    CVE-2025-56588Dolibarr

    Dolibarr ERP & CRM v21.0.1 were discovered to contain a remote code execution (RCE) vulnerability in the User module configuration via the computed field parameter.

  • 9.8 Critical severity

    Knowage-Server: Improper Control of Generation of Code

    CVE-2025-59954KnowageLabs

    Knowage is an open source analytics and business intelligence suite. Versions 8.1.26 and below are vulnerable to Remote Code Exection through using an unsafe org.apache.commons.jxpath.JXPathContext in MetaService.java service. This issue is fixed in version 8.

  • 8.7 High severity

    MinIO Java SDK is a Simple Storage Service (aka S3) client to perform bucket and object…

    CVE-2025-59952MinIO

    MinIO Java SDK is a Simple Storage Service (aka S3) client to perform bucket and object operations to any Amazon S3 compatible object storage service. In minio-java versions prior to 8.6.0, XML tag values containing references to system properties or environme

  • 7.2 High severity

    MuYuCMS: Improper Control of Generation of Code

    CVE-2025-10993MuYuCMS

    A security flaw has been discovered in MuYuCMS up to 2.7. Affected by this issue is some unknown functionality of the file /admin.php of the component Template Management. The manipulation results in code injection. It is possible to launch the attack remotely

  • 9.9 Critical severity

    gardener-extension-provider-aws: Improper Control of Generation of Code

    CVE-2025-59823Gardener

    Project Gardener implements the automated management and operation of Kubernetes clusters as a service. Code injection may be possible in Gardener Extensions for AWS providers prior to version 1.64.0, Azure providers prior to version 1.55.0, OpenStack provider

  • 7.8 High severity

    Megatron-LM: Improper Control of Generation of Code

    CVE-2025-23354NVIDIA

    NVIDIA Megatron-LM for all platforms contains a vulnerability in the ensemble_classifer script where malicious data created by an attacker may cause an injection. A successful exploit of this vulnerability may lead to code execution, escalation of privileges,

  • 7.8 High severity

    Megatron-LM: Improper Control of Generation of Code

    CVE-2025-23353NVIDIA

    NVIDIA Megatron-LM for all platforms contains a vulnerability in the msdp preprocessing script where malicious data created by an attacker may cause an injection. A successful exploit of this vulnerability may lead to code execution, escalation of privileges,

  • 7.8 High severity

    Megatron-LM: Improper Control of Generation of Code

    CVE-2025-23349NVIDIA

    NVIDIA Megatron-LM for all platforms contains a vulnerability in the tasks/orqa/unsupervised/nq.py component, where an attacker may cause a code injection. A successful exploit of this vulnerability may lead to code execution, escalation of privileges, informa

  • 7.8 High severity

    Megatron-LM: Improper Control of Generation of Code

    CVE-2025-23348NVIDIA

    NVIDIA Megatron-LM for all platforms contains a vulnerability in the pretrain_gpt script, where malicious data created by an attacker may cause a code injection issue. A successful exploit of this vulnerability may lead to code execution, escalation of privile