CVE-2024-5452
Last modified
CVE-2024-5452 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 26.49% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Lightningai | Pytorch Lightning | < 2.3.3 |
References
- https://huntr.com/bounties/486add92-275e-4a7b-92f9-42d84bc759daExploit, Third Party Advisory
- https://huntr.com/bounties/486add92-275e-4a7b-92f9-42d84bc759daExploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-5452?
How severe is CVE-2024-5452?
How do I fix CVE-2024-5452?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-54514The issue was addressed with improved checks. This issue is …8.6
- CVE-2024-54515A logic issue was addressed with improved restrictions. This…7.8
- CVE-2024-54516A permissions issue was addressed with additional restrictio…3.3
- CVE-2024-54517The issue was addressed with improved bounds checks. This is…7.8
- CVE-2024-54518The issue was addressed with improved bounds checks. This is…5.3
- CVE-2024-54519The issue was resolved by sanitizing logging. This issue is …5.5
- CVE-2024-54520A path handling issue was addressed with improved validation…5.5
- CVE-2024-54522The issue was addressed with improved bounds checks. This is…7.8
- CVE-2024-54523The issue was addressed with improved bounds checks. This is…6.3
- CVE-2024-54524A logic issue was addressed with improved file handling. Thi…5.5
- CVE-2024-54525A logic issue was addressed with improved file handling. Thi…8.8
- CVE-2024-54526The issue was addressed with improved checks. This issue is …5.5
Are you affected by CVE-2024-5452?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
