{"id":"CVE-2024-8019","summary":"Arbitrary File Write/Overwrite in lightning-ai/pytorch-lightning","details":"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.","aliases":["GHSA-4cv3-v7pv-rfhf","PYSEC-2026-3970","PYSEC-2026-507"],"modified":"2026-09-10T17:25:45.422789003Z","published":"2025-03-20T10:08:48.918Z","related":["CGA-m9hh-8285-jv2g"],"database_specific":{"cna_assigner":"@huntr_ai","cwe_ids":["CWE-434"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/8xxx/CVE-2024-8019.json"},"references":[{"type":"WEB","url":"https://huntr.com/bounties/2754298b-5af5-48ef-8b38-999093ddf2bd"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/8xxx/CVE-2024-8019.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-8019"},{"type":"FIX","url":"https://github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/lightning-ai/pytorch-lightning","events":[{"introduced":"056bb0834b8fca739dec3e731b01f2f6631be142"},{"fixed":"330af381de88cff17515418a341cbc1f9f127f9a"}],"database_specific":{"cpe":"cpe:2.3:a:lightningai:pytorch_lightning:2.3.2:*:*:*:*:python:*:*","extracted_events":[{"introduced":"2.3.2"},{"last_affected":"2.3.2"}],"source":["CPE_STRING","REFERENCES"]}}],"versions":["2.3.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-8019.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H"}]}