All reports
Critical

Code Injection in PyTorch Lightning

Affected versions

Version ranges need review.

Affected versions
<1.6.0
Fixed version
1.6.0
Affected versions
<1.6.0
Fixed version
1.6.0
Affected versions
< 1.6.0
Fixed version
1.6.0

Exploitation

CVE-2022-0845

Probability of exploitation in the next 30 days: 1.01%

FIRST EPSS · 2026-11-19

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.

Links

Credits

  • oliverchang