Skip to content
Fencer Vulns
critical 9.8

CVE-2024-5452 in the critical feed json

RCE via Property/Class Pollution in lightning-ai/pytorch-lightning

published 2024-06-06 2 y ago modified 2026-09-10 59 d ago also GHSA-cgwc-qvrx-rf7f , PYSEC-2026-385 , PYSEC-2026-3974 , EUVD-2024-2023

cvss
9.8
version 3.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
26.8%
EPSS 26.8% chance of exploitation in 30 days, percentile 98%
public exploits
0
none known

Summary

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 construct a serialized delta that passes the deserializer whitelist and contains dunder attributes. When processed, this can be exploited to access other modules, classes, and instances, leading to arbitrary attribute write and total RCE on any self-hosted pytorch-lightning application in its default configuration, as the delta endpoint is enabled by default.

Patch / fix

  • pypi lightning 2.3.3
  • pypi pytorch-lightning 2.3.3
  • lightning-ai lightning-ai/pytorch-lightning 2.3.3

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
total
Assessed
2 y ago

Exploit prediction

26.83% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • huntr.com https://huntr.com/bounties/486add92-275e-4a7b-92f9-42d84bc759da referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.0 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV 3.0 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub 3.0 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
pypi lightning
<2.3.3
2.3.3
pypi pytorch-lightning
<2.3.3
2.3.3

Affected products

  • lightning-ai lightning-ai/pytorch-lightning
  • lightning_ai lightning_ai\/pytorch_lightning

Classification

Weakness
  • CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes
  • CWE-913 Improper Control of Dynamically-Managed Code Resources

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.