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

  • 9.8 Critical severity

    pymol: Improper Control of Generation of Code

    CVE-2024-50636SchrodingerEPSS 1.25%

    PyMOL 2.5.0 contains a vulnerability in its "Run Script" function, which allows the execution of arbitrary Python code embedded within .PYM files. Attackers can craft a malicious .PYM file containing a Python reverse shell payload and exploit the function to a

  • 8.1 High severity

    android: Improper Control of Generation of Code

    CVE-2024-46966Google

    The Ikhgur mn.ikhgur.khotoch (aka Video Downloader Pro & Browser) application through 1.0.42 for Android allows an attacker to execute arbitrary JavaScript code via the mn.ikhgur.khotoch.MainActivity component.

  • 8.1 High severity

    android: Improper Control of Generation of Code

    CVE-2024-46964Google

    The com.video.downloader.all (aka All Video Downloader) application through 11.28 for Android allows an attacker to execute arbitrary JavaScript code via the com.video.downloader.all.StartActivity component.

  • 8.1 High severity

    android: Improper Control of Generation of Code

    CVE-2024-46963Google

    The com.superfast.video.downloader (aka Super Unlimited Video Downloader - All in One) application through 5.1.9 for Android allows an attacker to execute arbitrary JavaScript code via the com.bluesky.browser.ui.BrowserMainActivity component.

  • 9.1 Critical severity

    android: Improper Control of Generation of Code

    CVE-2024-46962Google

    The SYQ com.downloader.video.fast (aka Master Video Downloader) application through 2.0 for Android allows an attacker to execute arbitrary JavaScript code via the com.downloader.video.fast.SpeedMainAct component.

  • 7.3 High severity

    WP Photo Album Plus: Improper Control of Generation of Code

    CVE-2024-10958OpajaapEPSS 1.64%

    The The WP Photo Album Plus plugin for WordPress is vulnerable to arbitrary shortcode execution via getshortcodedrenderedfenodelay AJAX action in all versions up to, and including, 8.8.08.007 . This is due to the software allowing users to execute an action th

  • 7.3 High severity

    FOX – Currency Switcher Professional for…: Improper Control of Generation of Code

    CVE-2024-10640RealMag777

    The The FOX – Currency Switcher Professional for WooCommerce plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 1.4.2.2. This is due to the software allowing users to execute an action that does not proper

  • 7.3 High severity

    Paid Membership Subscriptions – Effortless…: Improper Control of Generation of Code

    CVE-2024-10261Cozmoslabs

    The The Paid Membership Subscriptions – Effortless Memberships, Recurring Payments & Content Restriction plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 2.13.0. This is due to the software allowing user

  • 8.8 High severity

    seacms: Improper Control of Generation of Code

    CVE-2024-50808SeaCMS

    SeaCms 13.1 is vulnerable to code injection in the notification module of the member message notification module in the backend user module, due to unsafe handling of the "notify" variable in admin_notify.php.

  • 8.1 High severity

    x_downloader: Improper Control of Generation of Code

    CVE-2024-46961Inshot.com

    The Inshot com.downloader.privatebrowser (aka Video Downloader - XDownloader) application through 1.3.5 for Android allows an attacker to execute arbitrary JavaScript code via the com.downloader.privatebrowser.activity.PrivateMainActivity component.

  • 8.8 High severity

    hd_video_downloader: Improper Control of Generation of Code

    CVE-2024-46960Asdcom

    The ASD com.rocks.video.downloader (aka HD Video Downloader All Format) application through 7.0.129 for Android allows an attacker to execute arbitrary JavaScript code via the com.rocks.video.downloader.MainBrowserActivity component.

  • 8.1 High severity

    moodle: Improper Control of Generation of Code

    CVE-2024-43425MoodleEPSS 87.5%

    A flaw was found in Moodle. Additional restrictions are required to avoid a remote code execution risk in calculated question types. Note: This requires the capability to add/update questions.

  • 9.3 Critical severity

    happy-dom: Improper Neutralization of Input During Web Page Generation

    CVE-2024-51757Capricorn86

    happy-dom is a JavaScript implementation of a web browser without its graphical user interface. Versions of happy-dom prior to 15.10.2 may execute code on the host via a script tag. This would execute code in the user context of happy-dom. Users are advised to

  • 7.3 High severity

    Tickera – Sell Tickets & Manage Events: Improper Control of Generation of Code

    CVE-2024-10263Tickera

    The Tickera – WordPress Event Ticketing plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 3.5.4.4. This is due to the software allowing users to execute an action that does not properly validate a value b

  • 9.8 Critical severity

    Langflow: Improper Control of Generation of Code

    CVE-2024-48061LangflowEPSS 1.54%

    langflow <=1.0.18 is vulnerable to Remote Code Execution (RCE) as any component provided the code functionality and the components run on the local machine rather than in a sandbox.

  • 9.8 Critical severity

    agentscope: Improper Control of Generation of Code

    CVE-2024-48050ModelScope

    In agentscope <=v0.0.4, the file agentscope\web\workstation\workflow_utils.py has the function is_callable_expression. Within this function, the line result = eval(s) poses a security risk as it can directly execute user-provided commands.

  • 8.8 High severity

    agile-board: Improper Control of Generation of Code

    CVE-2024-51329Idrsdev

    A Host header injection vulnerability in Agile-Board 1.0 allows attackers to obtain the password reset token via user interaction with a crafted password reset link.

  • 9.8 Critical severity

    CoslatV3: Improper Neutralization of Special Elements used in a Command

    Improper Control of Generation of Code ('Code Injection'), Improper Neutralization of Special Elements used in a Command ('Command Injection'), Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in BG-TEK I

  • 8.8 High severity

    lilconfig: Improper Control of Generation of Code

    CVE-2024-21537LilconfigEPSS 1.13%

    Versions of the package lilconfig from 3.1.0 and before 3.1.1 are vulnerable to Arbitrary Code Execution due to the insecure usage of eval in the dynamicImport function. An attacker can exploit this vulnerability by passing a malicious input through the defaul

  • 9.8 Critical severity

    ethereum: Improper Control of Generation of Code

    CVE-2024-51427Ethereum

    An issue in the PepeGxng smart contract (which can be run on the Ethereum blockchain) allows remote attackers to have an unspecified impact via the mint function. NOTE: this is disputed by third parties because the impact is limited to function calls.

  • 9.8 Critical severity

    ethereum: Improper Control of Generation of Code

    CVE-2024-51424Ethereum

    An issue in the PepeGxng smart contract (which can be run on the Ethereum blockchain) allows remote attackers to have an unspecified impact via the Owned.setOwner function. NOTE: this is disputed by third parties because the impact is limited to function calls

  • 7.2 High severity

    eladmin: Improper Control of Generation of Code

    CVE-2024-51243Eladmin

    The eladmin v2.7 and before contains a remote code execution (RCE) vulnerability that can control all application deployment servers of this management system via DeployController.java.

  • 8.1 High severity

    video_downloader: Improper Control of Generation of Code

    CVE-2024-42041Apptool-browser-video

    The com.videodownload.browser.videodownloader (aka AppTool-Browser-Video All Video Downloader) application 20-30.05.24 for Android allows an attacker to execute arbitrary JavaScript code via the acr.browser.lightning.DefaultBrowserActivity component.

  • 9.8 Critical severity

    vigor3900: Improper Control of Generation of Code

    CVE-2024-51298DrayTek

    In Draytek Vigor3900 1.5.1.3, attackers can inject malicious commands into mainfunction.cgi and execute arbitrary commands by calling the doGRETunnel function.

  • 7.3 High severity

    Enable Shortcodes inside Widgets,Comments and…: Improper Control of Generation of Code

    CVE-2024-9846Amu02aftab

    The The Enable Shortcodes inside Widgets,Comments and Experts plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 1.0.0. This is due to the software allowing users to execute an action that does not properl

  • 7.2 High severity

    wuzhicms: Improper Control of Generation of Code

    CVE-2024-10505WuzhiCMS

    A vulnerability was found in wuzhicms 4.1.0. It has been classified as critical. Affected is the function add/edit of the file www/coreframe/app/content/admin/block.php. The manipulation leads to code injection. It is possible to launch the attack remotely. Th

  • 9.8 Critical severity

    pluxml: Improper Control of Generation of Code

    CVE-2024-48138PluXml

    A remote code execution (RCE) vulnerability in the component /PluXml/core/admin/parametres_edittpl.php of PluXml v5.8.16 and lower allows attackers to execute arbitrary code via injecting a crafted payload into a template.

  • 10.0 Critical severity

    Now Platform: Improper Control of Generation of Code

    CVE-2024-8923ServiceNowEPSS 1.11%

    ServiceNow has addressed an input validation vulnerability that was identified in the Now Platform. This vulnerability could enable an unauthenticated user to remotely execute code within the context of the Now Platform. ServiceNow deployed an update to hosted

  • 9.8 Critical severity

    WP Query Console: Improper Control of Generation of Code

    CVE-2024-50498Ajit BohraEPSS 53.2%

    Improper Control of Generation of Code ('Code Injection') vulnerability in Ajit Bohra WP Query Console wp-query-console allows Code Injection.This issue affects WP Query Console: from n/a through <= 1.0.

  • 9.8 Critical severity

    ScottCart: Improper Control of Generation of Code

    CVE-2024-50492Scott PatersonEPSS 1.39%

    Improper Control of Generation of Code ('Code Injection') vulnerability in Scott Paterson ScottCart scottcart allows Code Injection.This issue affects ScottCart: from n/a through <= 1.1.

  • 9.8 Critical severity

    MDTF: Improper Control of Generation of Code

    CVE-2024-50450RealMag777EPSS 1.18%

    Improper Control of Generation of Code ('Code Injection') vulnerability in RealMag777 MDTF wp-meta-data-filter-and-taxonomy-filter allows Code Injection.This issue affects MDTF: from n/a through <= 1.3.3.4.

  • 7.2 High severity

    All-in-One WP Migration and Backup: Improper Control of Generation of Code

    CVE-2024-9162ServMaskEPSS 2.74%

    The All-in-One WP Migration and Backup plugin for WordPress is vulnerable to arbitrary PHP Code Injection due to missing file type validation during the export in all versions up to, and including, 7.86. This makes it possible for authenticated attackers, with

  • 7.2 High severity

    cdxgen: Improper Control of Generation of Code

    CVE-2024-50611CycloneDX

    CycloneDX cdxgen through 10.10.7, when run against an untrusted codebase, may execute code contained within build-related files such as build.gradle.kts, a similar issue to CVE-2022-24441. cdxgen is used by, for example, OWASP dep-scan. NOTE: this has been cha

  • 7.3 High severity

    Uix Shortcodes: Improper Control of Generation of Code

    CVE-2024-9772UiuxlabEPSS 1.46%

    The The Uix Shortcodes – Compatible with Gutenberg plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 1.9.9. This is due to the software allowing users to execute an action that does not properly validate

  • 7.2 High severity

    kliqqi_cms: Improper Control of Generation of Code

    CVE-2024-48700Kliqqi

    Kliqqi-CMS has a background arbitrary code execution vulnerability that attackers can exploit to implant backdoors or getShell via the edit_page.php component.

  • 9.8 Critical severity

    best_courier_management_system: Improper Control of Generation of Code

    CVE-2024-48581PHPEPSS 1.09%

    File Upload vulnerability in Best courier management system in php v.1.0 allows a remote attacker to execute arbitrary code via the admin_class.php component.

  • 9.8 Critical severity

    best_house_rental_management_system: Improper Control of Generation of Code

    CVE-2024-48579PHP

    SQL Injection vulnerability in Best House rental management system project in php v.1.0 allows a remote attacker to execute arbitrary code via the username parameter of the login request.

  • 8.8 High severity

    OpenRefine: Cross-Site Request Forgery

    CVE-2024-47879OpenRefine

    OpenRefine is a free, open source tool for working with messy data. Prior to version 3.8.3, lack of cross-site request forgery protection on the `preview-expression` command means that visiting a malicious website could cause an attacker-controlled expression

  • 9.8 Critical severity

    php-heic-to-jpg: Improper Control of Generation of Code

    CVE-2024-48514Maestroerror

    php-heic-to-jpg <= 1.0.5 is vulnerable to code injection (fixed in 1.0.6). An attacker who can upload heic images is able to execute code on the remote server via the file name. As a result, the CIA is no longer guaranteed. This affects php-heic-to-jpg 1.0.5 a

  • 8.8 High severity

    Snyk Cli: Improper Control of Generation of Code

    CVE-2024-48964Snyk

    The package Snyk CLI before 1.1294.0 is vulnerable to Code Injection when scanning an untrusted Gradle project. The vulnerability can be triggered if Snyk test is run inside the untrusted project due to the improper handling of the current working directory na