CVE-2024-5452: A remote code execution (RCE) vulnerability exists in the lightning-ai/pytorch-lightning library version 2.2.1
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.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: skrkcb2/CVE-2024-5452 (0 stars)
- GitHub PoC: XiaomingX/cve-2024-5452-poc
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
Related CVEs
- CVE-2026-58659 HIGH 7.8 UPGRADE PyTorch Lightning through 2.6.5, fixed in commit d710d68, contains a remote code execution vulnerability in th
- CVE-2026-44484 CRITICAL 9.8 DOWNGRADE PyTorch Lightning is a deep learning framework to pretrain and finetune AI models
- CVE-2026-31221 HIGH 7.8 UPGRADE PyTorch-Lightning versions 2.6.0 and earlier contain an insecure deserialization vulnerability (CWE-502) in th
- CVE-2024-8020 HIGH 7.5 DOWNGRADE A vulnerability in lightning-ai/pytorch-lightning version 2.3.2 allows an attacker to cause a denial of servic
- CVE-2024-8019 CRITICAL 9.1 DOWNGRADE In lightning-ai/pytorch-lightning version 2.3.2, a vulnerability exists in the `LightningApp` when running on