# CVE-2024-6961: XXE in Guardrails AI when consuming RAIL documents

- Severity: Medium 5.9 (CVSS:3.1, scored by JFROG) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2024-07-21T10:49:54.782Z
- Modified: 2026-07-07T17:56:21.976Z
- Also known as: GHSA-f8hx-f4xw-c646, PYSEC-2026-1431
- Weaknesses: CWE-611
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: JFROG

## 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.

(As written by CVE List.)

## Affected

- guardrails-ai: before 0.5.0
- guardrailsai guardrails: before 0.5.0
- guardrails-ai (PyPI): before 0.5.0

## Every score

- JFROG: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.9 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- PyPA Advisory Database: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`

## References

- <https://research.jfrog.com/vulnerabilities/guardrails-rail-xxe-jfsa-2024-001035519/> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-6961> (advisory)
- <https://github.com/guardrails-ai/guardrails/pull/922> (web)
- <https://github.com/guardrails-ai/guardrails/commit/f3d806afee31e2e3f97af682d16c3c1bc0d3c380> (web)
- <https://github.com/guardrails-ai/guardrails> (package)
- <https://research.jfrog.com/vulnerabilities/guardrails-rail-xxe-jfsa-2024-001035519> (web)
- <https://pypi.org/project/guardrails-ai> (package)
- <https://github.com/advisories/GHSA-f8hx-f4xw-c646> (advisory)

## Sources

- CVE List: [CVE-2024-6961](https://www.cve.org/CVERecord?id=CVE-2024-6961), CVE Terms of Use, modified 2024-11-25
- GitHub Advisory Database: [GHSA-f8hx-f4xw-c646](https://github.com/advisories/GHSA-f8hx-f4xw-c646), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2024-6961](https://nvd.nist.gov/vuln/detail/CVE-2024-6961), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1431](https://osv.dev/vulnerability/PYSEC-2026-1431), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-6961 · Whole record: https://cve.day/CVE-2024-6961.json · Rebuilt by cve.day 2026-11-25T22:58:43.107Z
