PyPI (Python)Worst: Critical8 advisories

pytorch-lightning: known vulnerabilities

pytorch-lightning has 8 reviewed security advisories in the GitHub Advisory Database — 5 critical, 3 high. The most recent was published 2026-05-14. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the pytorch-lightning versions running across your servers, containers and images, and ranks what to patch first.

How to fix pytorch-lightning

Upgrade pytorch-lightning to a release at or above the fixed version shown for each advisory below. For PyPI (Python):

pip install --upgrade pytorch-lightning (pin pytorch-lightning>=2.4.0)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (8)

Compromise of PyTorch Lightning PyPi Package Versions Critical 9.8 CWE-506 CWE-829 — Affected versions listed in the advisory. No fixed release is listed. Published 2026-05-14. GHSA-w37p-236h-pfx3 · CVE-2026-44484
PyTorch Lightning load_from_checkpoint has an insecure checkpoint deserialization High 7.8 CWE-502 — Affected: up to and including 2.6.0. No fixed release is listed. Published 2026-05-12. GHSA-75m9-98v2-hjpm · CVE-2026-31221
PyTorch Lightning path traversal vulnerability Critical 9.1 CWE-434 — Affected: before 2.4.0. Fixed in 2.4.0. Published 2025-03-20. GHSA-4cv3-v7pv-rfhf · CVE-2024-8019
PyTorch Lightning denial of service vulnerability High 7.5 CWE-248 — Affected: up to and including 2.3.2. No fixed release is listed. Published 2025-03-20. GHSA-98fp-7v67-4v3q · CVE-2024-8020
pytorch-lightning vulnerable to Arbitrary File Write via /v1/runs API endpoint Critical 9.1 CWE-22 CWE-434 — Affected: before 2.3.3. Fixed in 2.3.3. Published 2024-06-27. GHSA-mr7h-w2qc-ffc2 · CVE-2024-5980
Remote code execution in pytorch lightning Critical 9.8 CWE-913 CWE-915 — Affected: before 2.3.3. Fixed in 2.3.3. Published 2024-06-06. GHSA-cgwc-qvrx-rf7f · CVE-2024-5452
Code Injection in PyTorch Lightning Critical 9.8 CWE-94 — Affected: before 1.6.0. Fixed in 1.6.0. Published 2022-03-05. GHSA-r5qj-cvf9-p85h · CVE-2022-0845
pytorch-lightning is vulnerable to Deserialization of Untrusted Data High 7.8 CWE-502 — Affected: before 1.6.0. Fixed in 1.6.0. Published 2021-12-23. GHSA-2vj5-px25-gjrp · CVE-2021-4118

Find pytorch-lightning across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.