Insecure Deserialization in PyTorch-Lightning Leads to Remote Code Execution
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| n/a | n/a | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Lightningai | Pytorch Lightning |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-75m9-98v2-hjpm | PyTorch Lightning load_from_checkpoint has an insecure checkpoint deserialization |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.385% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Title | Insecure Deserialization in PyTorch-Lightning Leads to Remote Code Execution |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
cvssV3_1
|
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Title | Insecure Deserialization in PyTorch-Lightning Allows Arbitrary Code Execution |
| Type | Values Removed | Values Added |
|---|---|---|
| Weaknesses | CWE-502 | |
| CPEs | cpe:2.3:a:lightningai:pytorch_lightning:*:*:*:*:*:python:*:* | |
| Metrics |
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Lightningai
Lightningai pytorch Lightning |
|
| Vendors & Products |
Lightningai
Lightningai pytorch Lightning |
| Type | Values Removed | Values Added |
|---|---|---|
| Title | Insecure Deserialization in PyTorch-Lightning Allows Arbitrary Code Execution |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | PyTorch-Lightning versions 2.6.0 and earlier contain an insecure deserialization vulnerability (CWE-502) in the checkpoint loading mechanism. The LightningModule.load_from_checkpoint() method, which is commonly used to load saved model states, internally calls torch.load() without setting the security-restrictive weights_only=True parameter. This default behavior allows the deserialization of arbitrary Python objects via the Pickle module. A remote attacker can exploit this by providing a maliciously crafted checkpoint file, leading to arbitrary code execution on the victim's system when the file is loaded. | |
| References |
|