{"cve":"CVE-2024-5980","nvd":{"published":"2024-06-27T19:15:18.803","modified":"2026-06-17T08:17:01.760","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-22"],"references":["https://github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a","https://huntr.com/bounties/55a6ac6f-89c7-42ea-86f3-c6e93a2679f3","https://huntr.com/bounties/55a6ac6f-89c7-42ea-86f3-c6e93a2679f3"],"products":["lightningai:pytorch_lightning"],"source":"nvd","synced_at":"2026-10-19T21:52:00.836172422+00:00"},"epss":{"cve":"CVE-2024-5980","score":0.01318,"percentile":0.70818,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-mr7h-w2qc-ffc2","url":"https://osv.dev/vulnerability/GHSA-mr7h-w2qc-ffc2","summary":"pytorch-lightning vulnerable to Arbitrary File Write via /v1/runs API endpoint","modified":"2026-09-10T17:26:00.509067652Z","packages":[{"ecosystem":"PyPI","name":"lightning","purl":"pkg:pypi/lightning","ranges":["<2.3.3"],"fixed":["2.3.3"]}]},{"id":"PYSEC-2026-386","url":"https://osv.dev/vulnerability/PYSEC-2026-386","summary":"pytorch-lightning vulnerable to Arbitrary File Write via /v1/runs API endpoint","modified":"2026-09-10T17:26:00.509067652Z","packages":[{"ecosystem":"PyPI","name":"lightning","purl":"pkg:pypi/lightning","ranges":["<2.3.3"],"fixed":["2.3.3"]}]},{"id":"PYSEC-2026-3975","url":"https://osv.dev/vulnerability/PYSEC-2026-3975","summary":"pytorch-lightning vulnerable to Arbitrary File Write via /v1/runs API endpoint","modified":"2026-09-10T17:26:00.509067652Z","packages":[{"ecosystem":"PyPI","name":"pytorch-lightning","purl":"pkg:pypi/pytorch-lightning","ranges":["<2.3.3"],"fixed":["2.3.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}