{"id":"CVE-2024-45858","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":["GHSA-w392-75q8-vr67","PYSEC-2026-1432"],"modified":"2026-07-08T07:47:43.291586659Z","published":"2024-09-18T15:02:17.891Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/45xxx/CVE-2024-45858.json","cna_assigner":"HiddenLayer","cwe_ids":["CWE-95"]},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/guardrails-ai/guardrails","events":[{"introduced":"15feea95fe776707b7ab72673f2e9a6efb904f25"},{"fixed":"bc949cfa1b042e4ae05dbde22b2d124be0e71ea1"}],"database_specific":{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"0.2.9"},{"fixed":"0.5.10"}]}}],"versions":["v0.5.9","v0.5.8","v0.5.7","v0.5.6","v0.5.5","v0.5.4","v0.5.3","v0.5.2","v0.5.1","v0.5.0","v0.4.5","v0.4.4","v0.4.3","v0.4.2","v0.4.1","v0.3.3","v0.3.2","v0.3.1","v0.3.0","0.3.0","v0.2.9"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-45858.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}