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

    File Manager Pro: Unrestricted Upload of File with Dangerous Type

    CVE-2023-6846File ManagerEPSS 15.9%

    The File Manager Pro plugin for WordPress is vulnerable to Arbitrary File Upload in all versions up to, and including, 8.3.4 via the mk_check_filemanager_php_syntax AJAX function. This makes it possible for authenticated attackers, with subscriber access and a

  • 8.8 High severity

    AXIS OS: Improper Control of Generation of Code

    CVE-2023-5800Axis Communications AB

    Vintage, member of the AXIS OS Bug Bounty Program, has found that the VAPIX API create_overlay.cgi did not have a sufficient input validation allowing for a possible remote code execution. This flaw can only be exploited after authenticating with an operator-

  • 8.8 High severity

    AXIS OS: Improper Control of Generation of Code

    CVE-2023-5677Axis Communications AB

    Brandon Rothel from QED Secure Solutions and Sam Hanson of Dragos have found that the VAPIX API tcptest.cgi did not have a sufficient input validation allowing for a possible remote code execution. This flaw can only be exploited after authenticating with an o

  • 9.8 Critical severity

    Beetl: Improper Control of Generation of Code

    CVE-2024-22533XiandafuEPSS 1.03%

    Before Beetl v3.15.12, the rendering template has a server-side template injection (SSTI) vulnerability. When the incoming template is controllable, it will be filtered by the DefaultNativeSecurityManager blacklist. Because blacklist filtering is not strict, t

  • 9.8 Critical severity

    Miro: Improper Control of Generation of Code

    CVE-2024-23746MiroEPSS 1.29%

    Miro Desktop 0.8.18 on macOS allows local Electron code injection via a complex series of steps that might be usable in some environments (bypass a kTCCServiceSystemPolicyAppBundles requirement via a file copy, an app.app/Contents rename, an asar modification,

  • 9.8 Critical severity

    openBI: Improper Control of Generation of Code

    CVE-2024-1117openBI

    A vulnerability was found in openBI up to 1.0.8. It has been declared as critical. Affected by this vulnerability is the function index of the file /application/index/controller/Screen.php. The manipulation of the argument fileurl leads to code injection. The

  • 8.8 High severity

    vantage6: Improper Control of Generation of Code

    CVE-2024-21649Vantage6EPSS 1.27%

    The vantage6 technology enables to manage and deploy privacy enhancing technologies like Federated Learning (FL) and Multi-Party Computation (MPC). Prior to 4.2.0, authenticated users could inject code into algorithm environment variables, resulting in remote

  • 8.8 High severity

    BigFix ServiceNow Data Flow: Improper Control of Generation of Code

    CVE-2023-37518HCL Software

    HCL BigFix ServiceNow is vulnerable to arbitrary code injection. A malicious authorized attacker could inject arbitrary code and execute within the context of the running user.

  • 9.8 Critical severity

    E-DDC3.3: Improper Control of Generation of Code

    CVE-2024-1015SE-elektronicEPSS 1.75%

    Remote command execution vulnerability in SE-elektronic GmbH E-DDC3.3 affecting versions 03.07.03 and higher. An attacker could send different commands from the operating system to the system via the web configuration functionality of the device.

  • 9.8 Critical severity

    Loom: Improper Control of Generation of Code

    CVE-2024-23742LoomEPSS 1.71%

    An issue in Loom on macOS version 0.196.1 and before, allows remote attackers to execute arbitrary code via the RunAsNode and enableNodeClilnspectArguments settings. NOTE: the vendor disputes this because it requires local access to a victim's machine.

  • 9.8 Critical severity

    hyper: Improper Control of Generation of Code

    CVE-2024-23741HyperEPSS 1.57%

    An issue in Hyper on macOS version 3.4.1 and before, allows remote attackers to execute arbitrary code via the RunAsNode and enableNodeClilnspectArguments settings.

  • 8.8 High severity

    UI: Improper Control of Generation of Code

    CVE-2023-52251ProvectusEPSS 86.8%

    An issue discovered in provectus kafka-ui 0.4.0 through 0.7.2 allows remote attackers to execute arbitrary code via the q parameter of /api/clusters/local/topics/{topic}/messages. No fixed release is available; the project has had no commit since 2024-04-08.

  • 7.2 High severity

    Processwire: Improper Control of Generation of Code

    CVE-2023-24676ProcesswireEPSS 1.31%

    An issue found in ProcessWire 3.0.210 allows attackers to execute arbitrary code and install a reverse shell via the download_zip_url parameter when installing a new module. NOTE: this is disputed because exploitation requires that the attacker is able to ente

  • 7.2 High severity

    Bluefield 2 DPU BMC, BlueField 3 DPU BMC: Improper Neutralization of Special Elements used in an OS Command

    CVE-2023-31037NVIDIA

    NVIDIA Bluefield 2 and Bluefield 3 DPU BMC contains a vulnerability in ipmitool, where a root user may cause code injection by a network call. A successful exploit of this vulnerability may lead to code execution on the OS.

  • 9.8 Critical severity

    snapcast: Improper Control of Generation of Code

    CVE-2023-36177BadaixEPSS 27.5%

    An issue was discovered in badaix Snapcast version 0.27.0, allows remote attackers to execute arbitrary code and gain sensitive information via crafted request in JSON-RPC-API.

  • 8.8 High severity

    Firefox: Improper Control of Generation of Code

    CVE-2024-0755Mozilla

    Memory safety bugs present in Firefox 121, Firefox ESR 115.6, and Thunderbird 115.6. 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

  • 7.8 High severity

    iOS and iPadOS: Improper Control of Generation of Code

    CVE-2024-23208AppleEPSS 1.41%

    The issue was addressed with improved memory handling. This issue is fixed in iOS 17.3 and iPadOS 17.3, macOS Sonoma 14.3, tvOS 17.3, watchOS 10.3. An app may be able to execute arbitrary code with kernel privileges.

  • 8.8 High severity

    Metagpt: Improper Control of Generation of Code

    CVE-2024-23750Deepwisdom

    MetaGPT through 0.6.4 allows the QaEngineer role to execute arbitrary code because RunCode.run_script() passes shell metacharacters to subprocess.Popen.

  • 9.8 Critical severity

    Mldong: Improper Control of Generation of Code

    CVE-2024-0738Garethhk

    A vulnerability, which was classified as critical, has been found in 个人开源 mldong 1.0. This issue affects the function ExpressionEngine of the file com/mldong/modules/wf/engine/model/DecisionModel.java. The manipulation leads to code injection. The attack may b

  • 8.1 High severity

    pillow: Improper Control of Generation of Code

    CVE-2023-50447PythonEPSS 1.7%

    Pillow through 10.1.0 allows PIL.ImageMath.eval Arbitrary Code Execution via the environment parameter, a different vulnerability than CVE-2022-22817 (which was about the expression parameter).

  • 8.8 High severity

    Citrix NetScaler ADC and NetScaler Gateway Code Injection Exploited

    CVE-2023-6548Cloud Software GroupEPSS 3.19%

    Improper Control of Generation of Code ('Code Injection') in NetScaler ADC and NetScaler Gateway allows an attacker with access to NSIP, CLIP or SNIP with management interface to perform Authenticated (low privileged) remote code execution on Management Interf

  • 7.8 High severity

    Sourcetree for Mac: Improper Control of Generation of Code

    CVE-2023-22514Atlassian

    This High severity RCE (Remote Code Execution) vulnerability was introduced in version 3.4.14 of Sourcetree for Mac and Sourcetree for Windows. This RCE (Remote Code Execution) vulnerability, with a CVSS Score of 7.8, and a CVSS Vector of: CVSS:3.0/AV:L/AC:L/P

  • 9.8 Critical severity

    school-management-pro: Improper Control of Generation of Code

    CVE-2022-1609School-management-proEPSS 64.1%

    The School Management WordPress plugin before 9.9.7 contains an obfuscated backdoor injected in it's license checking code that registers a REST API handler, allowing an unauthenticated attacker to execute arbitrary PHP code on the site.

  • 9.8 Critical severity

    The Mock software contains a vulnerability wherein an attacker could potentially exploit…

    CVE-2023-6395MockEPSS 1.55%

    The Mock software contains a vulnerability wherein an attacker could potentially exploit privilege escalation, enabling the execution of arbitrary code with root user privileges. This weakness stems from the absence of proper sandboxing during the expansion an

  • 7.5 High severity

    Confluence Data Center: Improper Control of Generation of Code

    CVE-2024-21674AtlassianEPSS 1.77%

    This High severity Remote Code Execution (RCE) vulnerability was introduced in version 7.13.0 of Confluence Data Center and Server. Remote Code Execution (RCE) vulnerability, with a CVSS Score of 8.6 and a CVSS Vector of CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:

  • 8.8 High severity

    Confluence Data Center: Improper Control of Generation of Code

    CVE-2024-21673AtlassianEPSS 1.5%

    This High severity Remote Code Execution (RCE) vulnerability was introduced in versions 7.13.0 of Confluence Data Center and Server. Remote Code Execution (RCE) vulnerability, with a CVSS Score of 8.0 and a CVSS Vector of CVSS:3.0/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I

  • 8.8 High severity

    Confluence Data Center: Improper Control of Generation of Code

    CVE-2024-21672AtlassianEPSS 1.36%

    This High severity Remote Code Execution (RCE) vulnerability was introduced in version 2.1.0 of Confluence Data Center and Server. Remote Code Execution (RCE) vulnerability, with a CVSS Score of 8.3 and a CVSS Vector of CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H

  • 8.8 High severity

    Confluence Data Center: Improper Control of Generation of Code

    CVE-2023-22526AtlassianEPSS 1.57%

    This High severity RCE (Remote Code Execution) vulnerability was introduced in version 7.19.0 of Confluence Data Center. This RCE (Remote Code Execution) vulnerability, with a CVSS Score of 7.2, allows an authenticated attacker to execute arbitrary code which

  • 8.8 High severity

    Hummerrisk: Improper Control of Generation of Code

    CVE-2023-43449HummerRisk

    An issue in HummerRisk HummerRisk v.1.10 thru 1.4.1 allows an authenticated attacker to execute arbitrary code via a crafted request to the service/LicenseService component.

  • 9.8 Critical severity

    Apache IoTDB: Improper Control of Generation of Code

    CVE-2023-46226ApacheEPSS 1.92%

    Remote Code Execution vulnerability in Apache IoTDB.This issue affects Apache IoTDB: from 1.0.0 through 1.2.2. Users are recommended to upgrade to version 1.3.0, which fixes the issue.

  • 8.8 High severity

    Archive Storage Manager: Improper Control of Generation of Code

    CVE-2023-51066QstarEPSS 1.49%

    An authenticated remote code execution vulnerability in QStar Archive Solutions Release RELEASE_3-0 Build 7 Patch 0 allows attackers to arbitrarily execute commands.

  • 8.8 High severity

    scada-lts: Improper Control of Generation of Code

    CVE-2023-33472Scada-LTSEPSS 1.27%

    An issue was discovered in Scada-LTS v2.7.5.2 build 4551883606 and before, allows remote attackers with low-level authentication to escalate privileges, execute arbitrary code, and obtain sensitive information via Event Handlers function.

  • 8.8 High severity

    ADSelfService Plus: Improper Control of Generation of Code

    CVE-2024-0252ManageEngineEPSS 7.81%

    ManageEngine ADSelfService Plus versions 6401 and below are vulnerable to the remote code execution due to the improper handling in the load balancer component. Authentication is required in order to exploit this vulnerability.

  • 8.8 High severity

    iOS and iPadOS: Improper Control of Generation of Code

    CVE-2023-42833Apple

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

  • 7.8 High severity

    macOS: Improper Control of Generation of Code

    CVE-2023-32383Apple

    This issue was addressed by forcing hardened runtime on the affected binaries at the system level. This issue is fixed in macOS Monterey 12.6.6, macOS Big Sur 11.7.7, macOS Ventura 13.4. An app may be able to inject code into sensitive binaries bundled with Xc

  • 8.8 High severity

    azure-activedirectory-identitymodel-extensions-…: Improper Control of Generation of Code

    CVE-2024-21643AzureADEPSS 2.23%

    IdentityModel Extensions for .NET provide assemblies for web developers that wish to use federated identity providers for establishing the caller's identity. Anyone leveraging the `SignedHttpRequest`protocol or the `SignedHttpRequestValidator`is vulnerable. Mi

  • 9.1 Critical severity

    SAP Application Interface Framework (File…: Improper Control of Generation of Code

    CVE-2024-21737SAP

    In SAP Application Interface Framework File Adapter - version 702, a high privilege user can use a function module to traverse through various layers and execute OS commands directly. By this, such user can control the behaviour of the application. This leads

  • 9.8 Critical severity

    azure-uamqp-c: Integer Overflow or Wraparound

    CVE-2024-21646AzureEPSS 5.11%

    Azure uAMQP is a general purpose C library for AMQP 1.0. The UAMQP library is used by several clients to implement AMQP protocol communication. When clients using this library receive a crafted binary type data, an integer overflow or wraparound or memory safe

  • 9.8 Critical severity

    xwiki-platform: Improper Control of Generation of Code

    CVE-2024-21650XWikiEPSS 93.5%

    XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. XWiki is vulnerable to a remote code execution (RCE) attack through its user registration feature. This issue allows an attacker to execute arbitrary code

  • 7.8 High severity

    OpenVPN Connect: Improper Control of Generation of Code

    CVE-2023-7224OpenVPN

    OpenVPN Connect version 3.0 through 3.4.6 on macOS allows local users to execute code in external third party libraries using the DYLD_INSERT_LIBRARIES environment variable