CVE-2024-45858Guardrails AI guardrails
High 7.8
Follow: this CVE · Guardrails AI · Guardrails AI guardrails We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- 0.5% probability of exploitation in 30 days · percentile 38
- Auth required
- Yes
- Published
- Sep 18, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-95
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for guardrails.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | guardrails-ai |
≥ 0.2.9 < 0.5.10 |
0.5.10 |
pip install "guardrails-ai>=0.5.10" |
| PyPI | guardrails-ai |
≥ 0.2.9 < 0.5.10 |
0.5.10 |
pip install "guardrails-ai>=0.5.10" |
Per OSV / GitHub Advisories (GHSA-w392-75q8-vr67, PYSEC-2026-1432). Check the version in your lockfile before upgrading.
Affected products
- Guardrails AI · guardrails
- guardrailsai · guardrails
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.