Skip to content
CriticalVulnerability

CVE-2024-5452: pytorch-lightning remote code execution via deepdiff Delta input

Identifier
CVE-2024-5452
Published
Record updated
View JSON
Affected
  • lightning < 2.3.3
Fixed in
2.3.3
  • released July 8, 2024, 32 days after disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
26.8%

Summary

A remote code execution flaw exists in the lightning-ai/pytorch-lightning library, version 2.2.1, caused by improper handling of deserialized user input and mismanaged dunder attributes in the deepdiff library. An attacker can craft a serialized deepdiff.Delta that passes the deserializer whitelist and contains dunder attributes, which lets them reach other modules, classes and instances, enabling arbitrary attribute write and full RCE on self-hosted applications in their default configuration because the delta endpoint is enabled by default.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.