Browse / AI Framework and Platform Flaws / CVE-2024-6961
Guardrails AI vulnerable to Improper Restriction of XML External Entity Reference
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Information exposure
- Affected
- guardrails-ai (PyPI)
- CVSS
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS
- 0.4% chance of exploitation in 30 days
How it works, in short
Guardrails parses attacker-supplied RAIL XML with external entities enabled, so a SYSTEM entity can read local files. (Our summary, written by a model. The source text is below.)
Details
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-6961
- https://github.com/guardrails-ai/guardrails/pull/922
- https://github.com/guardrails-ai/guardrails/commit/f3d806afee31e2e3f97af682d16c3c1bc0d3c380
- https://github.com/guardrails-ai/guardrails
- https://research.jfrog.com/vulnerabilities/guardrails-rail-xxe-jfsa-2024-001035519
Source: GitHub Advisory Database, used under CC BY 4.0.