Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. guardrails-ai
  4. ›
  5. CVE-2024-45858

CVE-2024-45858: Guardrails has an arbitrary code execution vulnerability

September 18, 2024

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

  • github.com/advisories/GHSA-w392-75q8-vr67
  • github.com/guardrails-ai/guardrails
  • github.com/guardrails-ai/guardrails/commit/ab12701e8c3ef41273ff9b3912f2e4e28ae8306f
  • hiddenlayer.com/sai-security-advisory/2024-09-guardrails
  • nvd.nist.gov/vuln/detail/CVE-2024-45858

Code Behaviors & Features

Detect and mitigate CVE-2024-45858 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.2.9 before 0.5.10

Fixed versions

  • 0.5.10

Solution

Upgrade to version 0.5.10 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

Source file

pypi/guardrails-ai/CVE-2024-45858.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:34 +0000.