Browse / Unsafe Model Loading and Supply Chain / CVE-2024-45858
Guardrails has an arbitrary code execution vulnerability
- Class
- Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
- Technique
- Code and command execution
- Also involves
- AI Framework and Platform Flaws
- Affected
- guardrails-ai (PyPI)
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS
- 0.4% chance of exploitation in 30 days
How it works, in short
Loading a crafted XML file makes the validator pass embedded Python into eval, which runs on the victim's machine. (Our summary, written by a model. The source text is below.)
Details
An arbitrary code execution vulnerability exists in versions 0.2.9 up to 0.5.10 of the Guardrails AI Guardrails framework because of the way it validates XML files. If a victim user loads a maliciously crafted XML file containing Python code, the code will be passed to an eval function, causing it to execute on the user's machine.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-45858
- https://github.com/guardrails-ai/guardrails/commit/ab12701e8c3ef41273ff9b3912f2e4e28ae8306f
- https://github.com/guardrails-ai/guardrails
- https://hiddenlayer.com/sai-security-advisory/2024-09-guardrails
Source: GitHub Advisory Database, used under CC BY 4.0.