Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
PyTorch Lightning (pytorch-lightning) versions before 2.4.0 are affected. On a Windows host, an attacker who can reach the LightningApp /api/v1/upload_file/ endpoint can use a crafted filename to write or overwrite arbitrary files, which may lead to remote code execution. Upgrade to pytorch-lightning 2.4.0 or later.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 9.1 | Critical | 3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H | CNA (@huntr_ai) |
- CISA KEV Not listed.
- EPSS 0.011, the 66th percentile, on 18 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 20 Mar 2025, 12:32 UTC Confirmed by GitHub Advisory Database
- 31 Oct 2026, 14:10 UTC First seen by agentprime
- 31 Oct 2026, 14:10 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-4cv3-v7pv-rfhf
- OSV: GHSA-4cv3-v7pv-rfhf
- nvd.nist.gov/vuln/detail/CVE-2024-8019
- github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a
- github.com/pypa/advisory-database/tree/main/vulns/lightning/PYSEC-2026-3970.yaml
- github.com/pypa/advisory-database/tree/main/vulns/pytorch-lightning/PYSEC-2026-507.yaml
- github.com/pytorch/pytorch
- huntr.com/bounties/2754298b-5af5-48ef-8b38-999093ddf2bd
- pypi.org/project/pytorch-lightning