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

    i: Improper Control of Generation of Code

    CVE-2023-30990IBMEPSS 1.01%

    IBM i 7.2, 7.3, 7.4, and 7.5 could allow a remote attacker to execute CL commands as QUSER, caused by an exploitation of DDM architecture. IBM X-Force ID: 254036.

  • 8.8 High severity

    Orthanc: Improper Control of Generation of Code

    CVE-2023-33466Orthanc-serverEPSS 4.15%

    Orthanc before 1.12.0 allows authenticated users with access to the Orthanc API to overwrite arbitrary files on the file system, and in specific deployment scenarios allows the attacker to overwrite the configuration, which can be exploited to trigger Remote C

  • 9.8 Critical severity

    Informix JDBC: Improper Control of Generation of Code

    CVE-2023-27866IBMEPSS 1.03%

    IBM Informix JDBC Driver 4.10 and 4.50 is susceptible to remote code execution attack via JNDI injection when driver code or the application using the driver do not verify supplied LDAP URL in Connect String. IBM X-Force ID: 249511.

  • 8.8 High severity

    aws-dataall: Improper Control of Generation of Code

    CVE-2023-36467AwslabsEPSS 1.18%

    AWS data.all is an open source development framework to help users build a data marketplace on Amazon Web Services. data.all versions 1.2.0 through 1.5.1 do not prevent remote code execution when a user injects Python commands into the ‘Template’ field when co

  • 8.8 High severity

    Trend Micro Moibile Security for Enterprise: Improper Control of Generation of Code

    CVE-2023-32528Trend MicroEPSS 2.99%

    Trend Micro Mobile Security (Enterprise) 9.8 SP5 contains vulnerable .php files that could allow a remote attacker to execute arbitrary code on affected installations. Please note: an attacker must first obtain the ability to execute low-privileged code on the

  • 8.8 High severity

    Trend Micro Moibile Security for Enterprise: Improper Control of Generation of Code

    CVE-2023-32527Trend MicroEPSS 2.92%

    Trend Micro Mobile Security (Enterprise) 9.8 SP5 contains vulnerable .php files that could allow a remote attacker to execute arbitrary code on affected installations. Please note: an attacker must first obtain the ability to execute low-privileged code on the

  • 8.8 High severity

    xwiki-platform: Improper Control of Generation of Code

    CVE-2023-35152XWikiEPSS 1.02%

    XWiki Platform is a generic wiki platform. Starting in version 12.9-rc-1 and prior to versions 14.4.8, 14.10.6, and 15.1, any logged in user can add dangerous content in their first name field and see it executed with programming rights. Leading to rights esca

  • 8.0 High severity

    xwiki-platform: Improper Control of Generation of Code

    CVE-2023-35150XWikiEPSS 77.7%

    XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Starting in version 2.40m-2 and prior to versions 14.4.8, 14.10.4, and 15.0, any user with view rights on any document can execute code with programming ri

  • 9.9 Critical severity

    backstage: Improper Control of Generation of Code

    CVE-2023-35926BackstageEPSS 1.89%

    Backstage is an open platform for building developer portals. The Backstage scaffolder-backend plugin uses a templating library that requires sandbox, as it by design allows for code injection. The library used for this sandbox so far has been `vm2`, but in li

  • 8.8 High severity

    OX App Suite: Deserialization of Untrusted Data

    CVE-2023-26436OX SoftwareEPSS 1.25%

    Attackers with access to the "documentconverterws" API were able to inject serialized Java objects, that were not properly checked during deserialization. Access to this API endpoint is restricted to local networks by default. Arbitrary code could be injected

  • 8.8 High severity

    Slider Revolution: Improper Control of Generation of Code

    CVE-2023-2359Slider RevolutionEPSS 2.54%

    The Slider Revolution WordPress plugin through 6.6.12 does not check for valid image files upon import, leading to an arbitrary file upload which may be escalated to Remote Code Execution in some server configurations.

  • 9.8 Critical severity

    Suricata: Improper Control of Generation of Code

    CVE-2023-35853OISFEPSS 1.03%

    In Suricata before 6.0.13, an adversary who controls an external source of Lua rules may be able to execute Lua code. This is addressed in 6.0.13 by disabling Lua unless allow-rules is true in the security lua configuration section.

  • 8.8 High severity

    Sugarcrm: Improper Control of Generation of Code

    CVE-2023-35809SugarCRMEPSS 1.26%

    An issue was discovered in SugarCRM Enterprise before 11.0.6 and 12.x before 12.0.3. A Bean Manipulation vulnerability has been identified in the REST API. By using a crafted request, custom PHP code can be injected through the REST API because of missing inpu

  • 7.2 High severity

    grav: Improper Control of Generation of Code

    CVE-2023-34448GravEPSS 4.52%

    Grav is a flat-file content management system. Prior to version 1.7.42, the patch for CVE-2022-2073, a server-side template injection vulnerability in Grav leveraging the default `filter()` function, did not block other built-in functions exposed by Twig's Cor

  • 7.2 High severity

    grav: Improper Control of Generation of Code

    CVE-2023-34253GravEPSS 2.07%

    Grav is a flat-file content management system. Prior to version 1.7.42, the denylist introduced in commit 9d6a2d to prevent dangerous functions from being executed via injection of malicious templates was insufficient and could be easily subverted in multiple

  • 7.2 High severity

    grav: Improper Control of Generation of Code

    CVE-2023-34252GravEPSS 2.07%

    Grav is a flat-file content management system. Prior to version 1.7.42, there is a logic flaw in the `GravExtension.filterFilter()` function whereby validation against a denylist of unsafe functions is only performed when the argument passed to filter is a str

  • 7.2 High severity

    grav: Improper Control of Generation of Code

    CVE-2023-34251GravEPSS 2.34%

    Grav is a flat-file content management system. Versions prior to 1.7.42 are vulnerable to server side template injection. Remote code execution is possible by embedding malicious PHP code on the administrator screen by a user with page editing privileges. Vers

  • 7.8 High severity

    EcoStruxure™ Operator Terminal Expert: Improper Control of Generation of Code

    CVE-2023-1049Schneider Electric

    A CWE-94: Improper Control of Generation of Code ('Code Injection') vulnerability exists that could cause execution of malicious code when an unsuspicious user loads a project file from the local filesystem into the HMI.

  • 7.2 High severity

    Craft CMS: Improper Control of Generation of Code

    CVE-2023-30179Craft CMSEPSS 2.2%

    CraftCMS version 3.7.59 is vulnerable to Server-Side Template Injection (SSTI). An authenticated attacker can inject Twig Template to User Photo Location field when setting User Photo Location in User Settings, lead to Remote Code Execution. NOTE: the vendor d

  • 8.8 High severity

    SIMATIC PCS 7: Improper Control of Generation of Code

    CVE-2023-25910SiemensEPSS 1%

    A vulnerability has been identified in SIMATIC PCS 7 (All versions < V9.1 SP2 UC04), SIMATIC S7-PM (All versions < V5.7 SP1 HF1), SIMATIC S7-PM (All versions < V5.7 SP2 HF1), SIMATIC STEP 7 V5 (All versions < V5.7). The affected product contains a database man

  • 8.8 High severity

    Apache NiFi: Improper Control of Generation of Code

    CVE-2023-34468ApacheEPSS 61.9%

    The DBCPConnectionPool and HikariCPConnectionPool Controller Services in Apache NiFi 0.0.2 through 1.21.0 allow an authenticated and authorized user to configure a Database URL with the H2 driver that enables custom code execution. The resolution validates the

  • 9.8 Critical severity

    Unify Openscape 4000 Assistant: Improper Control of Generation of Code

    CVE-2023-35034AtosEPSS 1.34%

    Atos Unify OpenScape 4000 Assistant V10 R1 before V10 R1.42.0 and V10 R1.34.8 and Manager V10 R1 before V10 R1.42.0 and V10 R1.34.8 allow remote code execution by unauthenticated users, aka OSFOURK-24033.

  • 8.8 High severity

    javacpp-presets: Improper Control of Generation of Code

    CVE-2023-34112BytedecoEPSS 1.95%

    JavaCPP Presets is a project providing Java distributions of native C++ libraries. All the actions in the `bytedeco/javacpp-presets` use the `github.event.head_commit.message​` parameter in an insecure way. For example, the commit message is used in a run stat

  • 9.8 Critical severity

    cmd/go: Improper Control of Generation of Code

    CVE-2023-29404Go toolchainEPSS 1.82%

    The go command may execute arbitrary code at build time when using cgo. This may occur when running "go get" on a malicious module, or when running any other command which builds untrusted code. This is can by triggered by linker flags, specified via a "#cgo L

  • 9.8 Critical severity

    cmd/go: Improper Control of Generation of Code

    CVE-2023-29402Go toolchainEPSS 1.69%

    The go command may generate unexpected code at build time when using cgo. This may result in unexpected behavior when running a go program which uses cgo. This may occur when running an untrusted module which contains directories with newline characters in the

  • 9.8 Critical severity

    sabnzbd: Improper Control of Generation of Code

    CVE-2023-34237SabnzbdEPSS 1.73%

    SABnzbd is an open source automated Usenet download tool. A design flaw was discovered in SABnzbd that could allow remote code execution. Manipulating the Parameters setting in the Notification Script functionality allows code execution with the privileges of

  • 9.8 Critical severity

    WebAccess/SCADA: Improper Control of Generation of Code

    CVE-2023-32540Advantech

    In Advantech WebAccss/SCADA v9.1.3 and prior, there is an arbitrary file overwrite vulnerability, which could allow an attacker to overwrite any file in the operating system (including system files), inject code into an XLS file, and modify the file extension,

  • 7.8 High severity

    Titan FTP Server Nextgen: Improper Control of Generation of Code

    CVE-2023-27744Southrivertech

    An issue was discovered in South River Technologies TitanFTP NextGen server that allows for a vertical privilege escalation leading to remote code execution.

  • 9.8 Critical severity

    NetWorker NVE: Improper Neutralization of Special Elements used in an OS Command

    CVE-2023-25539DellEPSS 1.48%

    Dell NetWorker 19.6.1.2, contains an OS command injection Vulnerability in the NetWorker client. A remote unauthenticated attacker could potentially exploit this vulnerability, leading to the execution of arbitrary OS commands on the application's underlying O

  • 9.8 Critical severity

    CodeIgniter4: Improper Control of Generation of Code

    CVE-2023-32692Codeigniter4EPSS 1.13%

    CodeIgniter is a PHP full-stack web framework. This vulnerability allows attackers to execute arbitrary code when you use Validation Placeholders. The vulnerability exists in the Validation library, and validation methods in the controller and in-model validat

  • 8.8 High severity

    DedeCMS: Improper Control of Generation of Code

    CVE-2023-2928DedeCMSEPSS 51.4%

    A vulnerability was found in DedeCMS up to 5.7.106. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the file uploads/dede/article_allowurl_edit.php. The manipulation of the argument allurls leads to code injectio

  • 9.8 Critical severity

    Apache RocketMQ Command Execution Exploited

    CVE-2023-33246ApacheEPSS 96.6%

    For RocketMQ versions 5.1.0 and below, under certain conditions, there is a risk of remote command execution. Several components of RocketMQ, including NameServer, Broker, and Controller, are leaked on the extranet and lack permission verification, an attacker

  • 9.8 Critical severity

    sqlite-jdbc: Improper Control of Generation of Code

    CVE-2023-32697XerialEPSS 1.6%

    SQLite JDBC is a library for accessing and creating SQLite database files in Java. Sqlite-jdbc addresses a remote code execution vulnerability via JDBC URL. This issue impacting versions 3.6.14.1 through 3.41.2.1 and has been fixed in version 3.41.2.2.

  • 9.8 Critical severity

    Drive Explorer for macOS: Improper Control of Generation of Code

    CVE-2023-25953WORKS MOBILE Japan

    Code injection vulnerability in Drive Explorer for macOS versions 3.5.4 and earlier allows an attacker who can login to the client where the affected product is installed to inject arbitrary code while processing the product execution. Since a full disk access

  • 9.8 Critical severity

    Dvtel Camera Firmware: Improper Control of Generation of Code

    CVE-2023-29861FlirEPSS 1.78%

    An issue found in FLIR-DVTEL version not specified allows a remote attacker to execute arbitrary code via a crafted request to the management page of the device.

  • 9.8 Critical severity

    Agasio Camera Firmware: Improper Control of Generation of Code

    CVE-2023-29862Agasio Camera ProjectEPSS 1.85%

    An issue found in Agasio-Camera device version not specified allows a remote attacker to execute arbitrary code via the check and authLevel parameters.

  • 7.5 High severity

    Jedox: Improper Control of Generation of Code

    CVE-2022-47879JedoxEPSS 6.3%

    A Remote Code Execution (RCE) vulnerability in /be/rpc.php in Jedox 2020.2.5 allows remote authenticated users to load arbitrary PHP classes from the 'rtn' directory and execute its methods. NOTE: The vendor states that the vulnerability affects installations

  • 7.3 High severity

    html/template: Improper Neutralization of Special Elements in Output Used by a Downstream Component

    CVE-2023-29400Go standard libraryEPSS 1.04%

    Templates containing actions in unquoted HTML attributes (e.g. "attr={{.}}") executed with empty input can result in output with unexpected results when parsed due to HTML normalization rules. This may allow injection of arbitrary attributes into tags.

  • 7.3 High severity

    html/template: Improper Neutralization of Special Elements in Output Used by a Downstream Component

    CVE-2023-24539Go standard libraryEPSS 1.04%

    Angle brackets (<>) are not considered dangerous characters when inserted into CSS contexts. Templates containing multiple actions separated by a '/' character can result in unexpectedly closing the CSS context and allowing for injection of unexpected HTML, if

  • 7.2 High severity

    Microsoft SharePoint Server Code Injection Exploited

    CVE-2023-24955MicrosoftEPSS 85%

    Microsoft SharePoint Server Remote Code Execution Vulnerability