Vulnerability · Published Sep 18, 2024 · Assigned by HiddenLayer
CVE-2024-45858
High 7.8
In plain English
A high-severity security flaw in guardrails from Guardrails AI. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 32% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | guardrails-ai | 0.5.10 | GHSA-w392-75q8-vr67 |
| PyPI | guardrails-ai | 0.5.10 | PYSEC-2026-1432 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Guardrails AI | guardrails | 0.2.9 – before 0.5.10 |
Weakness: CWE-95 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H