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

    Lenovo Browser Mobile: Improper Control of Generation of Code

    CVE-2023-6540Lenovo

    A vulnerability was reported in the Lenovo Browser Mobile and Lenovo Browser HD Apps for Android that could allow an attacker to craft a payload that could result in the disclosure of sensitive information.

  • 9.8 Critical severity

    Apache InLong: Improper Control of Generation of Code

    CVE-2023-51784ApacheEPSS 1.62%

    Improper Control of Generation of Code ('Code Injection') vulnerability in Apache InLong.This issue affects Apache InLong: from 1.5.0 through 1.9.0, which could lead to Remote Code Execution. Users are advised to upgrade to Apache InLong's 1.10.0 or cherry-pic

  • 7.8 High severity

    ZXCLOUD iRAI: Improper Control of Generation of Code

    CVE-2023-41783ZTE

    There is a command injection vulnerability of ZTE's ZXCLOUD iRAI. Due to the program failed to adequately validate the user's input, an attacker could exploit this vulnerability to escalate local privileges.

  • 8.8 High severity

    Magic-Api: Improper Control of Generation of Code

    CVE-2024-0196Magic-Api

    A vulnerability has been found in Magic-Api up to 2.0.1 and classified as critical. Affected by this vulnerability is an unknown functionality of the file /resource/file/api/save?auto=1. The manipulation leads to code injection. The attack can be launched remo

  • 9.8 Critical severity

    spider-flow: Improper Control of Generation of Code

    CVE-2024-0195Spider-flowEPSS 19.3%

    A vulnerability, which was classified as critical, was found in spider-flow 0.4.3. Affected is the function FunctionService.saveFunction of the file src/main/java/org/spiderflow/controller/FunctionController.java. The manipulation leads to code injection. It i

  • 8.8 High severity

    JetElements For Elementor: Improper Control of Generation of Code

    CVE-2023-39157CrocoBlock

    Improper Control of Generation of Code ('Code Injection') vulnerability in Crocoblock JetElements For Elementor.This issue affects JetElements For Elementor: from n/a through 2.6.10.

  • 9.8 Critical severity

    Jeecg Boot: Improper Control of Generation of Code

    CVE-2023-41544JeecgEPSS 2.68%

    SSTI injection vulnerability in jeecg-boot version 3.5.3, allows remote attackers to execute arbitrary code via crafted HTTP request to the /jmreport/loadTableData component.

  • 8.8 High severity

    Verge3D Publishing and E-Commerce: Improper Control of Generation of Code

    CVE-2023-51420Soft8Soft

    Improper Control of Generation of Code ('Code Injection') vulnerability in Soft8Soft LLC Verge3D Publishing and E-Commerce.This issue affects Verge3D Publishing and E-Commerce: from n/a through 4.5.2.

  • 8.8 High severity

    Astra Pro: Improper Control of Generation of Code

    CVE-2023-49830Brainstorm Force

    Improper Control of Generation of Code ('Code Injection') vulnerability in Brainstorm Force Astra Pro.This issue affects Astra Pro: from n/a through 4.3.1.

  • 8.8 High severity

    Qode Essential Addons: Improper Control of Generation of Code

    CVE-2023-47840Qode InteractiveEPSS 1.41%

    Improper Control of Generation of Code ('Code Injection') vulnerability in Qode Interactive Qode Essential Addons.This issue affects Qode Essential Addons: from n/a through 1.5.2.

  • 7.2 High severity

    Nexter Extension: Improper Control of Generation of Code

    CVE-2023-45751Posimyth

    Improper Control of Generation of Code ('Code Injection') vulnerability in POSIMYTH Nexter Extension.This issue affects Nexter Extension: from n/a through 2.0.3.

  • 7.2 High severity

    Kanban Boards for WordPress: Improper Control of Generation of Code

    CVE-2023-40606Kanban for WordPress

    Improper Control of Generation of Code ('Code Injection') vulnerability in Kanban for WordPress Kanban Boards for WordPress.This issue affects Kanban Boards for WordPress: from n/a through 2.5.21.

  • 8.8 High severity

    Rename Media Files: Improper Control of Generation of Code

    CVE-2023-32095Milan Dinić

    Improper Control of Generation of Code ('Code Injection') vulnerability in Milan Dinić Rename Media Files.This issue affects Rename Media Files: from n/a through 1.0.1.

  • 9.8 Critical severity

    RSVPMaker: Improper Control of Generation of Code

    CVE-2023-25054David F. Carr

    Improper Control of Generation of Code ('Code Injection') vulnerability in David F. Carr RSVPMaker.This issue affects RSVPMaker: from n/a through 10.6.6.

  • 8.8 High severity

    WP Booklet: Improper Control of Generation of Code

    CVE-2023-22677BinaryStash

    Improper Control of Generation of Code ('Code Injection') vulnerability in BinaryStash WP Booklet.This issue affects WP Booklet: from n/a through 2.1.8.

  • 8.1 High severity

    shifu: Improper Control of Generation of Code

    CVE-2023-7148ShifuML

    A vulnerability has been found in ShifuML shifu 0.12.0 and classified as critical. Affected by this vulnerability is an unknown functionality of the file src/main/java/ml/shifu/shifu/core/DataPurifier.java of the component Java Expression Language Handler. The

  • 9.8 Critical severity

    Indi Browser: Improper Control of Generation of Code

    CVE-2023-49001Indibrowser

    An issue in Indi Browser (aka kvbrowser) v.12.11.23 allows an attacker to bypass intended access restrictions via interaction with the com.example.gurry.kvbrowswer.webview component.

  • 9.8 Critical severity

    Artisbrowser: Improper Control of Generation of Code

    CVE-2023-49000ArtistScope

    An issue in ArtistScope ArtisBrowser v.34.1.5 and before allows an attacker to bypass intended access restrictions via interaction with the com.artis.browser.IntentReceiverActivity component. NOTE: this is disputed by the vendor, who indicates that ArtisBrowse

  • 9.8 Critical severity

    Tv Browser: Improper Control of Generation of Code

    CVE-2023-47883VladymixEPSS 1.93%

    The com.altamirano.fabricio.tvbrowser TV browser application through 4.5.1 for Android is vulnerable to JavaScript code execution via an explicit intent due to an exposed MainActivity.

  • 9.8 Critical severity

    Tv Bro: Improper Control of Generation of Code

    CVE-2023-43955FedirtsapanaEPSS 1.26%

    The com.phlox.tvwebbrowser TV Bro application through 2.0.0 for Android mishandles external intents through WebView. This allows attackers to execute arbitrary code, create arbitrary files. and perform arbitrary downloads via JavaScript that uses takeBlobDownl

  • 9.8 Critical severity

    com.tcl.browser: Improper Control of Generation of Code

    CVE-2023-43481Sshenzhen Tcl New Technology Co LimitedEPSS 1.06%

    An issue in Shenzhen TCL Browser TV Web BrowseHere (aka com.tcl.browser) 6.65.022_dab24cc6_231221_gp allows a remote attacker to execute arbitrary JavaScript code via the com.tcl.browser.portal.browse.activity.BrowsePageActivity component.

  • 7.8 High severity

    Spreadsheet::ParseExcel Remote Code Execution Exploited

    CVE-2023-7101Douglas WilsonEPSS 19%

    Spreadsheet::ParseExcel version 0.65 is a Perl module used for parsing Excel files. Spreadsheet::ParseExcel is vulnerable to an arbitrary code execution (ACE) vulnerability due to passing unvalidated input from a file into a string-type “eval”. Specifically, t

  • 8.8 High severity

    hertzbeat: Improper Control of Generation of Code

    CVE-2023-51387DromaraEPSS 1.45%

    Hertzbeat is an open source, real-time monitoring system. Hertzbeat uses aviatorscript to evaluate alert expressions. The alert expressions are supposed to be some simple expressions. However, due to improper sanitization for alert expressions in version prior

  • 9.8 Critical severity

    Ex1800t Firmware: Improper Control of Generation of Code

    CVE-2023-51018TOTOLINKEPSS 1.05%

    TOTOlink EX1800T v9.1.0cu.2112_B20220316 is vulnerable to unauthorized arbitrary command execution in the ‘opmode’ parameter of the setWiFiApConfig interface of the cstecgi .cgi.

  • 9.8 Critical severity

    ex1800t_firmware: Improper Control of Generation of Code

    CVE-2023-51015TOTOLINKEPSS 1.05%

    TOTOLINX EX1800T v9.1.0cu.2112_B20220316 is vulnerable to arbitrary command execution in the ‘enable parameter’ of the setDmzCfg interface of the cstecgi .cgi

  • 9.8 Critical severity

    ex1800t_firmware: Improper Control of Generation of Code

    CVE-2023-51026TOTOLINKEPSS 1.05%

    TOTOlink EX1800T V9.1.0cu.2112_B20220316 is vulnerable to unauthorized arbitrary command execution in the ‘hour’ parameter of the setRebootScheCfg interface of the cstecgi .cgi.

  • 7.5 High severity

    Free5gc: Improper Control of Generation of Code

    CVE-2023-49391Free5gcEPSS 1.04%

    An issue was discovered in free5GC version 3.3.0, allows remote attackers to execute arbitrary code and cause a denial of service (DoS) on AMF component via crafted NGAP message.

  • 9.8 Critical severity

    Self Service Password: Improper Control of Generation of Code

    CVE-2023-49032Ltb-projectEPSS 1.23%

    An issue in LTB Self Service Password before v.1.5.4 allows a remote attacker to execute arbitrary code and obtain sensitive information via hijack of the SMS verification code function to arbitrary phone.

  • 7.8 High severity

    ePMP Force 300-25: Improper Control of Generation of Code

    CVE-2023-6691Cambium

    Cambium ePMP Force 300-25 version 4.7.0.1 is vulnerable to a code injection vulnerability that could allow an attacker to perform remote code execution and gain root privileges.

  • 9.8 Critical severity

    Zabbix: Improper Control of Generation of Code

    CVE-2023-32728Zabbix

    The Zabbix Agent 2 item key smart.disk.get does not sanitize its parameters before passing them to a shell command resulting possible vulnerability for remote code execution.

  • 9.8 Critical severity

    DashMachine: Improper Control of Generation of Code

    CVE-2023-6899Rmountjoy92EPSS 1.03%

    A vulnerability classified as problematic was found in rmountjoy92 DashMachine 0.5-4. Affected by this vulnerability is an unknown functionality of the file /settings/save_config of the component Config Handler. The manipulation of the argument value_template

  • 9.8 Critical severity

    wangmarket: Improper Control of Generation of Code

    CVE-2023-6886Xnx3

    A vulnerability was found in xnx3 wangmarket 6.1. It has been rated as critical. Affected by this issue is some unknown functionality of the component Role Management Page. The manipulation leads to code injection. The attack may be launched remotely. The expl

  • 9.8 Critical severity

    KodExplorer: Improper Control of Generation of Code

    CVE-2023-6851Kalcaddle

    A vulnerability was found in kalcaddle KodExplorer up to 4.51.03. It has been rated as critical. This issue affects the function unzipList of the file plugins/zipView/app.php of the component ZIP Archive Handler. The manipulation leads to code injection. The a

  • 8.8 High severity

    xwiki-platform: Improper Control of Generation of Code

    CVE-2023-50723XWikiEPSS 1.19%

    XWiki Platform is a generic wiki platform. Starting in 2.3 and prior to versions 14.10.15, 15.5.2, and 15.7-rc-1, anyone who can edit an arbitrary wiki page in an XWiki installation can gain programming right through several cases of missing escaping in the co

  • 8.8 High severity

    xwiki-platform: Improper Control of Generation of Code

    CVE-2023-50721XWikiEPSS 78.8%

    XWiki Platform is a generic wiki platform. Starting in 4.5-rc-1 and prior to versions 14.10.15, 15.5.2, and 15.7-rc-1, the search administration interface doesn't properly escape the id and label of search user interface extensions, allowing the injection of X

  • 9.8 Critical severity

    BackupBliss – Backup & Migration with Free…: Improper Control of Generation of Code

    CVE-2023-6553InisevEPSS 97.8%

    The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1.3.7 via the /includes/backup-heart.php file. This is due to an attacker being able to control the values passed to an include, and subseque

  • 9.8 Critical severity

    EasyLog web+: Improper Control of Generation of Code

    CVE-2023-48390MultisunsEPSS 1.11%

    Multisuns EasyLog web+ has a code injection vulnerability. An unauthenticated remote attacker can exploit this vulnerability to inject code and access the system to perform arbitrary system operations or disrupt service.

  • 8.8 High severity

    Safari: Improper Control of Generation of Code

    CVE-2023-42890AppleEPSS 3.21%

    The issue was addressed with improved memory handling. This issue is fixed in Safari 17.2, macOS Sonoma 14.2, watchOS 10.2, iOS 17.2 and iPadOS 17.2, tvOS 17.2. Processing web content may lead to arbitrary code execution.

  • 8.8 High severity

    FDS102 for FAdC/FAdCi: Improper Control of Generation of Code

    CVE-2023-5500Frauscher

    This vulnerability allows an remote attacker with low privileges to misuse Improper Control of Generation of Code ('Code Injection') to gain full control of the affected device.

  • 8.2 High severity

    Line: Improper Control of Generation of Code

    CVE-2023-43301Linecorp

    An issue in DARTS SHOP MAXIM mini-app on Line v13.6.1 allows attackers to send crafted malicious notifications via leakage of the channel access token.