cve/2024/CVE-2024-5452.md

24 lines
1.7 KiB
Markdown
Raw Normal View History

2025-09-29 16:08:36 +00:00
### [CVE-2024-5452](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-5452)
![](https://img.shields.io/static/v1?label=Product&message=lightning-ai%2Fpytorch-lightning&color=blue)
2025-09-29 21:09:30 +02:00
![](https://img.shields.io/static/v1?label=Version&message=0%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Version&message=unspecified%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-915%20Improperly%20Controlled%20Modification%20of%20Dynamically-Determined%20Object%20Attributes&color=brightgreen)
2025-09-29 16:08:36 +00:00
### 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.
### POC
#### Reference
No PoCs from references.
#### Github
- https://github.com/XiaomingX/awesome-cve-exp-poc
- https://github.com/XiaomingX/cve-2024-5452-poc
2025-09-29 21:09:30 +02:00
- https://github.com/nomi-sec/PoC-in-GitHub
2025-09-29 16:08:36 +00:00
- https://github.com/plzheheplztrying/cve_monitor
- https://github.com/skrkcb2/CVE-2024-5452
- https://github.com/skrkcb2/Secure