# CVE-2024-45858: PYSEC-2026-1432 - Guardrails has an arbitrary code execution vulnerability

Source: https://junglewise.ai/threats/cve-2024-45858-guardrails-has-an-arbitrary-code-execution-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-07  
License: CC BY 4.0 with a link back

CVE-2024-45858 · Severity: low · CVSS 3.1 · Published 2026-07-07

Guardrails has an arbitrary code execution vulnerability

Technologies: [guardrails-ai (PyPI)](https://junglewise.ai/threats/technologies/pypi-guardrails-ai). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2024-45858 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-45858 being exploited in the wild.

**How severe is CVE-2024-45858?** Low severity, with a CVSS score of 3.1, published 7 July 2026.

**Which products and versions are affected?** guardrails-ai (PyPI) ECOSYSTEM:introduced=0.2.9,fixed=0.5.10.

**Is there a fix for CVE-2024-45858?** Yes. guardrails-ai (PyPI): upgrade to 0.5.10 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-45858?** Check whether you run guardrails-ai (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- guardrails-ai (PyPI): upgrade to 0.5.10 or later

  ```sh
  pip install "guardrails-ai>=0.5.10"
  ```


## Affected products

- guardrails-ai (PyPI) ECOSYSTEM:introduced=0.2.9,fixed=0.5.10

## Identifiers

- CVE-2024-45858
- GHSA-w392-75q8-vr67
- PYSEC-2026-1432

## Related threats

- [PYSEC-2026-1431 - Guardrails AI vulnerable to Improper Restriction of XML External Entity Reference](https://junglewise.ai/threats/cve-2024-6961-guardrails-ai-vulnerable-to-improper-restriction-of-xml-external)
- [Guardrails AI embedded malicious code in PyPI package](https://junglewise.ai/threats/cve-2026-45758-guardrails-ai-embedded-malicious-code-in-pypi-package)
- [Guardrails AI code injection in Hub package installation](https://junglewise.ai/threats/cve-2026-31233-guardrails-ai-code-injection-in-hub-package-installation)
