Advisory

PYSEC-2026-3970

Also known as: CVE-2024-8019, GHSA-4cv3-v7pv-rfhf, PYSEC-2026-507

Summary

PyTorch Lightning path traversal vulnerability

Details

In lightning-ai/pytorch-lightning version 2.3.2, a vulnerability exists in the LightningApp when running on a Windows host. The vulnerability occurs at the /api/v1/upload_file/ endpoint, allowing an attacker to write or overwrite arbitrary files by providing a crafted filename. This can lead to potential remote code execution (RCE) by overwriting critical files or placing malicious files in sensitive locations.

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:25 UTC

Affected packages and fixes

lightning

PyPI · All systems

Affected

  • introduced 0, fixed 2.4.0 (ecosystem)

Fixed versions

2.4.0

Fix

  • Fixed version 2.4.0
    pip install --upgrade lightning==2.4.0

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