PT-2024-36377 · Deepdiff+1 · Deepdiff+1
Published
2024-06-06
·
Updated
2025-10-15
·
CVE-2024-5452
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions:
pytorch-lightning version 2.2.1
Description:
A remote code execution issue exists 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 remote code execution on any self-hosted pytorch-lightning application in its default configuration, as the delta endpoint is enabled by default.Recommendations:
For version 2.2.1, consider disabling the delta endpoint to minimize the risk of exploitation until a patch is available. Restrict access to the
deepdiff library and its Delta objects to prevent unauthorized modification of application state. Avoid using the deepdiff library to deserialize user input until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.Exploit
RCE
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Deepdiff
Pytorch-Lightning