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

    roslyn-codelens-mcp: Improper Control of Generation of Code

    CVE-2026-45555MarcelRoozekrans

    Roslyn CodeLens MCP Server is a Roslyn-based MCP server providing semantic code intelligence for .NET codebases. From 0.0.9 to 1.17.0, the get_diagnostics MCP tool loads and executes all DiagnosticAnalyzer assemblies referenced by the target solution without a

  • 8.3 High severity

    core: Improper Control of Generation of Code

    CVE-2026-44698Home-assistant

    Home Assistant is open source home automation software that puts local control and privacy first. Prior to 2026.4.1 for iOS and 2026.4.4 for Android, he Home Assistant Companion apps for Android and iOS expose a JavaScript bridge to the in-app WebView window.e

  • 8.8 High severity

    Chrome: Improper Control of Generation of Code

    CVE-2026-9976Google

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

  • 8.8 High severity

    Chrome: Improper Control of Generation of Code

    CVE-2026-9938Google

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

  • 9.6 Critical severity

    CodeWhale: Improper Control of Generation of Code

    CVE-2026-45374Hmbown

    CodeWhale is a DeepSeek + MiMo coding agent in terminal. Prior to 0.8.26, the task_create tool spawns durable sub-agents that inherit two insecure defaults, allow_shell defaults to true (config.rs:1499: self.allow_shell.unwrap_or(true)) and auto_approve defaul

  • 9.6 Critical severity

    CodeWhale: Improper Control of Generation of Code

    CVE-2026-45311Hmbown

    CodeWhale is a DeepSeek + MiMo coding agent in terminal. From 0.3.0 to 0.8.23, the run_tests tool executes cargo test in the workspace with ApprovalRequirement::Auto, meaning it runs without any user approval prompt. cargo test compiles and executes arbitrary

  • 9.4 Critical severity

    electerm: Improper Control of Generation of Code

    CVE-2026-45058Electerm

    electerm is an open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client. In 3.8.8 and earlier, there is persistent local-pty code execution via imported bookmarks or compromised sync targets. Affects users who import bookmark JSON files or who

  • 10.0 Critical severity

    SandboxJS: Improper Control of Generation of Code

    CVE-2026-43898Nyariv

    SandboxJS is a JavaScript sandboxing library. Prior to 0.9.6, sandbox-defined functions expose Function.caller, allowing sandboxed code to recover the internal LispType.Call runtime callback. That callback can then be invoked with attacker-controlled fake cont

  • 9.3 Critical severity

    gitbutler: Improper Control of Generation of Code

    CVE-2026-45261Gitbutlerapp

    GitButler is a modern Git-based version control interface for AI-powered workflows. Prior to 0.19.7, a emote code execution vulnerability exists in the Tauri-based GitButler desktop application. An attacker can inject a malicious link in a pull request body, w

  • 9.3 Critical severity

    mapfish-print: Improper Control of Generation of Code

    CVE-2026-44672Mapfish

    mapfish-print is a component of MapFish for printing templated cartographic maps. From 3.23.0 to before 3.28.28, 3.30.30, 3.31.22, 3.33.14, and 4.0.3, the attacker can execute arbitrary code in Dynamic table without being authenticated. This vulnerability is f

  • 9.0 Critical severity

    Comet Backup: Improper Control of Generation of Code

    CVE-2026-32999WebPros

    Insufficient character filtering in backup agent signing module on Comet Backup server allows authenticated tenant administrator to execute an arbitrary code on behalf of a privileged user on the affected server and connected devices.

  • 7.8 High severity

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

    CVE-2026-45136Cnighswonger

    claude-code-cache-fix is a cache optimization proxy for Claude Code. From 3.5.0 to before 3.5.2, tools/quota-statusline.sh (introduced in v3.5.0) interpolates Claude Code's hook stdin payload directly into a Python triple-quoted string literal. A ''' byte sequ

  • 9.8 Critical severity

    Pi.Alert: Improper Control of Generation of Code

    CVE-2026-44888Leiweibau

    Pi.Alert is a WIFI / LAN intruder detector with web service monitoring. Prior to 2026-05-07, Pi.Alert's SaveConfigFile() endpoint writes user-supplied numeric config values (e.g., SMTP_PORT) directly into pialert.conf without validation. Since pialert.conf is

  • 9.8 Critical severity

    Pi.Alert: Improper Control of Generation of Code

    CVE-2026-44887Leiweibau

    Pi.Alert is a WIFI / LAN intruder detector with web service monitoring. Prior to 2026-05-07, Pi.Alert's web-based configuration editor allows arbitrary Python code to be injected into pialert.conf. Since the background scan daemon loads this file via Python's

  • 8.8 High severity

    BentoML: Improper Neutralization of Special Elements used in an OS Command

    CVE-2026-44346Bentoml

    BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Prior to 1.4.39, a malicious bentofile.yaml containing a newline-injected value in envs[*].name produces unquoted RUN directives in the BentoML-generated

  • 8.8 High severity

    WPCode – Insert Headers and Footers + Custom…: Improper Control of Generation of Code

    CVE-2026-8832SmubEPSS 1.86%

    The WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager plugin for WordPress is vulnerable to Remote Code Execution in versions up to, and including, 2.3.5 This is due to the 'wpcode' custom post type being registered without a

  • 7.2 High severity

    affiliate-toolkit – Multi-Network Affiliate &…: Improper Control of Generation of Code

    CVE-2026-6169Cservit

    The affiliate-toolkit plugin for WordPress is vulnerable to remote code execution in all versions up to, and including, 3.8.5. This is due to the plugin using the BladeOne templating engine's runString() method which compiles user-supplied template content int

  • 7.8 High severity

    IO::Compress: Improper Neutralization of Directives in Dynamically Evaluated Code

    CVE-2026-48962PMQS

    IO::Compress versions before 2.220 for Perl can execute arbitrary code in File::GlobMapper via an attacker-controlled output glob. _parseOutputGlob() wraps the caller-supplied output glob string in double quotes and stores it in the parser state; _getFiles() t

  • 9.8 Critical severity

    HTTP Server: Improper Control of Generation of Code

    CVE-2026-8855IBM

    IBM HTTP Server 8.5, and 9.0 is vulnerable to remote code execution and denial of service in configurations with TLS mutual authentication (client authentication).

  • 9.8 Critical severity

    Web Server Plug-ins for WebSphere Application…: Improper Control of Generation of Code

    CVE-2026-8633IBM

    IBM Web Server Plug-ins for WebSphere Application Server and WebSphere Liberty 8.5, 9.0 IBM WebSphere Application Server and WebSphere Application Server Liberty are vulnerable to remote code execution in the Web Server Plug-ins, through a specially crafted re

  • 7.8 High severity

    babel: Improper Control of Generation of Code

    CVE-2026-44728Babel

    Babel is a compiler for writing next generation JavaScript. From 7.12.0 to before 7.29.4 and 8.0.0-alpha.13, using Babel to compile code that was specifically crafted by an attacker can cause Babel to generate output code that executes arbitrary code. This vul

  • 7.2 High severity

    OpenKM Community Edition: Improper Control of Generation of Code

    CVE-2026-42785OpenKM

    OpenKM 6.3.12 contains a remote code execution vulnerability that allows authenticated administrators to execute arbitrary Java/BeanShell code through the /admin/Scripting endpoint. Attackers can submit malicious script content with an action=Evaluate paramete

  • 7.2 High severity

    Broadcast Live Video: Improper Control of Generation of Code

    CVE-2026-24937VideoWhisper.com

    Improper Control of Generation of Code ('Code Injection') vulnerability in VideoWhisper.Com Broadcast Live Video allows Code Injection. This issue affects Broadcast Live Video: from n/a before 7.1.3.

  • 9.3 Critical severity

    SketchUp: Improper Control of Generation of Code

    CVE-2026-9264Trimble

    A cross-site scripting (XSS) vulnerability in SketchUp 2026's Dynamic Components feature allows remote code execution and local file exfiltration through maliciously crafted SKP files. The vulnerability stems from improper input sanitization in the component o

  • 9.5 Critical severity

    phoenix_storybook: Improper Control of Generation of Code

    CVE-2026-8467PhenixdigitalEPSS 2.11%

    Code Injection vulnerability in phenixdigital phoenix_storybook allows unauthenticated remote code execution via unsanitized attribute value interpolation in HEEx template generation. The psb-assign WebSocket event handler in 'Elixir.PhoenixStorybook.Story.Pla

  • 9.1 Critical severity

    Eclipse Glassfish: Improper Control of Generation of Code

    CVE-2026-2586Eclipse Foundation

    An authenticated Remote Code Execution (RCE) vulnerability was identified in GlassFish's Administration Console. A user with access to the panel can send crafted requests that allow the execution of arbitrary operating system commands with the privileges of th

  • 8.1 High severity

    Red Hat OpenShift AI (RHOAI): Improper Control of Generation of Code

    CVE-2025-51427Red Hat

    An issue was discovered in ModelScope 1.25.0 allowing attackers to execute arbitrary code via crafted module listed in the configuration file (dey_mini.yaml) under the key ['nnet']['module'].

  • 8.8 High severity

    Apache OFBiz: Improper Control of Generation of Code

    CVE-2026-46586Apache

    Improper Control of Generation of Code ('Code Injection'), Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') vulnerability in Apache OFBiz. This issue affects Apache OFBiz: before 24.09.06. Users are recommended to upgrade

  • 7.6 High severity

    AutoGPT: Improper Control of Generation of Code

    CVE-2026-33233Significant-Gravitas

    AutoGPT is a workflow automation platform for creating, deploying, and managing continuous artificial intelligence agents. In versions 0.6.34 through 0.6.51, the backend deserializes Redis cache bytes using pickle.loads without integrity/authenticity checks. T

  • 9.8 Critical severity

    Amazon Redshift connector for Python: Improper Control of Generation of Code

    CVE-2026-8838AWS

    Unsafe use of Python's eval() on server-received data in the vector_in() function in amazon-redshift-python-driver before 2.1.14 allows a rogue server or man-in-the-middle actor to execute arbitrary code on the client. To remediate this issue, users should upg

  • 10.0 Critical severity

    ChromaDB: Improper Control of Generation of Code

    CVE-2026-45829ChromaEPSS 15.1%

    A pre-authentication, code injection vulnerability in version 1.0.0 or later of the ChromaDB Python project allows an unauthenticated attacker to run arbitrary code on the server by sending a malicious model repository and trust_remote_code set to true in the

  • 7.7 High severity

    P4 (Helix Core): Improper Control of Generation of Code

    CVE-2026-6902Perforce

    A Remote Code Execution vulnerability in P4 (Helix Core) Server's Command-Line Client, prior to the 2025.2 Patch 2, has been fixed to address potential security risks.

  • 9.8 Critical severity

    mcp_calculate_server: Improper Control of Generation of Code

    CVE-2026-44717611711Dark

    MCP Calculate Server is a mathematical calculation service based on MCP protocol and SymPy library. Prior to 0.1.1, the use of eval() to evaluate mathematical expressions without proper input sanitization leads to remote code execution. This vulnerability is f

  • 9.1 Critical severity

    openmrs-core: Improper Control of Generation of Code

    CVE-2026-41258OpenMRS

    OpenMRS is an open source electronic medical record system platform. From 2.7.0 to before 2.7.9 and 2.8.6, the ConceptReferenceRangeUtility.evaluateCriteria() method in OpenMRS Core evaluates database-stored criteria strings as Apache Velocity templates withou

  • 8.1 High severity

    Apache Flink: Improper Control of Generation of Code

    CVE-2026-35194Apache

    Code injection in SQL code generation in Apache Flink 1.15.0 through 1.20.x and 2.0.0 through 2.x allows authenticated users with query submission privileges to execute arbitrary code on TaskManagers via maliciously crafted SQL queries. The vulnerability affec

  • 9.1 Critical severity

    crabbox: Improper Control of Generation of Code

    CVE-2026-8634OpenClaw

    Crabbox prior to v0.12.0 contains an environment variable exposure vulnerability that allows attackers with access to a malicious or compromised repository to forward local secrets such as API tokens, cloud credentials, and broker tokens into the remote comman

  • 9.4 Critical severity

    siyuan: Improper Neutralization of Input During Web Page Generation

    CVE-2026-44670Siyuan-note

    SiYuan is an open-source personal knowledge management system. Prior to 3.7.0, the kernel stores Attribute View (AV / database) names without any HTML escape, then a render template uses raw strings.ReplaceAll(tpl, "${avName}", nodeAvName) to embed the name in

  • 8.3 High severity

    siyuan: Improper Neutralization of Input During Web Page Generation

    CVE-2026-44586Siyuan-note

    SiYuan is an open-source personal knowledge management system. From 2.1.12 to before 3.7.0. SiYuan's Bazaar marketplace renders package author metadata from the public bazaar stage feed into HTML without escaping. In the desktop app this becomes stored XSS, an

  • 8.8 High severity

    Library Automation System: Improper Control of Generation of Code

    Improper Control of Generation of Code ('Code Injection') vulnerability in Yordam Information Technology Consulting, Training and Electronic Systems Industry and Trade Inc. Library Automation System allows Remote Code Inclusion. This issue affects Library Auto

  • 8.8 High severity

    diffusers: Improper Control of Generation of Code

    CVE-2026-44827Huggingface

    Diffusers is the a library for pretrained diffusion models. Prior to 0.38.0, diffusers 0.37.0 allows remote code execution without the trust_remote_code=True safeguard when loading pipelines from Hugging Face Hub repositories. The _resolve_custom_pipeline_and_