7.3high
Maliciously Crafted Model Archive Can Lead To Arbitrary File Write in rasa
- Severity
- 7.3high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.76% (higher than 56% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-4365-fhm5-qcrxPYSEC-2021-381
Description
Rasa is an open source machine learning framework to automate text-and voice-based conversations. In affected versions a vulnerability exists in the functionality that loads a trained model `tar.gz` file which allows a malicious actor to craft a `model.tar.gz` file which can overwrite or replace bot files in the bot directory. The vulnerability is fixed in Rasa 2.8.10. For users unable to update ensure that users do not upload untrusted model files, and restrict CLI or API endpoint access where a malicious actor could target a deployed Rasa instance.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| RasaHQ rasa | < 2.8.10 | CVE List |
| rasa (PyPI) | before 2.8.10, before 1b6b502f52d73b4f8cd1959ce724b8ad0eb33989 | GitHub Advisory Database, PyPA Advisory Database |
| rasa rasa | before 2.8.10 | NVD |
All scores
| GitHub_M | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H |
| GitHub | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H |
| NVD | 7.1high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H |
| NVD | 5.8medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:P |
Classification
What each source says
CVE List
Rasa is an open source machine learning framework to automate text-and voice-based conversations. In affected versions a vulnerability exists in the functionality that loads a trained model `tar.gz` file which allows a malicious actor to craft a `model.tar.gz` file which can overwrite or replace bot files in the bot directory. The vulnerability is fixed in Rasa 2.8.10. For users unable to update ensure that users do not upload untrusted model files, and restrict CLI or API endpoint access where a malicious actor could target a deployed Rasa instance.
GitHub Advisory Database
Impact
An Archive Extraction (Zip Slip) vulnerability in the functionality that allows a user to load a trained model archive in Rasa 2.8.9 and older allows an attacker arbitrary write capability within specific directories using a malicious crafted archive file.
Patches
The vulnerability is fixed in Rasa 2.8.10
Workarounds
Mitigating steps for vulnerable end users are to ensure that they do not upload untrusted model files, and restrict CLI or API endpoint access where a malicious actor could target a deployed Rasa instance.
For more information
If you have any questions or comments about this advisory:
- Email the Rasa Security Team
NVD (es)
Rasa es un marco de aprendizaje automático de código abierto para automatizar conversaciones basadas en texto y voz. En las versiones afectadas se presenta una vulnerabilidad en la funcionalidad que carga un archivo "tar.gz" de modelo entrenado que permite a un actor malicioso diseñar un archivo "model.tar.gz" que puede sobrescribir o reemplazar los archivos del bot en el directorio del bot. La vulnerabilidad es corregida en Rasa versión 2.8.10. Para usuarios que no puedan actualizar, asegúrese de que los usuarios no suban archivos de modelo no confiables, y restrinja el acceso a la CLI o al endpoint de la API donde un actor malicioso podría apuntar a una instancia de Rasa desplegada
References
| https://github.com/RasaHQ/rasa/security/advisories/GHSA-4365-fhm5-qcrx | advisory, third-party-advisory, web | |
| https://github.com/RasaHQ/rasa/commit/1b6b502f52d73b4f8cd1959ce724b8ad0eb33989 | fix, patch, third-party-advisory, web | |
| https://github.com/RasaHQ/rasa | package | |
| https://github.com/pypa/advisory-database/tree/main/vulns/rasa/PYSEC-2021-381.yaml | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-41127 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4365-fhm5-qcrx changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-41127 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-381 changed 2023-11-08 | CC-BY-4.0 |