CVE-2024-5980: Arbitrary File Write via /v1/runs API endpoint in lightning-ai/pytorch-lightning

Published Jun 27, 2024
·
Updated

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 pluginserver, 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.

Affected Software

2 affected componentsFixes available
pip/lightning<=2.3.1
2.3.3
Lightningai Pytorch Lightning Python>=2.2.4<2.3.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/lightning to a version that resolves this vulnerability.

    Fixed in 2.3.3

Event History

Jun 27, 2024
CVE Published
via MITRE·06:46 PM
Data Sourced
via MITRE·06:46 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
Affected Software
Advisory Published
via GitHub·09:32 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-5980?

CVE-2024-5980 is considered a high severity vulnerability due to the potential for path traversal attacks.

2

How do I fix CVE-2024-5980?

To fix CVE-2024-5980, upgrade the lightning-ai/pytorch-lightning package to version 2.3.3 or later.

3

What does CVE-2024-5980 affect?

CVE-2024-5980 affects the /v1/runs API endpoint of lightning-ai/pytorch-lightning version 2.2.4 and earlier.

4

What type of attack can CVE-2024-5980 facilitate?

CVE-2024-5980 can facilitate path traversal attacks by allowing attackers to extract malicious tar.gz files.

5

Is CVE-2024-5980 specific to certain server configurations?

Yes, CVE-2024-5980 is specifically exploitable when the LightningApp is running with the plugin_server.

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