{"id":"CVE-2024-8019","aliases":["GHSA-4cv3-v7pv-rfhf","PYSEC-2026-3970","PYSEC-2026-507"],"title":"PyTorch Lightning path traversal vulnerability","summary":"PyTorch Lightning path traversal vulnerability","severity":"critical","cvss":9.1,"cvssVector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","vendor":"pytorch-lightning","product":"pytorch-lightning","ecosystem":"pip","affected":["pytorch-lightning < 2.4.0"],"patched":["pytorch-lightning 2.4.0"],"published":"2025-03-20","updated":"2026-09-10","sourceUpdated":"2026-09-10T17:25:45.422789003Z","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-4cv3-v7pv-rfhf","references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-8019"},{"url":"https://github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a"},{"url":"https://github.com/pytorch/pytorch"},{"url":"https://huntr.com/bounties/2754298b-5af5-48ef-8b38-999093ddf2bd"},{"url":"https://pypi.org/project/pytorch-lightning"},{"url":"https://github.com/advisories/GHSA-4cv3-v7pv-rfhf"}],"tags":["osv","pip"],"epss":0.01122,"epssPercentile":0.64277,"ingestedAt":"2026-09-12T03:13:01.652Z","slug":"CVE-2024-8019","body":"## Overview\n\nIn lightning-ai/pytorch-lightning version 2.3.2, a vulnerability exists in the `LightningApp` when running on a Windows host. The vulnerability occurs at the `/api/v1/upload_file/` endpoint, allowing an attacker to write or overwrite arbitrary files by providing a crafted filename. This can lead to potential remote code execution (RCE) by overwriting critical files or placing malicious files in sensitive locations.\n\n## Affected packages\n\n- `pytorch-lightning < 2.4.0`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `pytorch-lightning 2.4.0`","depth":"midnight","depthScore":50,"depthScoreParts":{"impact":50.1,"likelihood":0.2,"exploitation":0,"ransomware":0},"changes":[]}