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

    ros2_navigation2: Buffer Copy without Checking Size of Input

    CVE-2024-30962Open Robotics

    Buffer Overflow vulnerability in Open Robotics Robotic Operating System 2 (ROS2) navigation2- ROS2-humble and navigation 2-humble allows a local attacker to execute arbitrary code via the nav2_amcl process

  • 7.8 High severity

    Robot Operating System: Improper Control of Generation of Code

    CVE-2024-30961Openrobotics

    Insecure Permissions vulnerability in Open Robotics Robotic Operating System 2 (ROS2) navigation2- ROS2-humble and navigation 2-humble allows a local attacker to execute arbitrary code via the error-thrown mechanism in nav2_bt_navigator.

  • 9.8 Critical severity

    ASPECT-Enterprise: Improper Control of Generation of Code

    CVE-2024-48840ABBEPSS 2.06%

    Unauthorized Access vulnerabilities allow Remote Code Execution. Affected products: ABB ASPECT - Enterprise v3.08.02; NEXUS Series v3.08.02; MATRIX Series v3.08.02

  • 9.8 Critical severity

    ASPECT-Enterprise: Improper Control of Generation of Code

    CVE-2024-48839ABBEPSS 2.83%

    Improper Input Validation vulnerability allows Remote Code Execution. Affected products: ABB ASPECT - Enterprise v3.08.02; NEXUS Series v3.08.02; MATRIX Series v3.08.02

  • 7.3 High severity

    Authors List: Improper Control of Generation of Code

    CVE-2024-10952Wpkube

    The The Authors List plugin for WordPress is vulnerable to arbitrary shortcode execution via update_authors_list_ajax AJAX action in all versions up to, and including, 2.0.4. This is due to the software allowing users to execute an action that does not properl

  • 9.8 Critical severity

    Raspap-webgui: Improper Control of Generation of Code

    CVE-2024-36622RaspAPEPSS 2.84%

    In RaspAP raspap-webgui 3.0.9 and earlier, a command injection vulnerability exists in the clearlog.php script. The vulnerability is due to improper sanitization of user input passed via the logfile parameter.

  • 7.2 High severity

    Rank Math SEO: Improper Control of Generation of Code

    CVE-2024-11620Rank Math SEO

    Improper Control of Generation of Code ('Code Injection') vulnerability in Rank Math SEO Rank Math SEO seo-by-rank-math allows Code Injection.This issue affects Rank Math SEO: from n/a through <= 1.0.231.

  • 9.9 Critical severity

    Widget Options – Advanced Conditional…: Improper Control of Generation of Code

    CVE-2024-8672MarketingFireEPSS 45.4%

    The Widget Options – The #1 WordPress Widget & Block Control Plugin plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 4.0.7 via the display logic functionality that extends several page builders. This is due to t

  • 7.8 High severity

    emacs: Improper Control of Generation of Code

    CVE-2024-53920GNU

    In elisp-mode.el in GNU Emacs before 30.1, a user who chooses to invoke elisp-completion-at-point (for code completion) on untrusted Emacs Lisp source code can trigger unsafe Lisp macro expansion that allows attackers to execute arbitrary code. (This unsafe ex

  • 9.8 Critical severity

    covid19_testing_management_system: Improper Control of Generation of Code

    CVE-2024-53604PHPGurukulEPSS 1.01%

    A SQL Injection vulnerability was found in /covid-tms/check_availability.php in PHPGurukul COVID 19 Testing Management System v1.0, which allows remote attackers to execute arbitrary code via the mobnumber POST request parameter.

  • 7.2 High severity

    iota C.ai Conversational Platform: Improper Control of Generation of Code

    CVE-2024-52959Galaxy Software Services

    A Improper Control of Generation of Code ('Code Injection') vulnerability in plugin management in iota C.ai Conversational Platform from 1.0.0 through 2.1.3 allows remote authenticated users to perform arbitrary system commands via a DLL file.

  • 8.8 High severity

    Firefox: Improper Control of Generation of Code

    CVE-2024-11699Mozilla

    Memory safety bugs present in Firefox 132, Firefox ESR 128.4, and Thunderbird 128.4. Some of these bugs showed evidence of memory corruption and we presume that with enough effort some of these could have been exploited to run arbitrary code. This vulnerabilit

  • 8.8 High severity

    Firefox: Improper Control of Generation of Code

    CVE-2024-11697Mozilla

    When handling keypress events, an attacker may have been able to trick a user into bypassing the "Open Executable File?" confirmation dialog. This could have led to malicious code execution. This vulnerability affects Firefox < 133, Firefox ESR < 128.5, Thunde

  • 8.8 High severity

    Data Virtualization Manager for z/OS: Improper Control of Generation of Code

    CVE-2024-52899IBM

    IBM Data Virtualization Manager for z/OS 1.1 and 1.2 could allow an authenticated user to inject malicious JDBC URL parameters and execute code on the server.

  • 8.0 High severity

    taiga_front: Improper Control of Generation of Code

    CVE-2024-53554Taigaio

    A Client-Side Template Injection (CSTI) vulnerability in the component /project/new/scrum of Taiga v 8.6.1 allows remote attackers to execute arbitrary code by injecting a malicious payload within the new project details.

  • 8.8 High severity

    joplin: Improper Control of Generation of Code

    CVE-2024-53268Laurent22

    Joplin is an open source, privacy-focused note taking app with sync capabilities for Windows, macOS, Linux, Android and iOS. In affected versions attackers are able to abuse the fact that openExternal is used without any filtering of URI schemes to obtain remo

  • 7.3 High severity

    Request a Quote for WooCommerce – Get a Quote…: Improper Control of Generation of Code

    CVE-2024-11034Wpbean

    The The Request a Quote for WooCommerce and Elementor – Get a Quote Button – Product Enquiry Form Popup – Product Quotation plugin for WordPress is vulnerable to arbitrary shortcode execution via fire_contact_form AJAX action in all versions up to, and includi

  • 9.8 Critical severity

    blackboard: Improper Control of Generation of Code

    CVE-2024-51367Husrev

    An arbitrary file upload vulnerability in the component \Users\username.BlackBoard of BlackBoard v2.0.0.2 allows attackers to execute arbitrary code via uploading a crafted .xml file.

  • 7.3 High severity

    Android: Deserialization of Untrusted Data

    CVE-2024-10382Google

    There exists a code execution vulnerability in the Car App Android Jetpack Library. CarAppService uses deserialization logic that allows construction of arbitrary java classes. This can lead to arbitrary code execution when combined with specific Java deserial

  • 7.3 High severity

    Product Table and List Builder for WooCommerce…: Improper Control of Generation of Code

    CVE-2024-10899Wcproducttable

    The The WooCommerce Product Table Lite plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 3.8.6. This is due to the software allowing users to execute an action that does not properly validate a value befo

  • 9.8 Critical severity

    officeweb_365: Improper Control of Generation of Code

    CVE-2024-48694Xian Daxi Information TechnologyEPSS 1.05%

    File Upload vulnerability in Xi'an Daxi Information technology OfficeWeb365 v.8.6.1.0 and v7.18.23.0 allows a remote attacker to execute arbitrary code via the pw/savedraw component.

  • 9.8 Critical severity

    e-cology: Improper Control of Generation of Code

    CVE-2024-48070Weaver

    An issue in Weaver E-cology v. attackers construct special requests to insert remote malicious code and to trigger malicious code execution, and control server privileges

  • 7.3 High severity

    WPB Popup for Contact Form 7 – Showing Contact…: Improper Control of Generation of Code

    CVE-2024-11038Wpbean

    The The WPB Popup for Contact Form 7 – Showing The Contact Form 7 Popup on Button Click – CF7 Popup plugin for WordPress is vulnerable to arbitrary shortcode execution via wpb_pcf_fire_contact_form AJAX action in all versions up to, and including, 1.7.5. This

  • 9.8 Critical severity

    GamiPress – Gamification plugin to reward…: Improper Control of Generation of Code

    CVE-2024-11036Rubengc

    The The GamiPress – The #1 gamification plugin to reward points, achievements, badges & ranks in WordPress plugin for WordPress is vulnerable to arbitrary shortcode execution via gamipress_get_user_earnings AJAX action in all versions up to, and including, 7.1

  • 7.8 High severity

    msi_center_pro: Improper Control of Generation of Code

    CVE-2024-50804Micro Star International Co

    Insecure Permissions vulnerability in Micro-star International MSI Center Pro 2.1.37.0 allows a local attacker to execute arbitrary code via the Device_DeviceID.dat.bak file within the C:\ProgramData\MSI\One Dragon Center\Data folder

  • 9.8 Critical severity

    jpress: Improper Control of Generation of Code

    CVE-2024-50919JpressEPSS 1.18%

    Jpress until v5.1.1 has arbitrary file uploads on the windows platform, and the construction of non-standard file formats such as .jsp. can lead to arbitrary command execution

  • 7.5 High severity

    management_software: Improper Control of Generation of Code

    CVE-2024-44757ERP

    An arbitrary file download vulnerability in the component /Basics/DownloadInpFile of NUS-M9 ERP Management Software v3.0.0 allows attackers to download arbitrary files and access sensitive information via a crafted interface request.

  • 9.1 Critical severity

    Popup by Supsystic: Improper Control of Generation of Code

    CVE-2024-52434SupsysticEPSS 1.14%

    Deserialization of Untrusted Data vulnerability in supsystic Popup by Supsystic popup-by-supsystic allows Command Injection.This issue affects Popup by Supsystic: from n/a through <= 1.10.29.

  • 8.8 High severity

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

    CVE-2024-52427Vollstart

    Deserialization of Untrusted Data vulnerability in Vollstart Event Tickets with Ticket Scanner event-tickets-with-ticket-scanner allows Server Side Include (SSI) Injection.This issue affects Event Tickets with Ticket Scanner: from n/a through <= 2.3.11.

  • 8.8 High severity

    Apache OFBiz: Improper Control of Generation of Code

    CVE-2024-48962Apache

    Improper Control of Generation of Code ('Code Injection'), Cross-Site Request Forgery (CSRF), : Improper Neutralization of Special Elements Used in a Template Engine vulnerability in Apache OFBiz. This issue affects Apache OFBiz: before 18.12.17. Users are rec

  • 9.8 Critical severity

    Apache OFBiz: Improper Control of Generation of Code

    CVE-2024-47208ApacheEPSS 1.6%

    Server-Side Request Forgery (SSRF), Improper Control of Generation of Code ('Code Injection') vulnerability in Apache OFBiz. This issue affects Apache OFBiz: before 18.12.17. Users are recommended to upgrade to version 18.12.17, which fixes the issue.

  • 7.8 High severity

    netbackup: Improper Control of Generation of Code

    CVE-2024-52945Veritas

    An issue was discovered in Veritas NetBackup before 10.5. This only applies to NetBackup components running on a Windows Operating System. If a user executes specific NetBackup commands or an attacker uses social engineering techniques to impel the user to exe

  • 9.8 Critical severity

    gnome_maps: Improper Control of Generation of Code

    CVE-2023-43091Gnome Maps

    A flaw was found in GNOME Maps, which is vulnerable to a code injection attack via its service.json configuration file. If the configuration file is malicious, it may execute arbitrary code.

  • 7.3 High severity

    Uix Slideshow: Improper Control of Generation of Code

    CVE-2024-9839Uiuxlab

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

  • 9.8 Critical severity

    management_software: Improper Control of Generation of Code

    CVE-2024-44758ERP

    An arbitrary file upload vulnerability in the component /Production/UploadFile of NUS-M9 ERP Management Software v3.0.0 allows attackers to execute arbitrary code via uploading crafted files.

  • 7.2 High severity

    Podlove Podcast Publisher: Improper Control of Generation of Code

    CVE-2024-52393Eric Teubert

    Deserialization of Untrusted Data vulnerability in Eric Teubert Podlove Podcast Publisher podlove-podcasting-plugin-for-wordpress.This issue affects Podlove Podcast Publisher: from n/a through <= 4.1.15.

  • 9.6 Critical severity

    joplin: Improper Neutralization of Input During Web Page Generation

    CVE-2024-49362Laurent22EPSS 1.06%

    Joplin is a free, open source note taking and to-do application. Joplin-desktop has a vulnerability that leads to remote code execution (RCE) when a user clicks on an <a> link within untrusted notes. The issue arises due to insufficient sanitization of <a> tag

  • 7.1 High severity

    Nexus Repository: Improper Control of Generation of Code

    CVE-2024-5082SonatypeEPSS 3.1%

    A Remote Code Execution vulnerability has been discovered in Sonatype Nexus Repository 2. This issue affects Nexus Repository 2 OSS/Pro versions up to and including 2.15.1.

  • 7.8 High severity

    Android: Missing Authorization

    CVE-2024-40671Google

    In DevmemIntChangeSparse2 of devicemem_server.c, there is a possible way to achieve arbitrary code execution due to a missing permission check. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is

  • 9.8 Critical severity

    dom-iterator: Improper Control of Generation of Code

    CVE-2024-21541Dom-iteratorEPSS 1.08%

    Versions of the package dom-iterator before 1.0.1 are vulnerable to Arbitrary Code Execution due to use of the Function constructor without complete input sanitization. Function generates a new function body and thus care must be given to ensure that the input