# CVE-2024-45858: Guardrails has an arbitrary code execution vulnerability

- Severity: High 7.8 (CVSS:3.1, scored by HiddenLayer) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-01)
- Published: 2024-09-18T15:02:17.891Z
- Modified: 2026-07-07T17:56:13.825Z
- Also known as: GHSA-w392-75q8-vr67, PYSEC-2026-1432
- Weaknesses: CWE-95
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: HiddenLayer

## 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.

(As written by CVE List.)

## Affected

- Guardrails AI guardrails: from 0.2.9 before 0.5.10
- guardrailsai guardrails: from 0.2.9 up to 0.5.10
- guardrails-ai (PyPI): from 0.2.9 before 0.5.10

## Every score

- HiddenLayer: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`
- PyPA Advisory Database: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://hiddenlayer.com/sai-security-advisory/2024-09-guardrails/>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-45858> (advisory)
- <https://github.com/guardrails-ai/guardrails/commit/ab12701e8c3ef41273ff9b3912f2e4e28ae8306f> (web)
- <https://github.com/guardrails-ai/guardrails> (package)
- <https://hiddenlayer.com/sai-security-advisory/2024-09-guardrails> (web)
- <https://pypi.org/project/guardrails-ai> (package)
- <https://github.com/advisories/GHSA-w392-75q8-vr67> (advisory)

## Sources

- CVE List: [CVE-2024-45858](https://www.cve.org/CVERecord?id=CVE-2024-45858), CVE Terms of Use, modified 2024-09-18
- GitHub Advisory Database: [GHSA-w392-75q8-vr67](https://github.com/advisories/GHSA-w392-75q8-vr67), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2024-45858](https://nvd.nist.gov/vuln/detail/CVE-2024-45858), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1432](https://osv.dev/vulnerability/PYSEC-2026-1432), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-45858 · Whole record: https://cve.day/CVE-2024-45858.json · Rebuilt by cve.day 2026-11-25T22:58:45.599Z
