{"id":"CVE-2024-45858","aliases":["GHSA-w392-75q8-vr67","PYSEC-2026-1432"],"url":"https://o3.security/vulnerability/CVE-2024-45858","summary":"Guardrails has an arbitrary code execution vulnerability","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.","published":"2024-09-18T15:02:17.891Z","modified":"2026-08-12T03:51:30.487942707Z","cvss":{"score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},"epss":{"score":0.00375,"percentile":0.3123,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"guardrails-ai","fixedVersion":"0.5.10"}],"fix":{"url":"https://github.com/guardrails-ai/guardrails/commit/ab12701e8c3ef41273ff9b3912f2e4e28ae8306f","label":"guardrails-ai/guardrails@ab12701"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/45xxx/CVE-2024-45858.json"},{"type":"ADVISORY","url":"https://hiddenlayer.com/sai-security-advisory/2024-09-guardrails/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45858"},{"type":"PACKAGE","url":"https://github.com/guardrails-ai/guardrails"},{"type":"WEB","url":"https://github.com/guardrails-ai/guardrails/commit/ab12701e8c3ef41273ff9b3912f2e4e28ae8306f"},{"type":"WEB","url":"https://hiddenlayer.com/sai-security-advisory/2024-09-guardrails"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:30.487942707Z"}}