AI and data stack advisories

Severe, 6 weeks1496Projects326

1496 severe, 6 weeks · 326 projects

pytorch-lightningGHSA-r5qj-cvf9-p85h

Code Injection in PyTorch Lightning

pytorch-lightning

CVE-2022-0845 · Published Mar 6, 2022 · updated Sep 10, 2026

Critical9.8
Fix: upgrade to 1.6.0 or later
GitHub advisory

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](https://github.com/pytorchlightning/pytorch-lightning/commit/8b7a12c52e52a06408e9231647839ddb4665e8ae) is included in the 1.6.0 release.

Affected versions

PackageAffectedFixed in
pytorch-lightning
PyPI
< 1.6.01.6.0
Details and references

More pytorch-lightning advisories

All pytorch-lightning