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

    CodeWhale: Improper Control of Generation of Code

    CVE-2026-75911Hmbown

    CodeWhale versions before 0.8.64 fail to properly validate the allow_shell configuration parameter from project config files, allowing attackers to enable arbitrary shell command execution by committing a malicious .codewhale/config.toml file to a repository.

  • 7.8 High severity

    CodeWhale: Improper Control of Generation of Code

    CVE-2026-75858Hmbown

    CodeWhale (packages codewhale / codewhale-tui) versions >= 0.8.41 and < 0.8.64 contain a remote code execution vulnerability in the rlm_eval tool. The tool's approval_requirement() returns ApprovalRequirement::Auto, which the engine treats as 'never prompt,' c

  • 7.8 High severity

    vim: Improper Control of Generation of Code

    CVE-2026-73073Vim

    Vim is an open source, command line text editor. Prior to 9.2.0845, StructMembers() in runtime/autoload/ccomplete.vim constructs and executes a vimgrep command using an insufficiently escaped typeref: or typename: value from a tags file, allowing an unterminat

  • 9.8 Critical severity

    mybb: Improper Control of Generation of Code

    CVE-2026-45117MyBBEPSS 1.15%

    MyBB is free and open source forum software. From 1.8.13 until 1.8.40, the installer module does not properly escape user-supplied database configuration values written to the configuration file, resulting in PHP code injection and remote code execution when t

  • 8.8 High severity

    ohmyzsh: Improper Control of Generation of Code

    CVE-2026-50187Ohmyzsh

    Oh My Zsh is a community-driven framework for managing Zsh configuration. Prior to 2026-05-28, the dotenv plugin in plugins/dotenv/dotenv.plugin.zsh passes ZSH_DOTENV_FILE to source after a directory change into a folder containing a .env file, allowing syntac

  • 8.8 High severity

    grav: Improper Control of Generation of Code

    CVE-2026-75827Grav

    Grav before 2.0.15 contains an arbitrary file write vulnerability in the Blueprint dynamic-data bare-function validation that uses an incomplete denylist instead of a positive allowlist. Attackers with page-edit or blueprint-config access can invoke the error_

  • 7.0 High severity

    FreeCAD: Improper Control of Generation of Code

    CVE-2026-34789FreeCAD

    FreeCAD is a free and open-source multiplatform 3D parametric modeler. Prior to 1.1.2, src/App/PropertyPythonObject.cpp in PropertyPythonObject::Restore() passes the attacker-controlled module attribute from serialized PropertyPythonObject XML directly to PyIm

  • 9.1 Critical severity

    GitLab: Improper Control of Generation of Code

    CVE-2026-19478GitLabEPSS 2.15%

    GitLab has remediated an issue in GitLab CE/EE affecting all versions from 18.2 before 18.11.11, 19.0 before 19.0.8, 19.1 before 19.1.6, and 19.2 before 19.2.4 that under certain conditions could allow an unauthenticated user to remotely modify or delete publi

  • 10.0 Critical severity

    Sourcerer extension for Joomla: Improper Control of Generation of Code

    CVE-2026-74253Regularlabs.com

    Joomla Extension - regularlabs.com - Unauthenticated RCE through unverified reflected user input in Sourcerer < 16.0.0 - Regular Labs Sourcerer before 16.0.0 processes {source} blocks found in Joomla’s final rendered HTML without reliably determining where tha

  • 7.4 High severity

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

    CVE-2026-19980GL.iNet

    A security flaw has been discovered in GL.iNet A1300, AX1800, AXT1800, BE1400, BE3600, BE6500, BE9300, BE10000, E5800, MT2500, MT3000, MT3600BE, MT5000, MT6000, X2000, X3000 and XE3000 up to 4.8.x. Affected by this issue is the function ui.update_langs of the

  • 7.2 High severity

    WCPOS – Point of Sale (POS) plugin for…: Improper Control of Generation of Code

    CVE-2026-17581KilbotEPSS 1.37%

    The WCPOS – Point of Sale (POS) plugin for WooCommerce plugin for WordPress is vulnerable to Code Injection via the 'thermal' Template Engine in all versions up to, and including, 1.9.14 due to the Receipt_Renderer_Factory dispatching templates with the 'therm

  • 7.2 High severity

    ImpressCMS: Improper Control of Generation of Code

    CVE-2026-73679ImpressCMSEPSS 1.13%

    ImpressCMS contains an authenticated remote code execution vulnerability in the custom tag module that allows authenticated administrators to execute arbitrary PHP code by storing a malicious payload in a custom tag with PHP type enabled. The application decod

  • 10.0 Critical severity

    Minds Platform: Improper Control of Generation of Code

    CVE-2026-73678MindsDBEPSS 1.59%

    MindsDB Minds Platform version 26.1.0 and earlier contains an unauthenticated remote code execution vulnerability that allows unauthenticated attackers to execute arbitrary OS commands by submitting crafted prompts to the unprotected POST /api/v1/responses/ en

  • 7.8 High severity

    compliance-trestle: Improper Control of Generation of Code

    CVE-2026-46439Oscal-compass

    compliance-trestle is a tooling platform for managing compliance as code. Versions prior to 3.12.2 and 4.0.3 have a Server-Side Template Injection (SSTI) vulnerability exists in the `trestle author jinja` command. The command recursively evaluates rendered tem

  • 8.1 High severity

    PowerShell Universal: Improper Control of Generation of Code

    CVE-2026-19768Devolutions

    Improper control of generation of code ('Code Injection') in the settings feature in Devolutions PowerShell Universal 2026.2.3 and earlier allows an authenticated user with settings management permission to execute arbitrary PowerShell code via a crafted setti

  • 8.8 High severity

    grav: Improper Control of Generation of Code

    CVE-2026-72819Grav

    Grav CMS before 2.0.13 contains a remote code execution vulnerability in the Flex Objects plugin settings validation that allows authenticated users to execute arbitrary code by uploading a ZIP file containing PHP code. Attackers can bypass routine name valida

  • 9.1 Critical severity

    Fleet Server: Improper Control of Generation of Code

    CVE-2026-72676Elastic

    Improper Control of Generation of Code ('Code Injection') (CWE-94) in Fleet Server can lead to the execution of attacker-supplied script content via Code Injection (CAPEC-242). Kibana accepted an identifier for an output configuration without restricting it to

  • 9.8 Critical severity

    velocity.js: Improper Control of Generation of Code

    CVE-2026-73649Shepherdwind

    Velocity.js is a JavaScript implementation of the Apache Velocity template engine. Prior to 2.1.7, the earlier fix for CVE-2026-44966 filtered constructor, __proto__, and prototype only in the #set assignment handler in src/compile/set.ts, while property-read

  • 7.8 High severity

    oh-my-posh: Improper Control of Generation of Code

    CVE-2026-73505JanDeDobbeleer

    Oh My Posh is the most customisable and low-latency cross platform/shell prompt renderer. Prior to 29.35.1, the setStyle() function in src/segments/path.go passed pt.Path, which includes raw folder names, to template.Render, whose function map exposes cmd, so

  • 9.8 Critical severity

    Flowise: Improper Control of Generation of Code

    CVE-2026-73487FlowiseAI

    Flowise before 3.1.3 contains a regex-based Python code validator bypass in CSV and Airtable Agent nodes that allows unauthenticated attackers to inject malicious code via prompt injection. Attackers can exploit unblocked pandas functions like pd.read_json() t

  • 8.8 High severity

    Flowise: Improper Control of Generation of Code

    CVE-2026-73486FlowiseAI

    Flowise before 3.1.3 contains a code injection vulnerability in the CSV Agent node's customReadCSV parameter that allows authenticated attackers to execute arbitrary Python code. The validator uses a static regex blocklist that can be bypassed through obfuscat

  • 8.8 High severity

    Flowise: Improper Control of Generation of Code

    CVE-2026-73485FlowiseAI

    Flowise before 3.1.3 contains a code injection vulnerability in the Airtable Agent node that allows unauthenticated attackers to execute arbitrary Python code by bypassing the pythonCodeValidator blocklist through obfuscation techniques. Attackers can send cra

  • 8.1 High severity

    GlobalProtect App: Improper Control of Generation of Code

    CVE-2026-0298Palo Alto Networks

    An improper input validation vulnerability exists in the Windows Pre-Logon Access Provider (PLAP) component of the Palo Alto Networks GlobalProtect™ app on Windows devices which enables a man-in-the-middle (MitM) attacker to execute arbitrary code with SYSTEM

  • 7.8 High severity

    i Access Client Solutions: Improper Control of Generation of Code

    CVE-2026-13094IBM

    IBM i Access Client Solutions 1.1.2.0 through 1.1.9.13 is vulnerable to arbitrary code execution on Windows when installed for all users due to publicly writeable configuration file.

  • 9.9 Critical severity

    multicluster engine for Kubernetes 2.10: Improper Control of Generation of Code

    CVE-2026-73268Red Hat

    A flaw was found in the cluster-curator-controller component of multicluster engine (MCE). A tenant with create or update permissions on ClusterCurator resources can inject an arbitrary Job specification. This is possible because the CreateJob() function does

  • 10.0 Critical severity

    prompty: Improper Control of Generation of Code

    CVE-2026-73299MicrosoftEPSS 1.78%

    Prompty is a markdown file format (.prompty) for LLM prompts. Prior to 0.1.5 and 2.0.0-beta.5, the TypeScript Nunjucks renderer evaluated untrusted .prompty template bodies with unrestricted JavaScript member access. An attacker-controlled template could trave

  • 9.8 Critical severity

    WhatsUp Gold: External Control of File Name or Path

    CVE-2026-65941Progress Software

    In WhatsUp Gold versions released before 2026.0.2, an unauthenticated remote attacker with network access to the affected service can execute arbitrary code in the context of the IIS application service account.

  • 7.1 High severity

    seerr: Improper Limitation of a Pathname to a Restricted Directory

    CVE-2026-73291Seerr-team

    Seerr is an open-source media request and discovery manager for Jellyfin, Plex, and Emby. Prior to version 3.4.0, Seerr's ImageProxy in server/lib/imageproxy.ts uses the upstream ETag and Content-Type response headers to build a cache filename for the unauthen

  • 10.0 Critical severity

    Fabrik extension for Joomla: Improper Control of Generation of Code

    CVE-2026-67282Fabrikar.com

    Joomla Extension - fabrikar.com - Unauthenticated remote code execution in Fabrik < 4.6.8 - An unauthenticated attacker could execute arbitrary code by using the frontend listfilter model.

  • 9.8 Critical severity

    wpmudev-updates: Improper Control of Generation of Code

    CVE-2026-16051Wpmudev-updates

    The wpmudev-updates WordPress plugin before 5.0.1 does not verify the integrity of the packages installed through its remote management interface, nor protect those requests against replay, allowing an attacker able to obtain or replay a valid signed managemen

  • 8.5 High severity

    calibre: Improper Control of Generation of Code

    CVE-2026-73248Kovidgoyal

    calibre is an e-book manager. Prior to 9.12.0, calibre processes attacker-controlled composite_template metadata from a malicious EPUB, OPF, PDF, or similar file through program: and a nested template() call whose formatter does not inherit allow_python_templa

  • 7.8 High severity

    Email Security: Improper Control of Generation of Code

    CVE-2026-66150SonicWall

    Improper Control of Generation of Code ('Code Injection') Vulnerability in the SonicWall Email Security appliance allows an authenticated attacker with access to the SonicWall Email Security restricted CLI can inject arbitrary OS commands that execute as root

  • 7.8 High severity

    Email Security: Improper Control of Generation of Code

    CVE-2026-66149SonicWall

    Improper Control of Generation of Code ('Code Injection') Vulnerability in the SonicWall Email Security appliance allows an authenticated attacker with access to the SonicWall Email Security restricted CLI can inject arbitrary OS commands that execute as root

  • 9.4 Critical severity

    GMS: Improper Control of Generation of Code

    CVE-2026-66147SonicWallEPSS 1.76%

    An unauthenticated command injection vulnerability was identified in the GMS Dispatcher Service in GMS 9.5.1 and earlier versions which allows remote attacker to perform remote code execution through specially crafted requests.

  • 8.5 High severity

    FreeCAD: Improper Control of Generation of Code

    CVE-2026-73233FreeCAD

    FreeCAD is a free and open-source multiplatform 3D parametric modeler. Prior to 1.1.2, the FEM Displacement Constraint task dialog in src/Mod/Fem/Gui/TaskFemConstraintDisplacement.cpp passes the xDisplacementFormula, yDisplacementFormula, and zDisplacementForm

  • 9.6 Critical severity

    papersgpt-for-zotero: Improper Control of Generation of Code

    CVE-2026-73032Papersgpt

    PapersGPT for Zotero 0.6.1 contains a remote code execution vulnerability that allows attackers to execute arbitrary JavaScript by returning malicious code from an LLM endpoint that is passed unsanitized to window.eval() in views.ts. Attackers can exploit this

  • 9.1 Critical severity

    GMS: Improper Control of Generation of Code

    CVE-2026-66145SonicWall

    An unauthenticated remote code execution vulnerability was identified in GMS 9.5.1 (Build 9510.1044) and earlier versions which allows remote attacker to read sensitive data and perform arbitrary file write via zipslip.

  • 10.0 Critical severity

    liquidjs: Improper Control of Generation of Code

    CVE-2026-45618Harttle

    LiquidJS is a Shopify/GitHub Pages compatible template engine. Prior to version 10.26.0, it is possible to execute arbitrary code with crafted templates. Version 10.26.0 patches the issue.

  • 7.8 High severity

    PowerShell 7.4: Improper Control of Generation of Code

    CVE-2026-70338Microsoft

    Improper control of generation of code ('code injection') in Microsoft PowerShell allows an unauthorized attacker to bypass a security feature locally.

  • 8.8 High severity

    Microsoft SharePoint Code Injection Exploited

    CVE-2026-65660MicrosoftEPSS 9.85%

    Improper control of generation of code ('code injection') in Microsoft Office SharePoint allows an authorized attacker to execute code over a network.