CVE-2024-6961 json
XXE in Guardrails AI when consuming RAIL documents
published 2y ago modified 4mo ago also GHSA-f8hx-f4xw-c646 , PYSEC-2026-1431 , EUVD-2024-2333
- cvss
- 5.9
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 35%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi guardrails-ai 0.5.0
- guardrailsai guardrails 0.5.0
- github.com/guardrails-ai/guardrails@f3d806a commit
- github.com/guardrails-ai/guardrails#922 pull request
Is CVE-2024-6961 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2y ago
Exploit prediction
0.41% chance of exploitation in the next 30 days, higher than 35% of all scored CVEs (FIRST EPSS, 2026-11-11).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | guardrails-ai | <0.5.0 |
0.5.0 |
Affected products
- guardrailsai guardrails
Classification
- Weakness
-
- CWE-611 Improper Restriction of XML External Entity Reference
References
-
github.com
/guardrails-ai/guardrails/pull/922
web
-
github.com
/guardrails-ai/guardrails/commit/f3d806afee31e2e3f97af682d16c3c1bc0d3c380
web
-
research.jfrog.com
/vulnerabilities/guardrails-rail-xxe-jfsa-2024-001035519/
vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-6961
advisory
-
github.com
/guardrails-ai/guardrails
package
-
research.jfrog.com
/vulnerabilities/guardrails-rail-xxe-jfsa-2024-001035519
web
-
pypi.org
/project/guardrails-ai
package
-
github.com
/advisories/GHSA-f8hx-f4xw-c646
advisory
Sources
- CVE List CVE-2024-6961
- GitHub Advisory GHSA-f8hx-f4xw-c646
- NVD CVE-2024-6961
- OSV PYSEC-2026-1431
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.