PyTorch Lightning versions prior to 2.3.3 contain a critical vulnerability (CVE-2024-5980) in the /v1/runs API endpoint that allows attackers to perform arbitrary file writes via path traversal when extracting tar.gz files. This occurs when the LightningApp is running with the plugin_server, enabling malicious plugins to write files to arbitrary locations on the victim's file system, potentially leading to remote code execution. The vulnerability has a CVSS score of 9.1 and is fixed in version 2.3.3.