CVE-2024-5452
published critical CVSS 3.0 · 9.8RCE via Property/Class Pollution in lightning-ai/pytorch-lightning
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| lightning-ai | lightning-ai/pytorch-lightning | unspecified to < 2.3.3 (affected · custom) | @huntr_ai · cna |
| lightning_ai | lightning_ai\/pytorch_lightning | 0 through 2.2.1 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-915 CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes
References
2Provider assertions
3@huntr_ai · cna
RCE via Property/Class Pollution in lightning-ai/pytorch-lightning
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 15d752d1d45cbb0e03613d6b3695c61ecb2c840c4daf270c7caeb983b2a00138
- Ingested
- 23 Sep 2026, 08:32:47 UTC
- Source record
- Official CVE record