Guardrails AI vulnerable to Improper Restriction of XML External Entity Reference
CVE-2024-6961 · GHSA-f8hx-f4xw-c646 · published 2024-07-21 · updated 2024-11-18
- Severity
- High
- CVSS score
- 5.9
- Chance of exploitation (EPSS)
- 0.41%
- Fixed in
- 0.5.0
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
RAIL documents are an XML-based format invented by Guardrails AI to enforce formatting checks on LLM outputs. Guardrails users that consume RAIL documents from external sources are vulnerable to XXE, which may cause leakage of internal file data via the SYSTEM entity.
Upgrade guardrails-ai to 0.5.0 or later.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| guardrails-ai | PyPI | < 0.5.0 | 0.5.0 |
- CriticalLMDeploy has Remote Code Execution by Pickle Deserialization via handle_zmq_recv in lmdeploy/lmdeploy/pytorch/disagg/conn/engine_conn.pylmdeploy
- CriticalLMdeploy has Remote Code Execution by Pickle Deserialization via zmq_rpc.call_and_response() in InterLM/lmdeploylmdeploy
- CriticalSGLang: Unauthenticated RCE via --enable-custom-logit-processorsglang
- CriticalSGLanG: Multimodal scheduler deserializes untrusted pickle data on 0.0.0.0 ROUTER socketsglang
- Criticaln8n: HTTP Request Node Pagination Prototype Pollution to RCEn8n, n8n, n8n
- Criticaln8n Has an XML Node Prototype Pollution Patch Bypassn8n, n8n, n8n
- 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 has an arbitrary code execution vulnerabilityguardrails-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.