Skip to content
CriticalVulnerability

GHSA-mr7h-w2qc-ffc2: pytorch-lightning vulnerable to Arbitrary File Write via /v1/runs API endpoint

Published
Record updated
View JSON
Affected
  • lightning < 2.3.3
  • pytorch-lightning < 2.3.3
Fixed in
2.3.3
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.3%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

A path traversal flaw in the /v1/runs API endpoint of lightning-ai/pytorch-lightning v2.2.4 is reached when the tar.gz files it extracts are malicious. When LightningApp runs with the plugin_server, an attacker can deploy a tar.gz plugin with embedded files that carry path traversal sequences. This lets arbitrary files be written to any directory on the victim's local file system, potentially leading to remote code execution.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.