Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2024-49375

Rasa Allows Remote Code Execution via Remote Model Loading
Back to all
CVE

CVE-2024-49375

Rasa Allows Remote Code Execution via Remote Model Loading

Vulnerability

A vulnerability has been identified in Rasa Pro and Rasa Open Source 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:

  • The HTTP API must be enabled on the Rasa instance eg with --enable-api. This is not the default configuration.
  • For unauthenticated RCE to be exploitable, the user must not have configured any authentication or other security controls recommended in our documentation.
  • For authenticated RCE, the attacker must posses a valid authentication token or JWT to interact with the Rasa API.

Fix

We encourage you to upgrade to a version of Rasa that includes a fix. These are:

  • Rasa Pro 3.8.18, 3.9.16, 3.10.12
  • Rasa Open Source 3.6.21

Once you have upgraded your Rasa Pro or Open Source installation, you will need to retrain your model using the fixed version of Rasa Pro or Open Source. If you have a custom component that inherits from one of the components listed below and modified the persist or load method, make sure to update your code. Please contact us in case you encounter any problems.

Affected components:

  • CountVectorFeaturizer
  • LexicalSyntacticFeaturizer
  • LogisticRegressionClassifier
  • SklearnIntentClassifier
  • DIETClassifier
  • CRFEntityExtractor
  • TrackerFeaturizer
  • TEDPolicy
  • UnexpectedIntentTEDPolicy

 

If you are unable to upgrade immediately, please follow our mitigation advice below.

Mitigation Advice

  • The unauthenticated RCE can be mitigated by ensuring that you enable authentication for the Rasa HTTP API if this is enabled. This means that in addition to passing --enable-api to Rasa, you should also pass an authentication configuration as described in our documentation here
  • The authenticated RCE can be mitigated by:
    • Ensuring that you only load models from trusted sources such as your own CI pipelines. You can check file hashes for model archives to confirm that a model has not been tampered with between training and use.
    • Confirming that you have sufficient access controls and utilize the principle of least privilege to control who in your organization has the ability to interact with the Rasa API even with authentication enabled.

Future Releases

 As an additional security step, a future release of Rasa Pro will remove the ability to enable the API without any authentication method enabled.

Credit

Rasa would like to thank Julian Scheid from Deutsche Telekom Security GmbH for responsible disclosure of this vulnerability.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9
-
3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
C
H
U
9.1
-
3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Related Resources

No items found.

References

https://github.com/RasaHQ/rasa-pro-security-advisories/security/advisories/GHSA-cpv4-ggrr-7j9v, https://nvd.nist.gov/vuln/detail/CVE-2024-49375, https://github.com/RasaHQ/rasa/commit/2bb1d779d4f4acaf70b6dfa35dd1899dccbb1ae6, https://github.com/rasahq/rasa, https://pypi.org/project/rasa-pro, https://github.com/advisories/GHSA-cpv4-ggrr-7j9v

Severity

9

CVSS Score
0
10

Basic Information

Base CVSS
9
EPSS Probability
0.00895%
EPSS Percentile
0.55353%
Introduced Version
0,3.8.16,3.9.14,3.9.17,1.8.0,3.7.0b1,0.15.0a6,0.8.0
Fix Available
3.8.18,3.9.16,3.10.12,3.6.21

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading