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

High 7.3 Published Updated

Attackers can execute arbitrary code via injection in PyTorch Lightning, requiring an upgrade to the latest version.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-0845?

CVE-2022-0845 is a high-severity code injection vulnerability in pytorchlightning/pytorch-lightning, published on 5 Mar 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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

Weakness: CWE-94

Which versions are affected by CVE-2022-0845?

4 open source packages ship an affected version, including pytorch-lightning and lightning. It affects 1 product.

PackageAffectedFixed in
pytorch-lightning PyPIAll versions1.6.0
pytorch-lightning PyPIAll versions1.6.0
pytorch-lightning PyPIAll versions1.6.0
lightning PyPIAll versions1.6.0

Products include Lightningai Pytorch Lightning.

How do I fix CVE-2022-0845?

Upgrade pytorch-lightning to 1.6.0 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2022-0845 being exploited?

There is no known exploitation of CVE-2022-0845 in the wild and no public exploit code.

Sources

Also known as GHSA-r5qj-cvf9-p85h, PYSEC-2022-181, PYSEC-2026-3969.

Is CVE-2022-0845 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free