{"id":"PYSEC-2026-1432","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.","aliases":["CVE-2024-45858","GHSA-w392-75q8-vr67"],"modified":"2026-07-07T17:47:39.149421406Z","published":"2026-07-07T14:34:41.795124Z","references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45858"},{"type":"WEB","url":"https://github.com/guardrails-ai/guardrails/commit/ab12701e8c3ef41273ff9b3912f2e4e28ae8306f"},{"type":"PACKAGE","url":"https://github.com/guardrails-ai/guardrails"},{"type":"WEB","url":"https://hiddenlayer.com/sai-security-advisory/2024-09-guardrails"},{"type":"PACKAGE","url":"https://pypi.org/project/guardrails-ai"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-w392-75q8-vr67"}],"affected":[{"package":{"name":"guardrails-ai","ecosystem":"PyPI","purl":"pkg:pypi/guardrails-ai"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.2.9"},{"fixed":"0.5.10"}]}],"versions":["0.2.9","0.3.0","0.3.1","0.3.2","0.3.3","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.4.5","0.5.0","0.5.0a0","0.5.0a1","0.5.0a10","0.5.0a11","0.5.0a12","0.5.0a13","0.5.0a2","0.5.0a3","0.5.0a4","0.5.0a5","0.5.0a6","0.5.0a7","0.5.0a8","0.5.0a9","0.5.1","0.5.2","0.5.3","0.5.4","0.5.5","0.5.6","0.5.7","0.5.8","0.5.9"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/guardrails-ai/PYSEC-2026-1432.yaml"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}