CVE-2024-45858
HIGH 7.8CVSS 3.1Guardrails has an arbitrary code execution vulnerability
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
- 18 Sep 2024
- Last modified
- 7 Jul 2026
- Assigned by
- 6f8de1f0-f67e-45a6-b68f-98777fdb759c
- NVD status
- Deferred
- Weakness
- CWE-95
- Also known as
- GHSA-w392-75q8-vr67PYSEC-2026-1432
- Sources
- NVDJSONOSV GHSA-w392-75q8-vr67JSONOSV PYSEC-2026-1432JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | 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 | |
| OSV | PyPA | 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 | |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 6f8de1f0-f67e-45a6-b68f-98777fdb759c (Secondary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | guardrails-ai | >= 0.2.9, < 0.5.10 | 0.5.10 |
References
- https://hiddenlayer.com/sai-security-advisory/2024-09-guardrails/ · WEB
- 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://pypi.org/project/guardrails-ai · PACKAGE
- https://github.com/advisories/GHSA-w392-75q8-vr67 · ADVISORY
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 18 Sep 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 18 Sep 2024)