{"id":"CVE-2024-45858","aliases":["EUVD-2024-2883","GHSA-w392-75q8-vr67","PYSEC-2026-1432"],"status":"published","title":"Guardrails has an arbitrary code execution vulnerability","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.","severity":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00378,"percentile":0.32052,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-95"],"published":"2024-09-18T15:02:17Z","modified":"2026-10-28T02:30:58Z","fixes":[{"ecosystem":"PyPI","package":"guardrails-ai","fixed_in":["0.5.10"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"guardrails-ai","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.2.9"},{"fixed":"0.5.10"}]}]},{"source":"osv","ecosystem":"PyPI","package":"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"]},{"source":"osv","ecosystem":"PyPI","package":"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"]}],"products":[{"vendor":"guardrails ai","product":"guardrails"},{"vendor":"guardrailsai","product":"guardrails"}],"references":[{"url":"https://hiddenlayer.com/sai-security-advisory/2024-09-guardrails/","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45858","tags":["advisory"]},{"url":"https://hiddenlayer.com/sai-security-advisory/2024-09-guardrails","tags":["web"]},{"url":"https://github.com/guardrails-ai/guardrails/commit/ab12701e8c3ef41273ff9b3912f2e4e28ae8306f","tags":["web"]},{"url":"https://github.com/advisories/GHSA-w392-75q8-vr67","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/45xxx/CVE-2024-45858.json","tags":["advisory"]},{"url":"https://github.com/guardrails-ai/guardrails","tags":["package"]},{"url":"https://pypi.org/project/guardrails-ai","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-45858","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.","status":"published","published":"2024-09-18T15:02:17.891Z","modified":"2024-09-18T17:45:44.58Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-95"],"updated_at":"2026-11-02T14:34:08.500935Z"}],"euvd":[{"id":"EUVD-2024-2883","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.","status":"published","published":"2024-09-18T15:02:17Z","modified":"2024-09-18T17:45:44Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T00:28:20.979111Z"}],"ghsa":[{"id":"GHSA-w392-75q8-vr67","title":"Guardrails has an arbitrary code execution vulnerability","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.","status":"published","published":"2024-09-18T15:30:52Z","modified":"2024-09-18T17:39:33Z","cvss":[{"version":"4.0","score":8.6,"vector":"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","level":"high"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-95"],"updated_at":"2026-11-02T14:38:03.800952Z"}],"nvd":[{"id":"CVE-2024-45858","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.","status":"published","published":"2024-09-18T15:15:16.333Z","modified":"2026-06-17T07:54:58.557Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-95"],"updated_at":"2026-11-02T14:10:27.456509Z"}],"osv":[{"id":"CVE-2024-45858","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.","status":"published","published":"2024-09-18T15:02:17.891Z","modified":"2026-10-28T02:30:58.407199262Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-95"],"updated_at":"2026-11-02T15:44:42.790566Z"},{"id":"GHSA-w392-75q8-vr67","title":"Guardrails has an arbitrary code execution vulnerability","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.","status":"published","published":"2024-09-18T15:30:52Z","modified":"2026-07-07T17:56:13.825660483Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"},{"version":"4.0","score":8.6,"vector":"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","level":"high"}],"cwes":["CWE-95"],"updated_at":"2026-11-02T15:46:58.04805Z"},{"id":"PYSEC-2026-1432","title":"Guardrails has an arbitrary code execution vulnerability","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.","status":"published","published":"2026-07-07T14:34:41.795124Z","modified":"2026-07-07T17:47:39.149421406Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"},{"version":"4.0","score":8.6,"vector":"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","level":"high"}],"updated_at":"2026-11-02T15:52:54.622769Z"}]}}
