PyPI (Python)Worst: Critical4 advisories

lightning: known vulnerabilities

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

How to fix lightning

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

pip install --upgrade lightning (pin lightning>=2.6.6)

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 (4)

PyTorch Lightning allows arbitrary code execution through checkpoint _instantiator hyperparameters High 7.8 CWE-470 — Affected: before 2.6.6. Fixed in 2.6.6. Published 2026-07-15. GHSA-qqmf-gpg7-g8gw · CVE-2026-58659
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 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

Find 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.