CVE-2024-5751: PYSEC-2026-389 - litellm vulnerable to remote code execution based on using eval unsafely

CVE-2024-5751 · Severity: low · CVSS 3 · Published 2026-06-29

litellm vulnerable to remote code execution based on using eval unsafely

Technologies: litellm (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2024-5751 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-5751 being exploited in the wild.
How severe is CVE-2024-5751?
Low severity, with a CVSS score of 3, published 29 June 2026.
Which products and versions are affected?
litellm (PyPI) ECOSYSTEM:introduced=0,fixed=1.40.16.
Is there a fix for CVE-2024-5751?
Yes. litellm (PyPI): upgrade to 1.40.16 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2024-5751?
Check whether you run litellm (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

  • litellm (PyPI): upgrade to 1.40.16 or later
    pip install "litellm>=1.40.16"

Affected products

  • litellm (PyPI) ECOSYSTEM:introduced=0,fixed=1.40.16

Identifiers

  • CVE-2024-5751
  • GHSA-gppg-gqw8-wh9g
  • PYSEC-2026-389

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.