{"answers":{"affected":"3 open source packages ship an affected version, including rasa. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-41127 in the wild and no public exploit code.","fix":"Upgrade rasa to 2.8.10 or later.","what":"CVE-2021-41127 is a high-severity vulnerability in RasaHQ rasa, published on 21 Oct 2021."},"fix_prompt":"Check this codebase for CVE-2021-41127 and fix it if it is affected.\n\nWhat it is: CVE-2021-41127 is a high-severity vulnerability in RasaHQ rasa, published on 21 Oct 2021. \nExploitation: There is no known exploitation of CVE-2021-41127 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- rasa (PyPI): affected all versions; fixed in 2.8.10\n- rasa (PyPI): affected all versions; fixed in 2.8.10\n- rasa (PyPI): affected all versions; fixed in 2.8.10\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-41127/ (Markdown: https://insights.sbomify.com/CVE-2021-41127/index.md)","id":"CVE-2021-41127","markdown":"https://insights.sbomify.com/CVE-2021-41127/index.md","name":"CVE-2021-41127","record":{"aliases":["GHSA-4365-fhm5-qcrx","PYSEC-2021-381"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[{"product":"rasa","vendor":"rasa"}],"cvss":{"score":7.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-23","name":"Relative Path Traversal"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Maliciously Crafted Model Archive Can Lead To Arbitrary File Write in rasa","id":"CVE-2021-41127","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":null,"year":"2021"},"n_packages":3,"n_references":2,"next":{"headline":"CSV Injection Vulnerability in Hygeia","id":"CVE-2021-41128"},"packages":[{"ecosystem":"PyPI","fixed":["2.8.10"],"introduced":["0"],"last_affected":[],"package":"rasa","purl":null,"source":"GHSA-4365-fhm5-qcrx"},{"ecosystem":"PyPI","fixed":["2.8.10"],"introduced":["0"],"last_affected":[],"package":"rasa","purl":"pkg:pypi/rasa","source":"GHSA-4365-fhm5-qcrx"},{"ecosystem":"PyPI","fixed":["2.8.10"],"introduced":["0"],"last_affected":[],"package":"rasa","purl":"pkg:pypi/rasa","source":"PYSEC-2021-381"}],"prev":{"headline":"Deleted Admin Can Sign In to Admin Interface","id":"CVE-2021-41126"},"products":["rasa"],"published":"2021-10-21","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["RasaHQ"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2021-41127/"}