Arbitrary File Write via /v1/runs API endpoint in lightning-ai/pytorch-lightning
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-5980
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 01:15 UTC · Revision 1
Source evidence
Arbitrary File Write via /v1/runs API endpoint in lightning-ai/pytorch-lightning
core-osv · Original sourcePublished 27 Jun 2024, 18:46 UTC
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.
osv:CVE-2024-5980
Complete source record
{
"id": "6182813ba79c5cfc4520d9a4e3fe815156dec2fe73e507a4bed7bb696529dd19",
"url": "https://osv.dev/vulnerability/CVE-2024-5980",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Arbitrary File Write via /v1/runs API endpoint in lightning-ai/pytorch-lightning",
"summary": "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.",
"evidence": "osv:CVE-2024-5980",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2024-5980",
"aliases": [
"CVE-2024-5980",
"GHSA-mr7h-w2qc-ffc2",
"PYSEC-2026-386",
"PYSEC-2026-3975"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/lightning-ai/pytorch-lightning",
"type": "GIT",
"events": [
{
"introduced": "2a46b0ccdd813d14fe7b98b631ae948450a67375"
},
{
"fixed": "cf348673eda662cc2e9aa71a72a19b8774f85718"
},
{
"fixed": "330af381de88cff17515418a341cbc1f9f127f9a"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:lightningai:pytorch_lightning:*:*:*:*:*:python:*:*",
"range": [
{
"introduced": "2.2.4"
},
{
"fixed": "2.3.3"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "330af381de88cff17515418a341cbc1f9f127f9a"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-5980.json"
}
}
],
"modified": "2026-10-28T02:30:32.396272793Z",
"provider": "osv",
"references": [
"https://huntr.com/bounties/55a6ac6f-89c7-42ea-86f3-c6e93a2679f3",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5980.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-5980",
"https://github.com/lightning-ai/pytorch-lightning/commit/330af381de88cff17515418a341cbc1f9f127f9a"
],
"provider_metadata": {
"cwe_ids": [
"CWE-22"
],
"cna_assigner": "@huntr_ai",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5980.json"
}
},
"related_cves": [
{
"value": "CVE-2024-5980",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 499413,
"published_at": "2024-06-27T18:46:39.213+00:00"
}