{"id":"CVE-2021-41127","published":"2021-10-21T20:15:11Z","modified":"2024-08-04T02:59:31Z","title":"Maliciously Crafted Model Archive Can Lead To Arbitrary File Write in rasa","vendor":"RasaHQ","product":"rasa","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00758,"percentile":0.56129,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-23","name":"Relative Path Traversal"}],"references":[{"url":"https://github.com/RasaHQ/rasa/security/advisories/GHSA-4365-fhm5-qcrx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/RasaHQ/rasa/commit/1b6b502f52d73b4f8cd1959ce724b8ad0eb33989","tags":["x_refsource_MISC"]}],"priority":{"score":16.3,"factors":[{"name":"EPSS percentile","points":11.23},{"name":"CVSS severity","points":5.11}]},"vendorSlug":"rasahq","affectedVersions":[{"vendor":"RasaHQ","product":"rasa","versions":["< 2.8.10"]}],"affected":[{"ecosystem":"PyPI","package":"rasa","vulnerableRanges":["<2.8.10"],"patched":["2.8.10"],"from":["GHSA-4365-fhm5-qcrx","PYSEC-2021-381"],"provenance":"source"}],"summary":{"text":"The Rasa open source machine learning framework for text and voice conversations contains a path traversal flaw in the functionality that loads trained model tar.gz archives, which lets a crafted model archive write or replace files in the bot directory. An attacker needs low-privilege access, must have a user or process load the malicious model file, and can then overwrite bot files over the network, affecting integrity and availability.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:17:38Z"},"euvd":{"id":"EUVD-2021-0221","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-rasahq-rasa-cve-2021-41127","children":[{"from":"CVE-2021-41127","to":"CVE-2024-49375","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["rasa/utils/io.py"],"commits":["https://github.com/RasaHQ/rasa/commit/1b6b502f52d73b4f8cd1959ce724b8ad0eb33989","https://github.com/RasaHQ/rasa/commit/2bb1d779d4f4acaf70b6dfa35dd1899dccbb1ae6"],"basis":"rarely changed file"}]}]}}