CVE-2021-41127: Rasa - Crafted model.tar.gz file can overwrite or replace bot files

rasa Updated 02 Oct 2025

Summary

21/10/2021
Yes i
High
7.3

CVE-2021-41127: Rasa is an open source machine learning framework to automate text-and voice-based conversations. Affects rasa across 2 version ranges.

< 1b6b502f52d73b4f8cd1959ce724b8ad0eb33989 < 2.8.10

Fixed in 1b6b502f52d73b4f8cd1959ce724b8ad0eb33989. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Rasa is an open source machine learning framework designed to automate text and voice-based conversations. It provides functionality for loading trained model tar.gz files. Rasa allows users to build conversational AI bots and deploy them in various applications. However, a vulnerability exists in Rasa versions prior to 2.8.10, where a malicious actor can create a specially crafted model.tar.gz file that can overwrite or replace bot files in the bot directory.

Vulnerability Detail

The vulnerability arises from the insecure handling of the model.tar.gz file. By uploading a malicious model.tar.gz file, an attacker can manipulate the contents of the bot directory, potentially leading to unauthorized access, data loss, or the execution of arbitrary code. This vulnerability poses a significant risk to Rasa instances deployed in production environments. The issue has been addressed in Rasa version 2.8.10.

How To Fix

Latest published version: 3.6.21 as of 22 Oct 2026

pip install --upgrade "rasa==3.6.21"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1b6b502f52d73b4f8cd1959ce724b8ad0eb33989

This is the first release that contains the fix.

pip install --upgrade "rasa==1b6b502f52d73b4f8cd1959ce724b8ad0eb33989"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround provided for this vulnerability. It is crucial to update to the fixed version of Rasa to mitigate the risk.

Conclusion

The vulnerability in Rasa allows a malicious actor to manipulate bot files by uploading a specially crafted model.tar.gz file. To mitigate this risk, it is crucial to update Rasa to version 2.8.10 or later and avoid uploading untrusted model files. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for rasa →

Share this vulnerability

FAQ

Rasa is an open source machine learning framework used for building conversational AI bots.

This vulnerability allows a malicious actor to overwrite or replace bot files, potentially leading to unauthorized access, data loss, or arbitrary code execution.

To fix this vulnerability, update Rasa to version 2.8.10 or later and ensure that untrusted model files are not uploaded.

Yes, all versions prior to 2.8.10 are affected by this vulnerability.

No specific workaround is available. Updating to the fixed version is the recommended solution.

Related vulnerabilities

Recent vulnerabilities recorded for rasa.

How To Fix

Latest published version: 3.6.21 as of 22 Oct 2026

pip install --upgrade "rasa==3.6.21"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1b6b502f52d73b4f8cd1959ce724b8ad0eb33989

This is the first release that contains the fix.

pip install --upgrade "rasa==1b6b502f52d73b4f8cd1959ce724b8ad0eb33989"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback