Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2024-5452: A remote code execution (RCE) vulnerability exists in the lightning-ai/pytorch-lightning library version 2.2.1

72
This week
CRITICAL 9.8REMOTEUPGRADE

CVE-2024-5452 is a critical-severity flaw (CVSS 9.8) affecting pytorch lightning. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

A remote code execution (RCE) vulnerability exists in the lightning-ai/pytorch-lightning library version 2.2.1 due to improper handling of deserialized user input and mismanagement of dunder attributes by the `deepdiff` library. The library uses `deepdiff.Delta` objects to modify application state based on frontend actions. However, it is possible to bypass the intended restrictions on modifying dunder attributes, allowing an attacker to construc

Why this priority

  • Critical severity
  • EPSS top 2%: very likely to be exploited
  • Public exploit reference
  • CISA SSVC: automatable with total technical impact
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score9.8 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance26.8% (top 2%)
CISA exploited listNo
WeaknessCWE-915, CWE-913
Published2024-06-06
Last modified2026-06-17
Publisher (CNA): huntr.dev · Vendor: lightningai

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

lightningai pytorch lightning UPGRADE
Affected: < 2.3.3
Fixed in: 2.3.3
Safe to downgrade to: no unaffected older release
1. Check installed version
pip show pytorch-lightning
2. UPGRADE to 2.3.3
pip install --upgrade "pytorch-lightning>=2.3.3"

Exact fixes by distribution

Python (pip) · lightning · FIXED · 2.3.3 · vulnerable: < 2.3.3 · source
pip install --upgrade "lightning>=2.3.3" pip show lightning
Fedora ELN · gram_grep · FIXED · 0.10.4-1.eln159 · FEDORA-2026-0808475f2a · source
sudo dnf upgrade --advisory=FEDORA-2026-0808475f2a
Fedora 46 · wesnoth · FIXED · 1.19.29-1.fc46 · FEDORA-2026-58f458e24e · source
sudo dnf upgrade --advisory=FEDORA-2026-58f458e24e

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2024-5452?

pytorch lightning: upgrade to 2.3.3. Exact commands for each OS are on this page.

Is CVE-2024-5452 being exploited?

CVE-2024-5452 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2024-5452 affect?

CVE-2024-5452 affects pytorch lightning. Severity is critical (CVSS 9.8). A remote code execution (RCE) vulnerability exists in the lightning-ai/pytorch-lightning library version 2.2.1 due to improper handling of deserialized user input and mismanagement of dunder attributes by the `deepdiff` library. The library

How urgent is CVE-2024-5452?

Priority 72/100. Critical severity; EPSS top 2%: very likely to be exploited; Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action

Software pages

PyTorch vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.