CVE-2024-5452Lightningai Pytorch Lightning
Critical 9.8 No auth needed
Follow: this CVE · Lightningai · Lightningai Pytorch Lightning We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 4.3% probability of exploitation in 30 days · percentile 92
- Auth required
- No
- Published
- Jun 6, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Pytorch Lightning.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | lightning |
< 2.3.3 |
2.3.3 |
pip install "lightning>=2.3.3" |
| PyPI | lightning |
< 2.3.3 |
2.3.3 |
pip install "lightning>=2.3.3" |
| PyPI | pytorch-lightning |
< 2.3.3 |
2.3.3 |
pip install "pytorch-lightning>=2.3.3" |
| PyPI | pytorch-lightning |
< 2.3.3 |
2.3.3 |
pip install "pytorch-lightning>=2.3.3" |
Per OSV / GitHub Advisories (GHSA-cgwc-qvrx-rf7f, PYSEC-2026-385, PYSEC-2026-3974). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| lightningai | pytorch_lightning | < 2.3.3 |
Official sources
References
Links published by the sources. Open them with care.
- github.com
- huntr.com Exploit Third Party Advisory