CVE-2024-6961 XXE in Guardrails AI when consuming RAIL documents
Attackers can leak internal file data by exploiting XML External Entity vulnerabilities in Guardrails AI when processing external RAIL documents.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-6961?
CVE-2024-6961 is a medium-severity vulnerability in guardrails-ai, published on 21 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-611
Which versions are affected by CVE-2024-6961?
3 open source packages ship an affected version, including guardrails-ai.
| Package | Affected | Fixed in |
|---|---|---|
guardrails-ai PyPI | All versions | 0.5.0 |
guardrails-ai PyPI | All versions | 0.5.0 |
guardrails-ai PyPI | All versions | 0.5.0 |
How do I fix CVE-2024-6961?
Upgrade guardrails-ai to 0.5.0 or later.
Is CVE-2024-6961 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6961 exists.
Sources
Also known as GHSA-f8hx-f4xw-c646, PYSEC-2026-1431.