Advisory

PYSEC-2026-1432

Also known as: CVE-2024-45858, GHSA-w392-75q8-vr67

Summary

Guardrails has an arbitrary code execution vulnerability

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.

Severity

High Basis: CVSS v3 score 8.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Dates

Published
2026-07-07 14:34 UTC
Modified
2026-07-07 17:47 UTC

Affected packages and fixes

guardrails-ai

PyPI · All systems

Affected

  • introduced 0.2.9, fixed 0.5.10 (ecosystem)

Fixed versions

0.5.10

Fix

  • Fixed version 0.5.10
    pip install --upgrade guardrails-ai==0.5.10

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences