{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-8019","id":"CVE-2024-8019","title":"Arbitrary File Write/Overwrite in lightning-ai/pytorch-lightning","description":"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 se","descriptionLong":"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.","published":"2025-03-20T10:08:48.918Z","updated":"2026-10-28T02:30:22.903338845Z","reserved":"2024-08-20T17:11:51.086Z","status":"Analyzed","rejected":false,"assigner":"@huntr_ai","metric":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.0","score":9.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","rating":"critical","source":"@huntr_ai"},{"version":"3.0","score":9.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","rating":"critical","source":"huntr.dev"},{"version":"3.0","score":9.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.0","score":9.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["lightning-ai/pytorch-lightning"],"affectedProducts":[{"vendor":"lightning-ai","product":"lightning-ai/pytorch-lightning","defaultStatus":null,"versions":[{"version":"unspecified","lessThan":"2.3.3","status":"affected","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"pytorch-lightning","purl":"pkg:pypi/pytorch-lightning","ranges":["<2.4.0"],"fixed":["2.4.0"],"advisory":"GHSA-4cv3-v7pv-rfhf"},{"ecosystem":"PyPI","name":"lightning","purl":"pkg:pypi/lightning","ranges":["<2.4.0"],"fixed":["2.4.0"],"advisory":"GHSA-4cv3-v7pv-rfhf"}],"cwes":["CWE-434"],"aliases":["GHSA-4cv3-v7pv-rfhf","PYSEC-2026-3970","PYSEC-2026-507"],"references":[{"url":"https://huntr.com/bounties/2754298b-5af5-48ef-8b38-999093ddf2bd","tags":["Exploit","Third Party Advisory","web"]},{"url":"https://github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a","tags":["Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/8xxx/CVE-2024-8019.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-8019","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/lightning/PYSEC-2026-3970.yaml","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pytorch-lightning/PYSEC-2026-507.yaml","tags":["web"]},{"url":"https://github.com/pytorch/pytorch","tags":["package"]},{"url":"https://pypi.org/project/pytorch-lightning","tags":["web","package"]},{"url":"https://github.com/advisories/GHSA-4cv3-v7pv-rfhf","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.01122,"epssPercentile":0.66856,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-8019","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-8019","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-8019","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4cv3-v7pv-rfhf","ok":true,"note":"GHSA-4cv3-v7pv-rfhf"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-8019","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}