Skip to main content

Improper Control of Generation of Code ('Code Injection')

CVE-2024-49375

Severity High
Score 9/10

Summary

Open source machine learning framework. A vulnerability has been identified in Rasa that enables an attacker who has the ability to load a maliciously crafted model remotely into a Rasa instance to achieve Remote Code Execution. The prerequisites for this are: 1. The HTTP API must be enabled on the Rasa instance, e.g. with `--enable-api`. This is not the default configuration. 2. For unauthenticated RCE to be exploitable, the user must not have configured any authentication or other security controls recommended in our documentation. 3. For authenticated RCE, the attacker must possess a valid authentication token or JWT to interact with the Rasa API. This vulnerability affects rasa versions prior to 3.6.21, and rasa-pro package versions prior to 3.8.18, 3.9.x prior to 3.9.16, 3.10.x prior to 3.10.12, and 3.11.x prior to 3.11.0rc1. All users are advised to upgrade. Users unable to upgrade should ensure that they require authentication and that only trusted users are given access.

  • HIGH
  • NETWORK
  • HIGH
  • CHANGED
  • NONE
  • NONE
  • HIGH
  • HIGH

CWE-94 - Code Injection

Code injection is a type of vulnerability that allows an attacker to execute arbitrary code. This vulnerability fully compromises the machine and can cause a wide variety of security issues, such as unauthorized access to sensitive information, manipulation of data, denial of service attacks etc. Code injection is different from command injection in the fact that it is limited by the functionality of the injected language (e.g. PHP), as opposed to command injection, which leverages existing code to execute commands, usually within the context of a shell.

Advisory Timeline

  • Published