Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1jZ3djLXF2cngtcmY3Zs4AA8wc
Remote code execution in pytorch lightning
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.
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1jZ3djLXF2cngtcmY3Zs4AA8wc
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: 6 months ago
Updated: about 1 month ago
CVSS Score: 9.8
CVSS vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Identifiers: GHSA-cgwc-qvrx-rf7f, CVE-2024-5452
References:
- https://nvd.nist.gov/vuln/detail/CVE-2024-5452
- https://huntr.com/bounties/486add92-275e-4a7b-92f9-42d84bc759da
- https://github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a
- https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.3.3
- https://github.com/Lightning-AI/pytorch-lightning/issues/20038
- https://github.com/advisories/GHSA-cgwc-qvrx-rf7f
Blast Radius: 29.0
Affected Packages
pypi:lightning
Dependent packages: 251Dependent repositories: 903
Downloads: 2,952,093 last month
Affected Version Ranges: < 2.3.3
Fixed in: 2.3.3
All affected versions: 1.8.0, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.9.5, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 2.0.8, 2.0.9, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 2.3.0, 2.3.1, 2.3.2
All unaffected versions: 2.3.3, 2.4.0, 2022.6.15, 2022.7.18, 2022.8.2, 2022.8.9, 2022.8.17, 2022.8.18, 2022.9.8, 2022.9.22, 2022.10.7, 2022.10.20, 2022.10.25