INCIDENT MAP

Browse / Unsafe Model Loading and Supply Chain / CVE-2024-45858

Guardrails has an arbitrary code execution vulnerability

CVE-2024-45858 ยท 2024-09-18 high

Class
Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
Technique
Code and command execution
Also involves
AI Framework and Platform Flaws
Affected
guardrails-ai (PyPI)
CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.4% chance of exploitation in 30 days

How it works, in short

Loading a crafted XML file makes the validator pass embedded Python into eval, which runs on the victim's machine. (Our summary, written by a model. The source text is below.)

Details

An arbitrary code execution vulnerability exists in versions 0.2.9 up to 0.5.10 of the Guardrails AI Guardrails framework because of the way it validates XML files. If a victim user loads a maliciously crafted XML file containing Python code, the code will be passed to an eval function, causing it to execute on the user's machine.

References

Source: GitHub Advisory Database, used under CC BY 4.0.