Vulnerability · Published Jul 21, 2024 · Assigned by JFROG

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

Medium 5.9

In plain English

A medium-severity XML external entity in guardrails-ai. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 35% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)0.4%top 64.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIguardrails-ai0.5.0GHSA-f8hx-f4xw-c646
PyPIguardrails-ai0.5.0PYSEC-2026-1431

Affected products (as reported)

VendorProductVersions
guardrails-ai 0 – before 0.5.0

Weakness: CWE-611 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

References