{"id":"CVE-2021-41127","aliases":["CVE-2021-41127","GHSA-4365-fhm5-qcrx","PYSEC-2021-381"],"related":[],"kind":"vulnerability","state":"published","title":"Maliciously Crafted Model Archive Can Lead To Arbitrary File Write in rasa","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nAn 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.\n\n### Patches\nThe vulnerability is fixed in Rasa 2.8.10\n\n### Workarounds\nMitigating 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.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email [the Rasa Security Team](mailto:security@rasa.com)","format":"markdown","source":"ghsa"},{"lang":"es","text":"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","source":"nvd"}],"published":"2021-10-21T20:15:11.000Z","modified":"2026-07-08T06:27:26.694Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H","score":7.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","score":7.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:P","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-22","CWE-23"],"affected":[{"ranges":[{"version":"< 2.8.10","status":"affected"}],"vendor":"RasaHQ","product":"rasa","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.8.10"}],"ecosystem":"PyPI","package":"rasa","purl":"pkg:pypi/rasa","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.8.10"}],"vendor":"rasa","product":"rasa","cpe":"cpe:2.3:a:rasa:rasa:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"1b6b502f52d73b4f8cd1959ce724b8ad0eb33989"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.8.10"}],"ecosystem":"PyPI","package":"rasa","purl":"pkg:pypi/rasa","repo":"https://github.com/RasaHQ/rasa","source":"pysec"}],"references":[{"url":"https://github.com/RasaHQ/rasa/security/advisories/GHSA-4365-fhm5-qcrx","tags":["advisory","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/RasaHQ/rasa/commit/1b6b502f52d73b4f8cd1959ce724b8ad0eb33989","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/RasaHQ/rasa","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/rasa/PYSEC-2021-381.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-41127","url":"https://www.cve.org/CVERecord?id=CVE-2021-41127","licence":"CVE Terms of Use","modified":"2024-08-04T02:59:31.557Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4365-fhm5-qcrx","url":"https://github.com/advisories/GHSA-4365-fhm5-qcrx","licence":"CC-BY-4.0","modified":"2026-07-08T06:27:26.694Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-41127","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41127","licence":"Public domain","modified":"2026-06-17T04:07:55.577Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-381","url":"https://osv.dev/vulnerability/PYSEC-2021-381","licence":"CC-BY-4.0","modified":"2023-11-08T04:06:52.164Z"}],"updatedAt":"2026-11-25T22:58:04.724Z","epss":{"score":0.00758,"percentile":0.56434,"date":"2026-12-01T12:00:22.000Z"}}