CVE-2024-5452

CVE-2024-5452 is a critical-severity vulnerability in Lightningai Pytorch Lightning with a CVSS 3.x base score of 9.8. Its EPSS exploit-prediction score of 26% places it in the 98th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-913.

Key facts

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.

Frequently asked questions

What is CVE-2024-5452?
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.
How severe is CVE-2024-5452?
CVE-2024-5452 has a CVSS 3.x base score of 9.8, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
Is CVE-2024-5452 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 26% (98th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2024-5452?
CVE-2024-5452 affects Lightningai Pytorch Lightning. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2024-5452?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
Does CVE-2024-5452 have an EU (EUVD) identifier?
Yes. CVE-2024-5452 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-2023.
When was CVE-2024-5452 published?
CVE-2024-5452 was published on 2024-06-06 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Lightningai Pytorch Lightning

All CVEs affecting Lightningai Pytorch Lightning →

Other CWE-913 vulnerabilities

Browse all CWE-913 vulnerabilities →