CRITICAL SEVERITY

CVE-2024-5452

Pytorch Lightning vulnerability

CVSS
9.8
EPSS
26.5%
EPSS pct
98th
Exploited
No known
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.
Affected vendor
Lightningai
Affected product
Pytorch Lightning
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness type (CWE)
  • CWE-915 — Improperly Controlled Modification of Object Attributes
  • CWE-913
Published
2024-06-06

Risk analysis

Based on its CVSS vector, this vulnerability is exploitable over the network, low attack complexity, requiring no privileges, no user interaction. Successful exploitation leads to high impact to confidentiality, high impact to integrity, high impact to availability.

Its EPSS score of 26.5% reflects a moderate probability of exploitation activity in the wild over the next 30 days, placing it above 98% of all scored CVEs.

Check your external exposure to CVE-2024-5452

  • Confirm whether Lightningai Pytorch Lightning is running on any internet-facing host or subdomain.
  • Match discovered service fingerprints against the version affected by CVE-2024-5452.
  • Prioritise remediation if the asset is public, business-critical, or near authentication/payment flows.

How ThreatPort helps with CVE-2024-5452

ThreatPort's external attack surface scanner checks your internet-facing assets — agentlessly, from the outside in — for the exposed services and versions that CVE-2024-5452 affects, then prioritises the finding by real risk using CISA KEV and FIRST.org EPSS.

Run a free external exposure scan

Are you exposed to CVE-2024-5452?

Run an instant, non-intrusive external scan to check your attack surface for CVE-2024-5452.

Start free scan

No credit card. Agentless.