{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-45858","id":"CVE-2024-45858","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.","descriptionLong":"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.","published":"2024-09-18T15:02:17.891Z","updated":"2026-10-28T02:30:58.407199262Z","reserved":"2024-09-10T15:36:55.926Z","status":"Deferred","rejected":false,"assigner":"HiddenLayer","metric":{"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","rating":"high","source":"HiddenLayer"},"metrics":[{"version":"4.0","score":null,"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","source":"GitHub"},{"version":"4.0","score":null,"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","source":"OSV"},{"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","rating":"high","source":"HiddenLayer"},{"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","rating":"high","source":"6f8de1f0-f67e-45a6-b68f-98777fdb759c"},{"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","rating":"high","source":"OSV"},{"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","rating":"high","source":"GitHub"},{"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","rating":"high","source":"OSV"}],"rating":"high","products":["Guardrails AI guardrails"],"affectedProducts":[{"vendor":"Guardrails AI","product":"guardrails","defaultStatus":"unaffected","versions":[{"lessThan":"0.5.10","status":"affected","version":"0.2.9","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"guardrails-ai","purl":"pkg:pypi/guardrails-ai","ranges":[">=0.2.9 <0.5.10"],"fixed":["0.5.10"],"advisory":"GHSA-w392-75q8-vr67"}],"cwes":["CWE-95"],"aliases":["GHSA-w392-75q8-vr67","PYSEC-2026-1432"],"references":[{"url":"https://hiddenlayer.com/sai-security-advisory/2024-09-guardrails/","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/45xxx/CVE-2024-45858.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45858","tags":["advisory"]},{"url":"https://github.com/guardrails-ai/guardrails","tags":["package"]},{"url":"https://github.com/guardrails-ai/guardrails/commit/ab12701e8c3ef41273ff9b3912f2e4e28ae8306f","tags":["web"]},{"url":"https://hiddenlayer.com/sai-security-advisory/2024-09-guardrails","tags":["web"]},{"url":"https://pypi.org/project/guardrails-ai","tags":["package"]},{"url":"https://github.com/advisories/GHSA-w392-75q8-vr67","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00378,"epssPercentile":0.32494,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-45858","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45858","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-45858","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-w392-75q8-vr67","ok":true,"note":"GHSA-w392-75q8-vr67"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-45858","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}