{"id":"CVE-2024-8019","aliases":["CVE-2024-8019","GHSA-4cv3-v7pv-rfhf","PYSEC-2026-3970","PYSEC-2026-507"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary File Write/Overwrite in lightning-ai/pytorch-lightning","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En la versión 2.3.2 de lightning-ai/pytorch-lightning, existe una vulnerabilidad en la aplicación `LightningApp` al ejecutarse en un host Windows. La vulnerabilidad se produce en el endpoint `/api/v1/upload_file/`, lo que permite a un atacante escribir o sobrescribir archivos arbitrarios proporcionando un nombre de archivo manipulado. Esto puede provocar una posible ejecución remota de código (RCE) al sobrescribir archivos críticos o colocar archivos maliciosos en ubicaciones sensibles.","source":"nvd"}],"published":"2025-03-20T10:08:48.918Z","modified":"2026-11-16T16:30:03.539Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-434"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"2.3.3","status":"affected"}],"vendor":"lightning-ai","product":"lightning-ai/pytorch-lightning","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.4.0"}],"ecosystem":"PyPI","package":"pytorch-lightning","purl":"pkg:pypi/pytorch-lightning","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.4.0"}],"ecosystem":"PyPI","package":"lightning","purl":"pkg:pypi/lightning","source":"ghsa"},{"ranges":[{"status":"affected","version":"2.3.2"}],"vendor":"lightningai","product":"pytorch_lightning","cpe":"cpe:2.3:a:lightningai:pytorch_lightning:2.3.2:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.4.0"}],"ecosystem":"PyPI","package":"lightning","purl":"pkg:pypi/lightning","source":"pysec"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.4.0"}],"ecosystem":"PyPI","package":"pytorch-lightning","purl":"pkg:pypi/pytorch-lightning","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/2754298b-5af5-48ef-8b38-999093ddf2bd","tags":["exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a","tags":["patch","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-8019","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/lightning/PYSEC-2026-3970.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pytorch-lightning/PYSEC-2026-507.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pytorch/pytorch","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/pytorch-lightning","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-4cv3-v7pv-rfhf","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-03-20T17:54:52.152Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-8019","url":"https://www.cve.org/CVERecord?id=CVE-2024-8019","licence":"CVE Terms of Use","modified":"2025-03-20T19:02:39.949Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4cv3-v7pv-rfhf","url":"https://github.com/advisories/GHSA-4cv3-v7pv-rfhf","licence":"CC-BY-4.0","modified":"2026-11-16T16:30:03.539Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-8019","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-8019","licence":"Public domain","modified":"2026-06-17T08:21:41.987Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3970","url":"https://osv.dev/vulnerability/PYSEC-2026-3970","licence":"CC-BY-4.0","modified":"2026-09-10T17:25:45.422Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-507","url":"https://osv.dev/vulnerability/PYSEC-2026-507","licence":"CC-BY-4.0","modified":"2026-09-10T17:25:45.422Z"}],"updatedAt":"2026-11-25T22:58:52.387Z","epss":{"score":0.01122,"percentile":0.67172,"date":"2026-12-02T12:00:21.000Z"}}