Skip to content

Code Injection in PyTorch Lightning

Critical severity GitHub Reviewed Published Mar 6, 2022 to the GitHub Advisory Database • Updated Sep 7, 2023

Package

pip pytorch-lightning (pip)

Affected versions

< 1.6.0

Patched versions

1.6.0

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.

References

Published by the National Vulnerability Database Mar 5, 2022
Published to the GitHub Advisory Database Mar 6, 2022
Reviewed Mar 7, 2022
Last updated Sep 7, 2023

Severity

Critical
9.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2022-0845

GHSA ID

GHSA-r5qj-cvf9-p85h

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.