guardrails-ai
Affected
- introduced
0.2.9, fixed0.5.10(ecosystem)
Fixed versions
0.5.10
Fix
- Fixed version
0.5.10pip install --upgrade guardrails-ai==0.5.10
Advisory
Also known as: CVE-2024-45858, PYSEC-2026-1432
Guardrails has an arbitrary code execution vulnerability
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.
High Basis: The source's own band: HIGH
0.2.9, fixed 0.5.10 (ecosystem)0.5.10
0.5.10pip install --upgrade guardrails-ai==0.5.10Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0