Security Resilience

CVE-2024-5452

Lightningai Pytorch Lightning ≤ 2.3.3

Public PoC
Published
06 June 2024
Modified
15 October 2025
CVSS Score v3.1 9.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.27 98th percentile
Risk Priority 95 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2024-5452 is a critical-severity Improperly Controlled Modification of Dynamically-Determined Object Attributes (CWE-915) vulnerability in Lightningai Pytorch Lightning. Its CVSS base score is 9.8 (Critical).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Client Execution (T1203); ranked in the top 2% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

This vulnerability is AI-related — categorised as Deep Learning Frameworks; in the Other ATLAS/OWASP Terms risk domain.

The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and AC-6 (Least Privilege) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

A remote code execution vulnerability affects the lightning-ai/pytorch-lightning library in version 2.2.1. It stems from unsafe deserialization of user-supplied input passed to deepdiff.Delta objects, which the application uses to apply frontend-driven state changes. The deepdiff library's handling of dunder attributes can be bypassed, allowing a crafted serialized delta to evade the intended whitelist and grant arbitrary attribute writes that lead to full code execution.

Unauthenticated remote attackers can exploit the flaw by sending a malicious delta payload to the delta endpoint, which is enabled by default in self-hosted deployments. Successful exploitation grants complete control over the application process, including access to other modules and instances, without requiring authentication or user interaction.

A fix was merged in commit 330af381de88cff17515418a341cbc1f9f127f9a. Public details of the issue and proof-of-concept are available in the referenced huntr.dev bounty report.

The affected component is widely used in machine-learning workflows. EPSS scores climbed from lower values to a peak of 0.6262, indicating that exploitation interest emerged after disclosure.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

AI Security AnalysisAI

AI Category
Deep Learning Frameworks
Risk Domain
Other ATLAS/OWASP Terms
OWASP Top 10 for LLMs 2025
None mapped
Classification Reason
PyTorch Lightning (lightning-ai/pytorch-lightning) is a high-level deep learning framework built on PyTorch, simplifying training and deployment of deep learning models.

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1565 Data Manipulation Impact
Adversaries may insert, delete, or manipulate data in order to influence external outcomes or hide activity, thus threatening the integrity of the data.
T1584.004 Server Resource Development
Adversaries may compromise third-party servers that can be used during targeting.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-31221Same product: Lightningai Pytorch Lightning
CVE-2026-58659Same product: Lightningai Pytorch Lightning
CVE-2024-8019Same product: Lightningai Pytorch Lightning
CVE-2024-5980Same product: Lightningai Pytorch Lightning
CVE-2026-44484Same product: Lightningai Pytorch Lightning
CVE-2024-8020Same product: Lightningai Pytorch Lightning
CVE-2023-39983Shared CWE-913, CWE-915
CVE-2025-31674Shared CWE-913, CWE-915
CVE-2026-5248Shared CWE-913, CWE-915
CVE-2025-6107Shared CWE-913, CWE-915

Affected Assets

lightningai
pytorch lightning
≤ 2.3.3

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Enforces authorizations so that only permitted attributes may be modified on an object.

Limits the set of modifiable attributes a subject is authorized to touch.

Validates incoming attribute names and values so that only explicitly allowed fields are accepted for update.

Isolating security functions from non-security code prevents unintended manipulation of dynamically managed executable resources.

Process isolation keeps each process's dynamic code resources in separate domains, blocking cross-process tampering.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly require allow-listing of mutable object attributes and input validation to block mass-assignment flaws.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing can detect mass-assignment flaws but does not itself prevent them at runtime.

prevents

Secure coding standards explicitly forbid unsafe dynamic attribute assignment and require property allow-lists.

blocks

Information access restriction limits who can modify objects but does not address which attributes may be changed.

prevents

A.8.30 contracts the supplier to apply secure design, coding and testing practices (8.25–8.29), so a well-implemented clause reduces ordinary software weaknesses in delivered code the way those practices do; CWE-915 is a code-level mass-assignment defect reachable by those practices, but the effect depends on the supplier's implementation and the clause's ceiling on this verb is `partial`.

finds

A.8.8's reach is disclosure-based, and mass assignment does surface as CVEs in published products (multiple examples in CWE-915's observed list), so the clause finds that minority; the bulk of mass-assignment instances live in custom first-party code that never receives a CVE, which A.8.8 does not reach.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-913, a class-level weakness, and none of its children carries one either.

References