{"cve":"CVE-2024-5452","nvd":{"published":"2024-06-06T18:15:20.970","modified":"2026-06-17T08:15:58.787","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-913","CWE-915"],"references":["https://github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a","https://huntr.com/bounties/486add92-275e-4a7b-92f9-42d84bc759da","https://huntr.com/bounties/486add92-275e-4a7b-92f9-42d84bc759da"],"products":["lightningai:pytorch_lightning"],"source":"nvd","synced_at":"2026-10-19T21:51:20.603330631+00:00"},"epss":{"cve":"CVE-2024-5452","score":0.26831,"percentile":0.98034,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-cgwc-qvrx-rf7f","url":"https://osv.dev/vulnerability/GHSA-cgwc-qvrx-rf7f","summary":"Remote code execution in pytorch lightning","modified":"2026-09-10T17:25:53.822847220Z","packages":[{"ecosystem":"PyPI","name":"lightning","purl":"pkg:pypi/lightning","ranges":["<2.3.3"],"fixed":["2.3.3"]}]},{"id":"PYSEC-2026-385","url":"https://osv.dev/vulnerability/PYSEC-2026-385","summary":"Remote code execution in pytorch lightning","modified":"2026-09-10T17:25:53.822847220Z","packages":[{"ecosystem":"PyPI","name":"lightning","purl":"pkg:pypi/lightning","ranges":["<2.3.3"],"fixed":["2.3.3"]}]},{"id":"PYSEC-2026-3974","url":"https://osv.dev/vulnerability/PYSEC-2026-3974","summary":"Remote code execution in pytorch lightning","modified":"2026-09-10T17:25:53.822847220Z","packages":[{"ecosystem":"PyPI","name":"pytorch-lightning","purl":"pkg:pypi/pytorch-lightning","ranges":["<2.3.3"],"fixed":["2.3.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}