CVE-2024-5452: pytorch lightning · Remote Code Execution
Affects lightningSource GCVE Database
Not known to be exploited · CVSS 9.8 Critical : upgrade to 2.3.3 as a priority.
Data as of 16 Nov 2026, 17:34 UTC
- Patch
- Available – fixed in 2.3.3
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 6 Jun 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 15 Nov 2026.
What to do
Upgrade lightning and pytorch-lightning to 2.3.3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIlightning | Affected
| Fixed in
|
| PyPIpytorch-lightning | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade pytorch-lightning to version 2.3.3 or later, where this vulnerability is fixed. The delta endpoint, enabled by default, should be considered insecure in versions prior to 2.3.3. No other mitigations are documented. Applying the official patch is the recommended and effective remediation.
Description
A critical remote code execution vulnerability (CVE-2024-5452) affects the lightning-ai/pytorch-lightning library versions prior to 2.3.3. The flaw arises from improper handling of deserialized user input and mismanagement of dunder attributes by the deepdiff library, which is used to modify application state. This allows attackers to bypass restrictions and execute arbitrary code on any self-hosted pytorch-lightning application with default settings, as the vulnerable delta endpoint is enabled by default. A fix is available in version 2.3.3.
References
- nvd.nist.gov/vuln/detail/CVE-2024-5452 (opens in a new tab)
- github.com/Lightning-AI/pytorch-lightning/issues/20038 (opens in a new tab)
- github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a (opens in a new tab)
- github.com/Lightning-AI/pytorch-lightning/releases/tag/2.3.3 (opens in a new tab)
- github.com/advisories/GHSA-cgwc-qvrx-rf7f (opens in a new tab)
- github.com/lightning-ai/pytorch-lightning (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/lightning/PYSEC-2026-385.yaml (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/pytorch-lightning/PYSEC-2026-3974.yaml (opens in a new tab)
- huntr.com/bounties/486add92-275e-4a7b-92f9-42d84bc759da (opens in a new tab)
- pypi.org/project/lightning (opens in a new tab)