{"id":"CVE-2024-5980","published":"2024-06-27T18:46:39Z","modified":"2025-10-21T14:13:14Z","title":"Arbitrary File Write via /v1/runs API endpoint in lightning-ai/pytorch-lightning","vendor":"lightning-ai","product":"lightning-ai/pytorch-lightning","tier":"tail","description":{"text":"A vulnerability in the /v1/runs API endpoint of lightning-ai/pytorch-lightning v2.2.4 allows attackers to exploit path traversal when extracting tar.gz files. When the LightningApp is running with the plugin_server, attackers can deploy malicious tar.gz plugins that embed arbitrary files with path traversal vulnerabilities. This can result in arbitrary files being written to any directory in the victim's local file system, potentially leading to remote code execution.","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.01318,"percentile":0.71529,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://huntr.com/bounties/55a6ac6f-89c7-42ea-86f3-c6e93a2679f3","tags":[]},{"url":"https://github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a","tags":[]}],"priority":{"score":20.7,"factors":[{"name":"EPSS percentile","points":14.31},{"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":"2024-06-28T14:59:05.680080Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"lightning","vulnerableRanges":["<2.3.3"],"patched":["2.3.3"],"from":["GHSA-mr7h-w2qc-ffc2","PYSEC-2026-386"],"provenance":"source"},{"ecosystem":"PyPI","package":"pytorch-lightning","vulnerableRanges":["<2.3.3"],"patched":["2.3.3"],"from":["GHSA-mr7h-w2qc-ffc2","PYSEC-2026-3975"],"provenance":"source"}],"summary":{"text":"A path traversal flaw in the /v1/runs API endpoint of lightning-ai/pytorch-lightning v2.2.4 causes the software to mishandle paths when extracting tar.gz files. An attacker who can reach a running LightningApp with the plugin_server enabled, without needing credentials or user interaction, can deploy a malicious tar.gz plugin to write arbitrary files to any directory on the victim's local file system, potentially leading to remote code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:11:24Z"},"euvd":{"id":"EUVD-2024-2112","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-4118","published":"2021-12-23","fixed":"1.6.0","kev":false},{"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},{"cve":"CVE-2024-8019","published":"2025-03-20","fixed":"2.4.0","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-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"}}