Vulnerability in Lightning-Ai Lightning-Ai/pytorch-Lightning
CVE-2024-5452
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.
Vulnerability class: Mass Assignment
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.268, 98.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Lightning-Ai Lightning-Ai/pytorch-Lightning — versions unspecified
- Lightningai Pytorch Lightning
Weakness classification (CWE)
Public exploits and proof-of-concept code
2 public repositories with exploit or proof-of-concept code for this CVE:
- skrkcb2/CVE-2024-5452 (last pushed 2025-02-16)
- XiaomingX/cve-2024-5452-poc
Also mentioned in 4 other repositories (nomi-sec/PoC-in-GitHub, plzheheplztrying/cve_monitor, skrkcb2/Secure, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
This CVE has public exploit evidence. See the latest CVEs with public exploits.