Advisory

GHSA-4cv3-v7pv-rfhf

Also known as: CVE-2024-8019, PYSEC-2026-3970, 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: The source's own band: CRITICAL

Dates

Published
2025-03-20 12:32 UTC
Modified
2026-11-16 16:30 UTC

Affected packages and fixes

pytorch-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 pytorch-lightning==2.4.0

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences