GitHub advisory · PyPI
Code Injection in PyTorch Lightning
Description
PyTorch Lightning version 1.5.10 and prior is vulnerable to code injection. An attacker could execute commands on the target OS running the operating system by setting the PL_TRAINER_GPUS when using the Trainer module. A patch is included in the 1.6.0 release.
Manual fix · PyPI
pip install --upgrade "pytorch-lightning>=1.6.0"Sources