{"id":"CVE-2024-8019","published":"2025-03-20T10:08:48Z","modified":"2025-03-20T19:02:39Z","title":"Arbitrary File Write/Overwrite in lightning-ai/pytorch-lightning","vendor":"lightning-ai","product":"lightning-ai/pytorch-lightning","tier":"tail","description":{"text":"In 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01122,"percentile":0.67002,"provenance":"source"},"cwes":[{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"references":[{"url":"https://huntr.com/bounties/2754298b-5af5-48ef-8b38-999093ddf2bd","tags":[]},{"url":"https://github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a","tags":[]}],"priority":{"score":19.8,"factors":[{"name":"EPSS percentile","points":13.4},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"lightning-ai","affectedVersions":[{"vendor":"lightning-ai","product":"lightning-ai/pytorch-lightning","versions":[">= unspecified, < 2.3.3"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-03-20T17:54:52.152323Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pytorch-lightning","vulnerableRanges":["<2.4.0"],"patched":["2.4.0"],"from":["GHSA-4cv3-v7pv-rfhf","PYSEC-2026-507"],"provenance":"source"},{"ecosystem":"PyPI","package":"lightning","vulnerableRanges":["<2.4.0"],"patched":["2.4.0"],"from":["GHSA-4cv3-v7pv-rfhf","PYSEC-2026-3970"],"provenance":"source"}],"summary":{"text":"The flaw is an arbitrary file write and overwrite vulnerability in the LightningApp component of lightning-ai/pytorch-lightning (version 2.3.2), affecting Windows hosts through the /api/v1/upload_file/ endpoint. An unauthenticated remote attacker who sends a crafted filename to that endpoint can write or overwrite arbitrary files on the host, which could be used to achieve remote code execution by overwriting critical files or placing malicious files in sensitive locations.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:08Z"},"euvd":{"id":"EUVD-2025-6932","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-0845","published":"2022-03-05","fixed":"1.6.0","kev":false},{"cve":"CVE-2024-5452","published":"2024-06-06","fixed":"2.3.3","kev":false},{"cve":"CVE-2024-5980","published":"2024-06-27","fixed":"2.3.3","kev":false,"link":{"from":"CVE-2024-5980","to":"CVE-2024-8019","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pytorch-lightning","fromFixed":"2.3.3","toFixed":"2.4.0","daysApart":266},{"kind":"version-step","provenance":"source","package":"PyPI:lightning","fromFixed":"2.3.3","toFixed":"2.4.0","daysApart":266}]}},{"cve":"CVE-2024-8019","published":"2025-03-20","fixed":"2.4.0","kev":false},{"cve":"CVE-2026-44484","published":"2026-05-14","fixed":"2.6.4","kev":false},{"cve":"CVE-2026-58659","published":"2026-07-15","fixed":"2.6.6","kev":false}],"package":"PyPI:pytorch-lightning"}}