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

9.8CRITICAL

Key Information:

Vendor
CVE Published:
27 June 2024

What is CVE-2024-5980?

A vulnerability in the /v1/runs API endpoint of Lightning-AI's PyTorch Lightning version 2.2.4 facilitates a path traversal attack when handling tar.gz files. This issue arises when the LightningApp operates with the plugin_server enabled, allowing attackers to deploy malicious tar.gz plugins that can manipulate filesystem traversal. This exploitation can enable unauthorized writing of files across any directory within the local filesystem of the affected system, potentially leading to remote code execution and significant security risks.

Affected Version(s)

lightning-ai/pytorch-lightning < 2.3.3

References

EPSS Score

10% chance of being exploited in the next 30 days.

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

CVSS V3.0

Score:
9.1
Severity:
CRITICAL
Confidentiality:
None
Integrity:
High
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

.