{"id":"CVE-2024-45858","aliases":["CVE-2024-45858","GHSA-w392-75q8-vr67","PYSEC-2026-1432"],"related":[],"kind":"vulnerability","state":"published","title":"Guardrails has an arbitrary code execution vulnerability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Existe una vulnerabilidad de ejecución de código arbitrario en las versiones 0.2.9 a 0.5.10 del framework Guardrails AI Guardrails debido a la forma en que valida los archivos XML. Si un usuario víctima carga un archivo XML manipulado con fines malintencionados que contiene código Python, el código se pasará a una función eval, lo que provocará su ejecución en la máquina del usuario.","source":"nvd"}],"published":"2024-09-18T15:02:17.891Z","modified":"2026-07-07T17:56:13.825Z","severity":{"scorer":"HiddenLayer","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"HiddenLayer","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","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"}],"cwes":["CWE-95"],"affected":[{"ranges":[{"type":"semver","introduced":"0.2.9","fixed":"0.5.10","status":"affected"}],"vendor":"Guardrails AI","product":"guardrails","repo":"https://github.com/guardrails-ai/guardrails","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.2.9","lastAffected":"0.5.10","status":"affected"}],"vendor":"guardrailsai","product":"guardrails","cpe":"cpe:2.3:a:guardrailsai:guardrails:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.2.9","status":"affected","fixed":"0.5.10"}],"ecosystem":"PyPI","package":"guardrails-ai","purl":"pkg:pypi/guardrails-ai","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0.2.9","status":"affected","fixed":"0.5.10"}],"ecosystem":"PyPI","package":"guardrails-ai","purl":"pkg:pypi/guardrails-ai","source":"pysec"}],"references":[{"url":"https://hiddenlayer.com/sai-security-advisory/2024-09-guardrails/","tags":[],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45858","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/guardrails-ai/guardrails/commit/ab12701e8c3ef41273ff9b3912f2e4e28ae8306f","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/guardrails-ai/guardrails","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://hiddenlayer.com/sai-security-advisory/2024-09-guardrails","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/guardrails-ai","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-w392-75q8-vr67","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"HiddenLayer","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-09-18T17:41:44.763Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-45858","url":"https://www.cve.org/CVERecord?id=CVE-2024-45858","licence":"CVE Terms of Use","modified":"2024-09-18T17:45:44.580Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w392-75q8-vr67","url":"https://github.com/advisories/GHSA-w392-75q8-vr67","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:13.825Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-45858","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45858","licence":"Public domain","modified":"2026-06-17T07:54:58.557Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1432","url":"https://osv.dev/vulnerability/PYSEC-2026-1432","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:39.149Z"}],"updatedAt":"2026-11-25T22:58:45.599Z","epss":{"score":0.00378,"percentile":0.33876,"date":"2026-12-01T12:00:22.000Z"}}