high8.8
CVE-2024-45858
Guardrails has an arbitrary code execution vulnerability
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | guardrails-ai | >= 0.2.9, < 0.5.10 | 0.5.10 |
Affected products
| Product | Affected versions |
|---|---|
| Versions 0.2.9 | before 0.5.10 |
Versions were read from the advisory text. No structured product data has been published for this record yet.
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://hiddenlayer.com/sai-security-advisory/2024-09-guardrails/
- https://github.com/advisories/GHSA-w392-75q8-vr67
- https://nvd.nist.gov/vuln/detail/CVE-2024-45858
- https://hiddenlayer.com/sai-security-advisory/2024-09-guardrails
- https://github.com/guardrails-ai/guardrails/commit/ab12701e8c3ef41273ff9b3912f2e4e28ae8306f