INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2022-0845

Code Injection in PyTorch Lightning

CVE-2022-0845 ยท 2022-03-06 critical

Class
AI Framework and Platform Flaws (filed by a model that read the advisory)
Technique
Code and command execution
Affected
pytorch-lightning (PyPI)
CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.0% chance of exploitation in 30 days

How it works, in short

An environment variable value is interpolated into code executed by the trainer, so setting PL_TRAINER_GPUS runs commands on the host. (Our summary, written by a model. The source text is below.)

Details

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.

References

Source: GitHub Advisory Database, used under CC BY 4.0.