CVE-2024-5452

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

Description

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.

Categories

9.8
CVSS
Severity: Critical
CVSS 3.1 •
CVSS 3.0 •
EPSS 38.19% Top 5%
Third-Party Advisory huntr.com
Affected: lightning-ai lightning-ai/pytorch-lightning
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-5452?
CVE-2024-5452 has been scored as a critical severity vulnerability.
How to fix CVE-2024-5452?
To fix CVE-2024-5452, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-5452 being actively exploited in the wild?
It is possible that CVE-2024-5452 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~38% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-5452?
CVE-2024-5452 affects lightning-ai lightning-ai/pytorch-lightning.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.