{"id":"CVE-2024-5452","published":"2024-06-06T17:54:57Z","modified":"2025-10-15T12:50:27Z","title":"RCE via Property/Class Pollution in lightning-ai/pytorch-lightning","vendor":"lightning-ai","product":"lightning-ai/pytorch-lightning","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.26831,"percentile":0.98078,"provenance":"source"},"cwes":[{"id":"CWE-915","name":"Improperly Controlled Modification of Dynamically-Determined Object Attributes"}],"references":[{"url":"https://huntr.com/bounties/486add92-275e-4a7b-92f9-42d84bc759da","tags":[]},{"url":"https://github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a","tags":[]}],"priority":{"score":26.5,"factors":[{"name":"EPSS percentile","points":19.62},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"lightning-ai","affectedVersions":[{"vendor":"lightning-ai","product":"lightning-ai/pytorch-lightning","versions":[">= unspecified, < 2.3.3"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-08-09T19:54:34.271410Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"lightning","vulnerableRanges":["<2.3.3"],"patched":["2.3.3"],"from":["GHSA-cgwc-qvrx-rf7f","PYSEC-2026-385"],"provenance":"source"},{"ecosystem":"PyPI","package":"pytorch-lightning","vulnerableRanges":["<2.3.3"],"patched":["2.3.3"],"from":["GHSA-cgwc-qvrx-rf7f","PYSEC-2026-3974"],"provenance":"source"}],"summary":{"text":"The lightning-ai/pytorch-lightning library version 2.2.1 contains a flaw in its handling of deserialized user input and dunder attributes via the deepdiff library's Delta objects, which the library uses to modify application state from frontend actions. An attacker with network access and no authentication or user interaction can craft a serialized delta that passes the deserializer whitelist while containing dunder attributes, enabling arbitrary attribute writes and remote code execution on self-hosted applications running the default configuration, where the delta endpoint is enabled.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:30:32Z"},"euvd":{"id":"EUVD-2024-2023","exploited":false,"provenance":"source"}}