Advisory record · GHSA-r5qj-cvf9-p85h

Code Injection in PyTorch Lightning

CVSS 7.3 HighEPSS 0.010 · 63rd percentile

Published by the GitHub Advisory Database at 6 Mar 2022, 00:00 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
pytorch-lightningPyPI<1.6.01.6.0
Identifiers
GHSA-r5qj-cvf9-p85h · CVE-2022-0845 · PYSEC-2022-181 · PYSEC-2026-3969
Weakness (CWE)
CWE-94
Published
6 Mar 2022
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

PyTorch Lightning versions before 1.6.0 are vulnerable to code injection through the PL_TRAINER_GPUS environment variable when using the Trainer module. An attacker who can set that variable can execute commands on the operating system running the software. Upgrade to pytorch-lightning 1.6.0 or later.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.3 High 3.0 CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L CNA (@huntrdev)
  • CISA KEV Not listed.
  • EPSS 0.010, the 63rd percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:10 UTC First seen by agentprime
  2. 31 Oct 2026, 14:10 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.