CVE-2024-8019: Arbitrary File Write/Overwrite in lightning-ai/pytorch-lightning

Published Mar 20, 2025
·
Updated

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/uploadfile/ 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.

Affected Software

3 affected componentsFixes available
lightning-ai pytorch-lightning
pip/pytorch-lightning<2.4.0
2.4.0
Lightningai Pytorch Lightning Python=2.3.2

Event History

Mar 20, 2025
CVE Published
via MITRE·10:08 AM
Data Sourced
via MITRE·10:08 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 AM
RemedyAffected Software
Advisory Published
via GitHub·12:32 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-8019?

CVE-2024-8019 has been classified as a high-severity vulnerability due to its potential impact on file system integrity.

2

How do I fix CVE-2024-8019?

To remediate CVE-2024-8019, upgrade to version 2.4.0 or later of the PyTorch Lightning package.

3

What products are affected by CVE-2024-8019?

CVE-2024-8019 affects the PyTorch Lightning package, specifically version 2.3.2 when used on Windows hosts.

4

What type of attack does CVE-2024-8019 allow?

CVE-2024-8019 allows an attacker to write or overwrite arbitrary files via a crafted filename at the /api/v1/upload_file/ endpoint.

5

Is CVE-2024-8019 specific to any operating system?

Yes, CVE-2024-8019 specifically affects installations running on Windows operating systems.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203