Skip to content
pytorch-lightningPYSEC-2026-3975

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

Critical9.1CVE-2024-5980 · Published Sep 10, 2026

Source advisory

Affected versions

PackageAffectedFixed in
pytorch-lightning
PyPI
< 2.3.32.3.3
Details and references

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 3.0
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Severity from
the CVSS score
Also known as
CVE-2024-5980, GHSA-mr7h-w2qc-ffc2, PYSEC-2026-386

More pytorch-lightning advisories

All

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.