NetSight
critical9.8

CVE-2022-0845

Code Injection in PyTorch Lightning

Impact

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 packages

EcosystemPackageAffectedFixed in
pippytorch-lightning< 1.6.01.6.0

Affected products

VendorProductAffected versions
LightningaiPytorch Lightning
before 1.6.0

Weakness classification

References