CVE-2022-0845: Code Injection in pytorchlightning/pytorch-lightning

Published Mar 5, 2022
·
Updated

Code Injection in GitHub repository pytorchlightning/pytorch-lightning prior to 1.6.0.

Other sources

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 PLTRAINERGPUS when using the Trainer module. A patch is included in the 1.6.0 release.

Affected Software

3 affected componentsFixes available
pip/pytorch-lightning<1.6.0
1.6.0
Lightningai Pytorch Lightning Python<1.6.0
pytorchlightning Pytorch Lightning Python<1.6.0

Event History

Mar 5, 2022
CVE Published
via MITRE·09:25 PM
Data Sourced
via MITRE·09:25 PM
DescriptionSeverityWeakness
Mar 6, 2022
Advisory Published
12:00 AM

Frequently Asked Questions

1

What is the severity of CVE-2022-0845?

CVE-2022-0845 is classified as a high-severity vulnerability due to its potential for code execution.

2

How do I fix CVE-2022-0845?

To fix CVE-2022-0845, upgrade to PyTorch Lightning version 1.6.0 or later.

3

What is the nature of the vulnerability in CVE-2022-0845?

CVE-2022-0845 is a code injection vulnerability that allows attackers to execute arbitrary commands on the host OS.

4

Which versions are affected by CVE-2022-0845?

CVE-2022-0845 affects PyTorch Lightning versions prior to 1.6.0, including 1.5.10 and earlier releases.

5

Who is impacted by CVE-2022-0845?

Developers and organizations using affected versions of PyTorch Lightning are at risk due to CVE-2022-0845.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203