Vulnerability · Published Sep 18, 2024 · Assigned by HiddenLayer

CVE-2024-45858

High 7.8

In plain English

A high-severity security flaw in guardrails from 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 32% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

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

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIguardrails-ai0.5.10GHSA-w392-75q8-vr67
PyPIguardrails-ai0.5.10PYSEC-2026-1432

Affected products (as reported)

VendorProductVersions
Guardrails AI guardrails 0.2.9 – before 0.5.10

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

References