{"id":"CVE-2024-45858","published":"2024-09-18T15:02:17Z","modified":"2024-09-18T17:45:44Z","title":"An arbitrary code execution vulnerability exists in versions 0.2.9 up to 0.5.10 of the Guardrails AI Guardrails…","vendor":"Guardrails AI","product":"guardrails","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00531,"percentile":0.38304,"provenance":"source"},"cwes":[{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code"}],"references":[{"url":"https://hiddenlayer.com/sai-security-advisory/2024-09-guardrails/","tags":[]}],"priority":{"score":13.1,"factors":[{"name":"EPSS percentile","points":7.66},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"guardrails-ai","affectedVersions":[{"vendor":"Guardrails AI","product":"guardrails","versions":[">= 0.2.9, < 0.5.10"]}],"capec":[{"id":"CAPEC-35","name":"Leverage Executable Code in Non-Executable Files"}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-09-18T17:41:44.763730Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"guardrails-ai","vulnerableRanges":[">=0.2.9, <0.5.10"],"patched":["0.5.10"],"from":["GHSA-w392-75q8-vr67","PYSEC-2026-1432"],"provenance":"source"}],"summary":{"text":"The Guardrails AI guardrails framework, in versions 0.2.9 through 0.5.10, mishandles XML file validation by passing embedded Python code to an eval function. An attacker can achieve arbitrary code execution on a victim's machine if the victim loads a maliciously crafted XML file, which requires local access and user interaction but no authentication.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:15Z"},"euvd":{"id":"EUVD-2024-2883","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-6961","published":"2024-07-21","fixed":"0.5.0","kev":false,"link":{"from":"CVE-2024-6961","to":"CVE-2024-45858","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:guardrails-ai","fromFixed":"0.5.0","toFixed":"0.5.10","daysApart":59}]}},{"cve":"CVE-2024-45858","published":"2024-09-18","fixed":"0.5.10","kev":false}],"package":"PyPI:guardrails-ai"}}