Advisory

PYSEC-2026-3975

Also known as: CVE-2024-5980, GHSA-mr7h-w2qc-ffc2, PYSEC-2026-386

Summary

pytorch-lightning vulnerable to Arbitrary File Write via /v1/runs API endpoint

Details

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.

Severity

Critical Basis: CVSS v3 score 9.1, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Dates

Published
2026-09-10 16:42 UTC
Modified
2026-09-10 17:26 UTC

Affected packages and fixes

pytorch-lightning

PyPI · All systems

Affected

  • introduced 0, fixed 2.3.3 (ecosystem)

Fixed versions

2.3.3

Fix

  • Fixed version 2.3.3
    pip install --upgrade pytorch-lightning==2.3.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences