Advisory

GHSA-r5qj-cvf9-p85h

Also known as: CVE-2022-0845, PYSEC-2022-181, PYSEC-2026-3969

Summary

Code Injection in PyTorch Lightning

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-03-06 00:00 UTC
Modified
2026-09-10 17:26 UTC

Affected packages and fixes

pytorch-lightning

PyPI · All systems

Affected

  • introduced 0, fixed 1.6.0 (ecosystem)

Fixed versions

1.6.0

Fix

  • Fixed version 1.6.0
    pip install --upgrade pytorch-lightning==1.6.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences