Guardrails has an arbitrary code execution vulnerability
CVE-2024-45858 · GHSA-w392-75q8-vr67 · published 2024-09-18
- Severity
- High
- CVSS score
- 8.8
- Chance of exploitation (EPSS)
- 0.38%
- Fixed in
- 0.5.10
- Exploitation Public proof of concept
- Automatable No
- Technical impact Total
- CISA SSVC
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.
Upgrade guardrails-ai to 0.5.10 or later.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| guardrails-ai | PyPI | >= 0.2.9, < 0.5.10 | 0.5.10 |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
- CriticalMalicious code in guardrails-ai (PyPI)guardrails-ai
- CriticalMalicious code in guardrails-ai 0.10.1 (supply chain compromise)guardrails-ai
- CriticalGuardrails AI contains a code injection vulnerability in its Hub package installation mechanismguardrails-ai
- HighGuardrails AI vulnerable to Improper Restriction of XML External Entity Referenceguardrails-ai
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.