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

    Shared library: Improper Control of Generation of Code

    CVE-2026-0969HashiCorp

    The serialize function used to compile MDX in next-mdx-remote is vulnerable to arbitrary code execution due to insufficient sanitization of MDX content. This vulnerability, CVE-2026-0969, is fixed in next-mdx-remote 6.0.0.

  • 7.6 High severity

    Red Hat OpenShift AI 3.3: Improper Control of Generation of Code

    CVE-2025-69872Red Hat

    DiskCache (python-diskcache) through 5.6.3 uses Python pickle for serialization by default. An attacker with write access to the cache directory can achieve arbitrary code execution when a victim application reads from the cache.

  • 7.0 High severity

    EcoStruxure Building Operation Workstation: Improper Control of Generation of Code

    CVE-2026-1226Schneider Electric

    CWE‑94: Improper Control of Generation of Code vulnerability exists that could cause execution of untrusted or unintended code within the application when maliciously crafted design content is processed through a TGML graphics file.

  • 8.8 High severity

    Custom Block Builder – Lazy Blocks: Improper Control of Generation of Code

    CVE-2026-1560NkoEPSS 10.4%

    The Custom Block Builder – Lazy Blocks plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 4.2.0 via multiple functions in the 'LazyBlocks_Blocks' class. This makes it possible for authenticated attackers, with Con

  • 7.2 High severity

    Lucky Wheel Giveaway: Improper Control of Generation of Code

    CVE-2025-14541VillaTheme

    The Lucky Wheel Giveaway plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1.0.22 via the conditional_tags parameter. This is due to the plugin using PHP's eval() function on user-controlled input without proper

  • 8.8 High severity

    Microsoft Defender for Endpoint for Linux: Improper Control of Generation of Code

    CVE-2026-21537Microsoft

    Improper control of generation of code ('code injection') in Microsoft Defender for Linux allows an unauthorized attacker to execute code over an adjacent network.

  • 8.8 High severity

    Microsoft Visual Studio 2022 version 17.14: Improper Neutralization of Special Elements used in a Command

    CVE-2026-21256MicrosoftEPSS 1.16%

    Improper neutralization of special elements used in a command ('command injection') in GitHub Copilot and Visual Studio allows an unauthorized attacker to execute code over a network.

  • 8.8 High severity

    zai-shell: Improper Control of Generation of Code

    CVE-2026-25807TaklaXBR

    ZAI Shell is an autonomous SysOps agent designed to navigate, repair, and secure complex environments. Prior to 9.0.3, the P2P terminal sharing feature (share start) opens a TCP socket on port 5757 without any authentication mechanism. Any remote attacker can

  • 9.8 Critical severity

    jsonpath: Improper Control of Generation of Code

    CVE-2026-1615JsonpathEPSS 1.15%

    Versions of the package jsonpath before 1.3.0 are vulnerable to Arbitrary Code Injection via unsafe evaluation of user-supplied JSON Path expressions. The library relies on the static-eval module to process JSON Path input, which is not designed to handle untr

  • 7.8 High severity

    calibre: Improper Limitation of a Pathname to a Restricted Directory

    CVE-2026-25636Kovidgoyal

    calibre is an e-book manager. In 9.1.0 and earlier, a path traversal vulnerability in Calibre's EPUB conversion allows a malicious EPUB file to corrupt arbitrary existing files writable by the Calibre process. During conversion, Calibre resolves CipherReferenc

  • 10.0 Critical severity

    SandboxJS: Improper Control of Generation of Code

    CVE-2026-25587Nyariv

    SandboxJS is a JavaScript sandboxing library. Prior to 0.8.29, as Map is in SAFE_PROTOYPES, it's prototype can be obtained via Map.prototype. By overwriting Map.prototype.has the sandbox can be escaped. This vulnerability is fixed in 0.8.29.

  • 8.8 High severity

    fermat-mcp: Improper Control of Generation of Code

    CVE-2026-2008Abhiphile

    A vulnerability was detected in abhiphile fermat-mcp up to 47f11def1cd37e45dd060f30cdce346cbdbd6f0a. This vulnerability affects the function eqn_chart of the file fmcp/mpl_mcp/core/eqn_chart.py. Performing a manipulation of the argument equations results in co

  • 9.6 Critical severity

    langroid: Improper Control of Generation of Code

    CVE-2026-25481Langroid

    Langroid is a framework for building large-language-model-powered applications. Prior to version 0.59.32, there is a bypass to the fix for CVE-2025-46724. TableChatAgent can call pandas_eval tool to evaluate the expression. There is a WAF in langroid/utils/pan

  • 8.8 High severity

    ci4ms: Unrestricted Upload of File with Dangerous Type

    CVE-2026-25510Ci4-cms-erp

    CI4MS is a CodeIgniter 4-based CMS skeleton that delivers a production-ready, modular architecture with RBAC authorization and theme support. Prior to version 0.28.5.0, an authenticated user with file editor permissions can achieve Remote Code Execution (RCE)

  • 8.8 High severity

    claude-code: Improper Neutralization of Special Elements used in an OS Command

    CVE-2026-24887Anthropics

    Claude Code is an agentic coding tool. Prior to version 2.0.72, due to an error in command parsing, it was possible to bypass the Claude Code confirmation prompt to trigger execution of untrusted commands through the find command. Reliably exploiting this requ

  • 7.8 High severity

    Megatron-LM: Improper Control of Generation of Code

    CVE-2026-24149NVIDIA

    NVIDIA Megatron-LM for all platforms contains a vulnerability in a 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 privileges, informatio

  • 9.8 Critical severity

    Fuxa: Improper Control of Generation of Code

    CVE-2025-69983Frangoteam

    FUXA v1.2.7 allows Remote Code Execution (RCE) via the project import functionality. The application does not properly sanitize or sandbox user-supplied scripts within imported project files. An attacker can upload a malicious project containing system command

  • 10.0 Critical severity

    SandboxJS: Improperly Controlled Modification of Object Prototype Attributes

    CVE-2026-25142NyarivEPSS 1.21%

    SandboxJS is a JavaScript sandboxing library. Prior to 0.8.27, SanboxJS does not properly restrict __lookupGetter__ which can be used to obtain prototypes, which can be used for escaping the sandbox / remote code execution. This vulnerability is fixed in 0.8.2

  • 8.8 High severity

    backstage: Improper Control of Generation of Code

    CVE-2026-25153Backstage

    Backstage is an open framework for building developer portals, and @backstage/plugin-techdocs-node provides common node.js functionalities for TechDocs. In versions of @backstage/plugin-techdocs-node prior to 1.13.11 and 1.14.1, when TechDocs is configured wit

  • 9.8 Critical severity

    orval: Improper Control of Generation of Code

    CVE-2026-25141Orval-labs

    Orval generates type-safe JS clients (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification. Versions starting with 7.19.0 and prior to 7.21.0 and 8.2.0 have an incomplete fix for CVE-2026-23947. While the jsStringEscape function properly handles s

  • 8.1 High severity

    activestorage: Improper Neutralization of Special Elements used in a Command

    CVE-2025-24293RailsEPSS 5.58%

    # Active Storage allowed transformation methods potentially unsafe Active Storage attempts to prevent the use of potentially unsafe image transformation methods and parameters by default. The default allowed list contains three methods allow for the circumvent

  • 7.8 High severity

    Salt: Improper Control of Generation of Code

    CVE-2025-62348Salt Project

    Salt's junos execution module contained an unsafe YAML decode/load usage. A specially crafted YAML payload processed by the junos module could lead to unintended code execution under the context of the Salt process.

  • 9.8 Critical severity

    Ivanti Endpoint Manager Mobile (EPMM) Code Injection Exploited

    CVE-2026-1340IvantiEPSS 98.6%

    A code injection in Ivanti Endpoint Manager Mobile allowing attackers to achieve unauthenticated remote code execution.

  • 9.8 Critical severity

    Ivanti Endpoint Manager Mobile (EPMM) Code Injection Exploited

    CVE-2026-1281IvantiEPSS 98.7%

    A code injection in Ivanti Endpoint Manager Mobile allowing attackers to achieve unauthenticated remote code execution.

  • 8.8 High severity

    AutoGPT: Improper Control of Generation of Code

    CVE-2026-24780Significant-GravitasEPSS 1.26%

    AutoGPT is a platform that allows users to create, deploy, and manage continuous artificial intelligence agents that automate complex workflows. Prior to autogpt-platform-beta-v0.6.44, AutoGPT Platform's block execution endpoints (both main web API and externa

  • 8.8 High severity

    Erugo: Unrestricted Upload of File with Dangerous Type

    CVE-2026-24897ErugoOSSEPSS 3.27%

    Erugo is a self-hosted file-sharing platform. In versions up to and including 0.2.14, an authenticated low-privileged user can upload arbitrary files to any specified location due to insufficient validation of user‑supplied paths when creating shares. By speci

  • 7.8 High severity

    Red Hat Fuse 7: Improper Control of Generation of Code

    CVE-2025-57283Red Hat

    The Node.js package browserstack-local 1.5.8 contains a command injection vulnerability. This occurs because the logfile variable is not properly sanitized in lib/Local.js.

  • 10.0 Critical severity

    SandboxJS: Improper Control of Generation of Code

    CVE-2026-23830NyarivEPSS 1.22%

    SandboxJS is a JavaScript sandboxing library. Versions prior to 0.8.26 have a sandbox escape vulnerability due to `AsyncFunction` not being isolated in `SandboxFunction`. The library attempts to sandbox code execution by replacing the global `Function` constru

  • 8.8 High severity

    pytorch: Improper Control of Generation of Code

    CVE-2026-24747PyTorch

    PyTorch is a Python package that provides tensor computation. Prior to version 2.10.0, a vulnerability in PyTorch's `weights_only` unpickler allows an attacker to craft a malicious checkpoint file (`.pth`) that, when loaded with `torch.load(..., weights_only=T

  • 9.8 Critical severity

    Mobile Shop Management System: Improper Control of Generation of Code

    CVE-2025-69564Fabian

    code-projects Mobile Shop Management System 1.0 is vulnerable to SQL Injection in /ExAddNewUser.php via the Name, Address, email, UserName, Password, confirm_password, Role, Branch, and Activate parameters.

  • 10.0 Critical severity

    Minecraft-Rcon-Manage: Improper Control of Generation of Code

    CVE-2026-24871Pilgrimage233

    Improper Control of Generation of Code ('Code Injection') vulnerability in pilgrimage233 Minecraft-Rcon-Manage.This issue affects Minecraft-Rcon-Manage: before 3.0.

  • 10.0 Critical severity

    vm2: Improper Control of Generation of Code

    CVE-2026-22709PatriksimekEPSS 1.27%

    vm2 is an open source vm/sandbox for Node.js. In vm2 prior to version 3.10.2, `Promise.prototype.then` `Promise.prototype.catch` callback sanitization can be bypassed. This allows attackers to escape the sandbox and run arbitrary code. In lib/setup-sandbox.js,

  • 7.3 High severity

    BuddyPress: Improper Control of Generation of Code

    CVE-2024-11976BuddyPress

    The The BuddyPress plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 14.3.3. 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

    Moodle: Improper Control of Generation of Code

    CVE-2025-67847Moodle

    A flaw was found in Moodle. An attacker with access to the restore interface could trigger server-side execution of arbitrary code. This is due to insufficient validation of restore input, which leads to unintended interpretation by core restore routines. Succ

  • 7.1 High severity

    Langflow: Improper Control of Generation of Code

    CVE-2026-0771Langflow

    Langflow PythonFunction Code Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Langflow. Attack vectors and exploitability will vary depending on the configuration o

  • 9.8 Critical severity

    Langflow: Improper Control of Generation of Code

    CVE-2026-0768LangflowEPSS 28.1%

    Langflow code Code Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Langflow. Authentication is not required to exploit this vulnerability. The specific flaw exists

  • 9.8 Critical severity

    MetaGPT: Improper Control of Generation of Code

    CVE-2026-0761Foundation AgentsEPSS 2.52%

    Foundation Agents MetaGPT actionoutput_str_to_mapping Code Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Foundation Agents MetaGPT. Authentication is not require

  • 9.8 Critical severity

    orval: Improper Control of Generation of Code

    CVE-2026-24132Orval-labs

    Orval generates type-safe JS clients (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification. Versions 7.19.0 and below and 8.0.0-rc.0 through 8.0.2 allow untrusted OpenAPI specifications to inject arbitrary TypeScript/JavaScript into generated mock

  • 7.5 High severity

    Beaver Builder: Improper Control of Generation of Code

    CVE-2025-69319Beaver Builder

    Improper Control of Generation of Code ('Code Injection') vulnerability in Beaver Builder Beaver Builder beaver-builder-lite-version allows Code Injection.This issue affects Beaver Builder: from n/a through <= 2.9.4.1.

  • 9.0 Critical severity

    Event Tickets with Ticket Scanner: Improper Control of Generation of Code

    CVE-2025-68015Vollstart

    Improper Control of Generation of Code ('Code Injection') vulnerability in Vollstart Event Tickets with Ticket Scanner event-tickets-with-ticket-scanner allows Code Injection.This issue affects Event Tickets with Ticket Scanner: from n/a through <= 2.8.5.