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

    Simcenter Amesim: Improper Control of Generation of Code

    CVE-2023-43625SiemensEPSS 1.41%

    A vulnerability has been identified in Simcenter Amesim (All versions < V2021.1). The affected application contains a SOAP endpoint that could allow an unauthenticated remote attacker to perform DLL injection and execute arbitrary code in the context of the af

  • 9.0 Critical severity

    garden: Improper Control of Generation of Code

    CVE-2023-44392Garden-io

    Garden provides automation for Kubernetes development and testing. Prior tov ersions 0.13.17 and 0.12.65, Garden has a dependency on the cryo library, which is vulnerable to code injection due to an insecure implementation of deserialization. Garden stores ser

  • 9.8 Critical severity

    Fsevents: Improper Control of Generation of Code

    CVE-2023-45311Fsevents ProjectEPSS 1.7%

    fsevents before 1.2.11 depends on the https://fsevents-binaries.s3-us-west-2.amazonaws.com URL, which might allow an adversary to execute arbitrary code if any JavaScript project (that depends on fsevents) distributes code that was obtained from that URL at a

  • 7.8 High severity

    Storage Protect Client: Uncontrolled Search Path Element

    CVE-2023-35897IBM

    IBM Spectrum Protect Client and IBM Storage Protect for Virtual Environments 8.1.0.0 through 8.1.19.0 could allow a local user to execute arbitrary code on the system using a specially crafted file, caused by a DLL hijacking flaw. IBM X-Force ID: 259246.

  • 7.8 High severity

    Trellix Endpoint Security: Improper Control of Generation of Code

    CVE-2023-3665Trellix

    A code injection vulnerability in Trellix ENS 10.7.0 April 2023 release and earlier, allowed a local user to disable the ENS AMSI component via environment variables, leading to denial of service and or the execution of arbitrary code.

  • 9.8 Critical severity

    cashIT! - serving solutions.: Improper Control of Generation of Code

    CVE-2023-3656PoS/ Dienstleistung, Entwicklung & VertriebEPSS 1.21%

    cashIT! - serving solutions. Devices from "PoS/ Dienstleistung, Entwicklung & Vertrieb GmbH" to 03.A06rks 2023.02.37 are affected by an unauthenticated remote code execution vulnerability. This vulnerability can be triggered by an HTTP endpoint exposed to the

  • 9.8 Critical severity

    Mojoportal: Improper Control of Generation of Code

    CVE-2023-44011MojoportalEPSS 1.76%

    An issue in mojoPortal v.2.7.0.0 allows a remote attacker to execute arbitrary code via a crafted script to the layout.master skin file at the Skin management component.

  • 8.8 High severity

    OpenHook: Improper Control of Generation of Code

    CVE-2023-5201BrazenlygeekEPSS 1.71%

    The OpenHook plugin for WordPress is vulnerable to Remote Code Execution in versions up to, and including, 4.3.0 via the 'php' shortcode. This allows authenticated attackers with subscriber-level permissions or above, to execute code on the server. This requir

  • 8.1 High severity

    pydash: Improper Neutralization of Special Elements used in a Command

    CVE-2023-26145PydashEPSS 3.6%

    This affects versions of the package pydash before 6.0.0. A number of pydash methods such as pydash.objects.invoke() and pydash.collections.invoke_map() accept dotted paths (Deep Path Strings) to target a nested Python object, relative to the original source o

  • 8.8 High severity

    Economizzer: Improper Control of Generation of Code

    CVE-2023-38877EconomizzerEPSS 1.07%

    A host header injection vulnerability exists in gugoan's Economizzer v.0.9-beta1 and commit 3730880 (April 2023). By sending a specially crafted host header in the reset password request, it is possible to send password reset links to users which, once clicked

  • 7.8 High severity

    irec: Improper Control of Generation of Code

    CVE-2023-41444Binalyze

    An issue in Binalyze IREC.sys v.3.11.0 and before allows a local attacker to execute arbitrary code and escalate privileges via the fun_1400084d0 function in IREC.sys driver.

  • 9.9 Critical severity

    jumpserver: Improper Control of Generation of Code

    CVE-2023-43651JumpServerEPSS 2.11%

    JumpServer is an open source bastion host. An authenticated user can exploit a vulnerability in MongoDB sessions to execute arbitrary commands, leading to remote code execution. This vulnerability may further be leveraged to gain root privileges on the system.

  • 9.8 Critical severity

    CMS: Improper Control of Generation of Code

    CVE-2023-5221ForUEPSS 1.49%

    A vulnerability classified as critical has been found in ForU CMS. This affects an unknown part of the file /install/index.php. The manipulation of the argument db_name leads to code injection. It is possible to initiate the attack remotely. The exploit has be

  • 9.8 Critical severity

    Dedebiz: Improper Control of Generation of Code

    CVE-2023-43234DedeBIZEPSS 1.14%

    DedeBIZ v6.2.11 was discovered to contain multiple remote code execution (RCE) vulnerabilities at /admin/file_manage_control.php via the $activepath and $filename parameters.

  • 7.8 High severity

    iOS and iPadOS: Improper Control of Generation of Code

    CVE-2023-41984Apple

    The issue was addressed with improved memory handling. This issue is fixed in macOS Ventura 13.6, tvOS 17, iOS 16.7 and iPadOS 16.7, macOS Monterey 12.7, watchOS 10, iOS 17 and iPadOS 17, macOS Sonoma 14. An app may be able to execute arbitrary code with kerne

  • 8.8 High severity

    iOS and iPadOS: Improper Control of Generation of Code

    CVE-2023-41074AppleEPSS 4.12%

    The issue was addressed with improved checks. This issue is fixed in tvOS 17, Safari 17, watchOS 10, iOS 17 and iPadOS 17, macOS Sonoma 14. Processing web content may lead to arbitrary code execution.

  • 9.8 Critical severity

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

    CVE-2023-4291FrauscherEPSS 1.2%

    Frauscher Sensortechnik GmbH FDS101 for FAdC/FAdCi v1.4.24 and all previous versions are vulnerable to a remote code execution (RCE) vulnerability via manipulated parameters of the web interface without authentication. This could lead to a full compromise of t

  • 9.1 Critical severity

    foreman: Improper Control of Generation of Code

    CVE-2023-0462Foreman

    An arbitrary code execution flaw was found in Foreman. This issue may allow an admin user to execute arbitrary code on the underlying operating system by setting global parameters with a YAML payload.

  • 8.8 High severity

    Bitbucket Data Center: Improper Control of Generation of Code

    CVE-2023-22513AtlassianEPSS 15.3%

    This High severity RCE (Remote Code Execution) vulnerability was introduced in version 8.0.0 of Bitbucket Data Center and Server. This RCE (Remote Code Execution) vulnerability, with a CVSS Score of 8.5, allows an authenticated attacker to execute arbitrary co

  • 7.2 High severity

    Trend Micro Apex One and Worry-Free Business Security Remote Code Execution Exploited

    CVE-2023-41179Trend MicroEPSS 4.22%

    A vulnerability in the 3rd party AV uninstaller module contained in Trend Micro Apex One (on-prem and SaaS), Worry-Free Business Security and Worry-Free Business Security Services could allow an attacker to manipulate the module to execute arbitrary commands o

  • 8.8 High severity

    MODULYS GP (MOD3GP-SY-120K): Improper Control of Generation of Code

    CVE-2023-40221Socomec

    The absence of filters when loading some sections in the web application of the vulnerable device allows potential attackers to inject malicious code that will be interpreted when a legitimate user accesses the web section (MAIL SERVER) where the information i

  • 7.8 High severity

    Insydeh2o: Improper Control of Generation of Code

    CVE-2023-34195Insyde

    An issue was discovered in SystemFirmwareManagementRuntimeDxe in Insyde InsydeH2O with kernel 5.0 through 5.5. The implementation of the GetImage method retrieves the value of a runtime variable named GetImageProgress, and later uses this value as a function p

  • 7.2 High severity

    VLink Virtual Matrix Software: Improper Neutralization of Special Elements used in a Command

    CVE-2023-34999RTSEPSS 1.22%

    A command injection vulnerability exists in RTS VLink Virtual Matrix Software Versions v5 (< 5.7.6) and v6 (< 6.5.0) that allows an attacker to perform arbitrary code execution via the admin web interface.

  • 9.8 Critical severity

    cms: Improper Control of Generation of Code

    CVE-2023-41892Craft CMSEPSS 94.2%

    Craft CMS is a platform for creating digital experiences. This is a high-impact, low-complexity attack vector. Users running Craft installations before 4.4.15 are encouraged to update to at least that version to mitigate the issue. This issue has been fixed in

  • 9.8 Critical severity

    Wave: Improper Control of Generation of Code

    CVE-2023-42471Wave-aiEPSS 2.79%

    The wave.ai.browser application through 1.0.35 for Android allows a remote attacker to execute arbitrary JavaScript code via a crafted intent. It contains a manifest entry that exports the wave.ai.browser.ui.splash.SplashScreen activity. This activity uses a W

  • 9.8 Critical severity

    Life: Improper Control of Generation of Code

    CVE-2023-42470ImoulifeEPSS 2.49%

    The Imou Life com.mm.android.smartlifeiot application through 6.8.0 for Android allows Remote Code Execution via a crafted intent to an exported component. This relates to the com.mm.android.easy4ip.MainActivity activity. JavaScript execution is enabled in the

  • 9.8 Critical severity

    cmd/go: Improper Control of Generation of Code

    CVE-2023-39320Go toolchainEPSS 1.76%

    The go.mod toolchain directive, introduced in Go 1.21, can be leveraged to execute scripts and binaries relative to the root of the module when the "go" command was executed within the module. This applies to modules downloaded using the "go" command from the

  • 7.2 High severity

    fides: Improper Control of Generation of Code

    CVE-2023-41319Ethyca

    Fides is an open-source privacy engineering platform for managing the fulfillment of data privacy requests in a runtime environment, and the enforcement of privacy regulations in code. The Fides webserver API allows custom integrations to be uploaded as a ZIP

  • 9.8 Critical severity

    Cuppacms: Improper Control of Generation of Code

    CVE-2023-39681CuppacmsEPSS 1.74%

    Cuppa CMS v1.0 was discovered to contain a remote code execution (RCE) vulnerability via the email_outgoing parameter at /Configuration.php. This vulnerability is triggered via a crafted payload.

  • 8.8 High severity

    Access Management System: Improper Control of Generation of Code

    CVE-2022-41763NokiaEPSS 1.48%

    An issue was discovered in NOKIA AMS 9.7.05. Remote Code Execution exists via the debugger of the ipAddress variable. A remote user, authenticated to the AMS server, could inject code in the PING function. The privileges of the command executed depend on the u

  • 7.2 High severity

    Mybb: Improper Control of Generation of Code

    CVE-2023-41362MyBBEPSS 2.05%

    MyBB before 1.8.36 allows Code Injection by users with certain high privileges. Templates in Admin CP intentionally use eval, and there was some validation of the input to eval, but type juggling interfered with this when using PCRE within PHP.

  • 7.8 High severity

    Pagekit: Improper Control of Generation of Code

    CVE-2023-41005Pagekit

    An issue in Pagekit pagekit v.1.0.18 alows a remote attacker to execute arbitrary code via thedownloadAction and updateAction functions in UpdateController.php

  • 8.8 High severity

    xwiki-platform: Improper Control of Generation of Code

    CVE-2023-40177XWikiEPSS 1.06%

    XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Any registered user can use the content field of their user profile page to execute arbitrary scripts with programming rights, thus effectively performing

  • 7.2 High severity

    EdgeConnect SD-WAN Orchestrator: Improper Control of Generation of Code

    CVE-2023-37427Hewlett Packard EnterpriseEPSS 1.29%

    A vulnerability in the web-based management interface of EdgeConnect SD-WAN Orchestrator could allow an authenticated remote attacker to run arbitrary commands on the underlying host. Successful exploitation of this vulnerability allows an attacker to execute

  • 8.1 High severity

    EdgeConnect SD-WAN Orchestrator: Improper Control of Generation of Code

    CVE-2023-37424Hewlett Packard Enterprise

    A vulnerability in the web-based management interface of EdgeConnect SD-WAN Orchestrator could allow an unauthenticated remote attacker to run arbitrary commands on the underlying host if certain preconditions outside of the attacker's control are met. Success

  • 9.8 Critical severity

    Langchain: Improper Control of Generation of Code

    CVE-2023-36281LangChainEPSS 3.41%

    An issue in langchain v.0.0.171 allows a remote attacker to execute arbitrary code via a JSON file to load_prompt. This is related to __subclasses__ or a template.

  • 9.8 Critical severity

    Pandasai: Improper Control of Generation of Code

    CVE-2023-39660GabrieleventuriEPSS 1.53%

    An issue in Gaberiele Venturi pandasai v.0.8.0 and before allows a remote attacker to execute arbitrary code via a crafted request to the prompt function.

  • 9.8 Critical severity

    vigor2620: Improper Control of Generation of Code

    CVE-2023-31447DrayTek

    user_login.cgi on Draytek Vigor2620 devices before 3.9.8.4 (and on all versions of Vigor2925 devices) allows attackers to send a crafted payload to modify the content of the code segment, insert shellcode, and execute arbitrary code.

  • 8.8 High severity

    LAN-WH300N/RE: Improper Control of Generation of Code

    CVE-2023-39445LOGITEC

    Hidden functionality vulnerability in LAN-WH300N/RE all versions provided by LOGITEC CORPORATION allows an unauthenticated attacker to execute arbitrary code by sending a specially crafted file to the product's certain management console.

  • 8.0 High severity

    LAN-WH300N/RE: Improper Control of Generation of Code

    CVE-2023-38576LOGITEC

    Hidden functionality vulnerability in LAN-WH300N/RE all versions provided by LOGITEC CORPORATION allows an authenticated user to execute arbitrary OS commands on a certain management console.