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

  • 8.8 High severity

    Multiple SugarCRM Products Remote Code Execution Exploited

    CVE-2023-22952SugarCRMEPSS 80.1%

    In SugarCRM before 12.0. Hotfix 91155, a crafted request can inject custom PHP code through the EmailTemplates because of missing input validation.

  • 8.8 High severity

    BusinessObjects Business Intelligence platform…: Improper Control of Generation of Code

    CVE-2023-0022SAP

    SAP BusinessObjects Business Intelligence Analysis edition for OLAP allows an authenticated attacker to inject malicious code that can be executed by the application over the network. On successful exploitation, an attacker can perform operations that may comp

  • 7.8 High severity

    window-control: Improper Neutralization of Special Elements used in an OS Command

    CVE-2022-25926Window-controlEPSS 1.11%

    Versions of the package window-control before 1.4.5 are vulnerable to Command Injection via the sendKeys function, due to improper input sanitization.

  • 8.8 High severity

    Firefox: Improper Control of Generation of Code

    CVE-2022-46874Mozilla

    A file with a long filename could have had its filename truncated to remove the valid extension, leaving a malicious extension in its place. This could potentially led to user confusion and the execution of malicious code.<br/>*Note*: This issue was originally

  • 8.8 High severity

    Firefox: Improper Control of Generation of Code

    CVE-2022-22756Mozilla

    If a user was convinced to drag and drop an image to their desktop or other folder, the resulting object could have been changed into an executable script which would have run arbitrary code after the user clicked on it. This vulnerability affects Firefox < 97

  • 8.8 High severity

    Ayacms: Improper Control of Generation of Code

    CVE-2022-46101Ayacms ProjectEPSS 2.12%

    AyaCMS v3.1.2 was found to have a code flaw in the ust_sql.inc.php file, which allows attackers to cause command execution by inserting malicious code.

  • 8.8 High severity

    typo3: Improper Control of Generation of Code

    CVE-2022-23503TYPO3

    TYPO3 is an open source PHP based web content management system. Versions prior to 8.7.49, 9.5.38, 10.4.33, 11.5.20, and 12.1.1 are vulnerable to Code Injection. Due to the lack of separating user-submitted data from the internal configuration in the Form Desi

  • 8.8 High severity

    pgadmin4: Missing Authorization

    CVE-2022-4223Pgadmin4EPSS 80.1%

    The pgAdmin server includes an HTTP API that is intended to be used to validate the path a user selects to external PostgreSQL utilities such as pg_dump and pg_restore. The utility is executed by the server to determine what PostgreSQL version it is from. Vers

  • 8.8 High severity

    BASIS: Improper Control of Generation of Code

    CVE-2022-41264SAP

    Due to the unrestricted scope of the RFC function module, SAP BASIS - versions 731, 740, 750, 751, 752, 753, 754, 755, 756, 757, 789, 790, 791, allows an authenticated non-administrator attacker to access a system class and execute any of its public methods wi

  • 7.2 High severity

    Aruba EdgeConnect Enterprise Software: Improper Control of Generation of Code

    CVE-2022-44533Hewlett Packard EnterpriseEPSS 1.4%

    A vulnerability in the Aruba EdgeConnect Enterprise web management interface allows remote authenticated users to run arbitrary commands on the underlying host. A successful exploit could allow an attacker to execute arbitrary commands as root on the underlyin

  • 8.8 High severity

    Aruba EdgeConnect Enterprise Software: Improper Control of Generation of Code

    CVE-2022-43542Hewlett Packard EnterpriseEPSS 1.26%

    Vulnerabilities in the Aruba EdgeConnect Enterprise command line interface allow remote authenticated users to run arbitrary commands on the underlying host. A successful exploit could allow an attacker to execute arbitrary commands as root on the underlying o

  • 7.2 High severity

    Aruba EdgeConnect Enterprise Software: Improper Control of Generation of Code

    CVE-2022-43541Hewlett Packard EnterpriseEPSS 1.66%

    Vulnerabilities in the Aruba EdgeConnect Enterprise command line interface allow remote authenticated users to run arbitrary commands on the underlying host. A successful exploit could allow an attacker to execute arbitrary commands as root on the underlying o

  • 9.8 Critical severity

    spring-boot-admin: Improper Control of Generation of Code

    CVE-2022-46166CodecentricEPSS 1.63%

    Spring boot admins is an open source administrative user interface for management of spring boot applications. All users who run Spring Boot Admin Server, having enabled Notifiers (e.g. Teams-Notifier) and write access to environment variables via UI are affec

  • 8.8 High severity

    pim-community-dev: Improper Control of Generation of Code

    CVE-2022-46157AkeneoEPSS 1.53%

    Akeneo PIM is an open source Product Information Management (PIM). Akeneo PIM Community Edition versions before v5.0.119 and v6.0.53 allows remote authenticated users to execute arbitrary PHP code on the server by uploading a crafted image. Akeneo PIM Communit

  • 7.2 High severity

    Movable Type: Improper Control of Generation of Code

    CVE-2022-43660Six ApartEPSS 1.06%

    Improper neutralization of Server-Side Includes (SSW) within a web page in Movable Type series allows a remote authenticated attacker with Privilege of 'Manage of Content Types' may execute an arbitrary Perl script and/or an arbitrary OS command. Affected prod

  • 7.2 High severity

    enterprise_protection: Improper Control of Generation of Code

    CVE-2022-46333ProofpointEPSS 1.54%

    The admin user interface in Proofpoint Enterprise Protection (PPS/PoD) contains a command injection vulnerability that enables an admin to execute commands beyond their allowed scope. This affects all versions 8.19.0 and below.

  • 9.8 Critical severity

    pdfmake: Improper Control of Generation of Code

    CVE-2022-46161BpampuchEPSS 1.76%

    pdfmake is an open source client/server side PDF printing in pure JavaScript. In versions up to and including 0.2.5 pdfmake contains an unsafe evaluation of user controlled input. Users of pdfmake are thus subject to arbitrary code execution in the context of

  • 8.8 High severity

    FastCMS: Improper Control of Generation of Code

    CVE-2022-4300FastCMS

    A vulnerability was found in FastCMS. It has been rated as critical. This issue affects some unknown processing of the file /template/edit of the component Template Handler. The manipulation leads to injection. The attack may be initiated remotely. The exploit

  • 7.8 High severity

    SwiftTerm: Improper Control of Generation of Code

    CVE-2022-23465Migueldeicaza

    SwiftTerm is a Xterm/VT100 Terminal emulator. Prior to commit a94e6b24d24ce9680ad79884992e1dff8e150a31, an attacker could modify the window title via a certain character escape sequence and then insert it back to the command line in the user's terminal, e.g. w

  • 9.8 Critical severity

    Tvox: Improper Control of Generation of Code

    CVE-2022-43333TeleniasoftwareEPSS 1.83%

    Telenia Software s.r.l TVox before v22.0.17 was discovered to contain a remote code execution (RCE) vulnerability in the component action_export_control.php.

  • 8.8 High severity

    Sophos Firewall: Improper Control of Generation of Code

    CVE-2022-3713Sophos

    A code injection vulnerability allows adjacent attackers to execute code in the Wifi controller of Sophos Firewall releases older than version 19.5 GA.

  • 7.2 High severity

    Ultimate Member – User Profile, Registration…: Improper Control of Generation of Code

    CVE-2022-3384UltimatememberEPSS 3.06%

    The Ultimate Member plugin for WordPress is vulnerable to Remote Code Execution in versions up to, and including, 2.5.0 via the populate_dropdown_options function that accepts user supplied input and passes it through call_user_func(). This is restricted to no

  • 7.2 High severity

    Ultimate Member – User Profile, Registration…: Improper Control of Generation of Code

    CVE-2022-3383UltimatememberEPSS 3.11%

    The Ultimate Member plugin for WordPress is vulnerable to Remote Code Execution in versions up to, and including, 2.5.0 via the get_option_value_from_callback function that accepts user supplied input and passes it through call_user_func(). This makes it possi

  • 9.8 Critical severity

    Paddlepaddle: Improper Control of Generation of Code

    CVE-2022-45908PaddlePaddleEPSS 1.43%

    In PaddlePaddle before 2.4, paddle.audio.functional.get_window is vulnerable to code injection because it calls eval on a user-supplied winstr. This may lead to arbitrary code execution.

  • 9.8 Critical severity

    eyoom builder: Improper Limitation of a Pathname to a Restricted Directory

    CVE-2022-41158EyoomEPSS 2.08%

    Remote code execution vulnerability can be achieved by using cookie values as paths to a file by this builder program. A remote attacker could exploit the vulnerability to execute or inject malicious code.

  • 7.2 High severity

    Filecloud: Improper Control of Generation of Code

    CVE-2022-39833FileCloudEPSS 2.89%

    FileCloud Versions 20.2 and later allows remote attackers to potentially cause unauthorized remote code execution and access to reported API endpoints via a crafted HTTP request.

  • 6.8 Medium severity

    Mitel MiVoice Connect Code Injection Exploited

    CVE-2022-41223MitelEPSS 10.7%

    The Director database component of MiVoice Connect through 19.3 (22.22.6100.0) could allow an authenticated attacker to conduct a code-injection attack via crafted data due to insufficient restrictions on the database data type.

  • 9.8 Critical severity

    super-xray: Improper Control of Generation of Code

    CVE-2022-419454ra1n

    super-xray is a vulnerability scanner (xray) GUI launcher. In version 0.1-beta, the URL is not filtered and directly spliced ​​into the command, resulting in a possible RCE vulnerability. Users should upgrade to super-xray 0.2-beta.

  • 9.8 Critical severity

    Lava: Improper Control of Generation of Code

    CVE-2022-45132LinaroEPSS 2.59%

    In Linaro Automated Validation Architecture (LAVA) before 2022.11.1, remote code execution can be achieved through user-submitted Jinja2 template. The REST API endpoint for validating device configuration files in lava-server loads input as a Jinja2 template i

  • 7.3 High severity

    Zoom Client for Meetings for Windows (32-bit): Uncontrolled Search Path Element

    CVE-2022-28766Zoom Video Communications

    Windows 32-bit versions of the Zoom Client for Meetings before 5.12.6 and Zoom Rooms for Conference Room before version 5.12.6 are susceptible to a DLL injection vulnerability. A local low-privileged user could exploit this vulnerability to run arbitrary code

  • 8.8 High severity

    Apache Airflow: Improper Control of Generation of Code

    CVE-2022-40127ApacheEPSS 85.7%

    A vulnerability in Example Dags of Apache Airflow allows an attacker with UI access who can trigger DAGs, to execute arbitrary commands via manually provided run_id parameter. This issue affects Apache Airflow Apache Airflow versions prior to 2.4.0.

  • 7.8 High severity

    security-advisories: Improper Control of Generation of Code

    CVE-2022-41882Nextcloud

    The Nextcloud Desktop Client is a tool to synchronize files from Nextcloud Server with your computer. In version 3.6.0, if a user received a malicious file share and has it synced locally or the virtual filesystem enabled and clicked a nc://open/ link it will

  • 7.2 High severity

    Import any XML or CSV File to WordPress: Improper Control of Generation of Code

    CVE-2022-3418Import any XML or CSV File to WordPressEPSS 1.46%

    The Import any XML or CSV File to WordPress plugin before 3.6.9 is not properly filtering which file extensions are allowed to be imported on the server, which could allow administrators in multi-site WordPress installations to upload arbitrary files

  • 8.8 High severity

    Ootbi: Improper Control of Generation of Code

    CVE-2022-44794ObjectfirstEPSS 1.15%

    An issue was discovered in Object First Ootbi BETA build 1.0.7.712. Management protocol has a flow which allows a remote attacker to execute arbitrary Bash code with root privileges. The command that sets the hostname doesn't validate input parameters. As a re

  • 9.8 Critical severity

    Spring by VMware: Improper Control of Generation of Code

    CVE-2022-31691Spring by VMwareEPSS 3.43%

    Spring Tools 4 for Eclipse version 4.16.0 and below as well as VSCode extensions such as Spring Boot Tools, Concourse CI Pipeline Editor, Bosh Editor and Cloudfoundry Manifest YML Support version 1.39.0 and below all use Snakeyaml library for YAML editing supp

  • 8.8 High severity

    Splunk Enterprise: Improper Control of Generation of Code

    CVE-2022-43571SplunkEPSS 18.6%

    In Splunk Enterprise versions below 8.2.9, 8.1.12, and 9.0.2, an authenticated user can execute arbitrary code through the dashboard PDF generation component.

  • 7.8 High severity

    macOS: Improper Control of Generation of Code

    CVE-2022-32924Apple

    The issue was addressed with improved memory handling. This issue is fixed in tvOS 16.1, macOS Big Sur 11.7, macOS Ventura 13, watchOS 9.1, iOS 16.1 and iPadOS 16, macOS Monterey 12.6. An app may be able to execute arbitrary code with kernel privileges.

  • 9.8 Critical severity

    pimcore: Improper Control of Generation of Code

    CVE-2022-39365PimcoreEPSS 2.28%

    Pimcore is an open source data and experience management platform. Prior to version 10.5.9, the user controlled twig templates rendering in `Pimcore/Mail` & `ClassDefinition\Layout\Text` is vulnerable to server-side template injection, which could lead to remo

  • 7.2 High severity

    WP All Export Pro: Improper Control of Generation of Code

    CVE-2022-3394WP All Export ProEPSS 2.07%

    The WP All Export Pro WordPress plugin before 1.7.9 does not limit some functionality during exports only to users with the Administrator role, allowing any logged in user which has been given privileges to perform exports to execute arbitrary code on the site

  • 9.8 Critical severity

    azure-cli: Improper Neutralization of Special Elements used in an OS Command

    CVE-2022-39327AzureEPSS 4.24%

    Azure CLI is the command-line interface for Microsoft Azure. In versions previous to 2.40.0, Azure CLI contains a vulnerability for potential code injection. Critical scenarios are where a hosting machine runs an Azure CLI command where parameter values have b