lightning: known vulnerabilities and the safe version
The version to be on
Version 2.6.6 or later fixes every vulnerability on this page that has a recorded fix.
Upgrade lightning with pip
pip install --upgrade "lightning>=2.6.6"
pip show lightning | grep VersionPin it in requirements.txt
lightning>=2.6.6Check the release notes before a large jump in version. Newer vulnerabilities may have been found since this page was updated.
Watch lightning
Get an email only when lightning has a new vulnerability record. Unsubscribe with one click.
Badge for your README
Shows the number of known critical and high vulnerabilities in lightning and the version that fixes them. It updates by itself.
Markdown
[](https://securityelites.com/ai-vulnerabilities/package/lightning/)All records
- pytorch-lightning is vulnerable to Deserialization of Untrusted DataUnknown · CVE-2021-4118 · fixed in 1.6.0 · 10 Sep 2026
- Code Injection in GitHub repository pytorchlightning/pytorch-lightning prior to 1.6.0.Unknown · CVE-2022-0845 · fixed in 1.6.0 · 10 Sep 2026
- PyTorch Lightning denial of service vulnerabilityUnknown · CVE-2024-8020 · no fix recorded · 10 Sep 2026
- PyTorch Lightning load_from_checkpoint has an insecure checkpoint deserializationUnknown · CVE-2026-31221 · no fix recorded · 10 Sep 2026
- Compromise of PyTorch Lightning PyPi Package VersionsUnknown · CVE-2026-44484 · fixed in 2.6.4 · 10 Sep 2026
- PyTorch Lightning allows arbitrary code execution through checkpoint _instantiator hyperparametersUnknown · CVE-2026-58659 · fixed in 2.6.6 · 16 Jul 2026
- Malicious code in lightning (PyPI)Unknown · MAL-2026-3201 · no fix recorded · 30 Apr 2026
- PyTorch Lightning path traversal vulnerabilityUnknown · CVE-2024-8019 · fixed in 2.4.0 · 20 Mar 2025
- pytorch-lightning vulnerable to Arbitrary File Write via /v1/runs API endpointUnknown · CVE-2024-5980 · fixed in 2.3.3 · 28 Jun 2024
- Remote code execution in pytorch lightningUnknown · CVE-2024-5452 · fixed in 2.3.3 · 7 Jun 2024