Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
CVE-2024-45858
Summary
An arbitrary code execution vulnerability exists in guardrails-ai versions 0.2.9 through 0.5.9 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.
- LOW
- LOCAL
- HIGH
- UNCHANGED
- REQUIRED
- NONE
- HIGH
- HIGH
CWE-95 - Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. "eval").
References
Advisory Timeline
- Published