Skip to content

[GHSA-qqmf-gpg7-g8gw] PyTorch Lightning allows arbitrary code execution through checkpoint _instantiator hyperparameters - #9760

Closed
GunnerStone wants to merge 1 commit into
GunnerStone/advisory-improvement-9760from
GunnerStone-GHSA-qqmf-gpg7-g8gw
Closed

GunnerStone wants to merge 1 commit into
GunnerStone/advisory-improvement-9760from
GunnerStone-GHSA-qqmf-gpg7-g8gw

Conversation

@GunnerStone

Copy link
Copy Markdown

Updates

  • Affected products
  • CVSS v3

Comments
Fix affected/patched version range for CVE-2026-58659 (lightning and pytorch-lightning)

The advisory currently says < 2022.6.15 with patched version 2022.6.15. Neither lightning nor pytorch-lightning has ever published a 2022.6.15 release on PyPI, so no user can upgrade to the listed patched version. Because every real release (1.8.0 through 2.6.6) compares lower than 2022.6.15, scanners also flag the fixed 2.6.6 release as vulnerable.

The advisory's own description says the issue affects releases "through 2.6.5, fixed in commit d710d68". The fix shipped in 2.6.6 (PR #21832, commit d710d689510d50e800f53b3cd773cbca20b1f86f, release tag 2.6.6). The referenced PyPA advisory PYSEC-2026-3624 was corrected on 2026-09-10 to introduced 0, fixed 2.6.6.

Proposed change:

  • lightning: affected < 2.6.6, patched 2.6.6

  • Add pytorch-lightning: affected < 2.6.6, patched 2.6.6. It ships the same vulnerable code (_load_state / LightningModule.load_from_checkpoint) and was fixed in the same 2.6.6 release.

Copilot AI balanced review requested due to automatic review settings September 23, 2026 16:50
@github-actions
github-actions Bot changed the base branch from main to GunnerStone/advisory-improvement-9760 September 23, 2026 16:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Both ranges incorrectly mark releases before the vulnerable code was introduced in 2.3.0 as affected.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Corrects PyTorch Lightning advisory metadata for the actual 2.6.6 patched release.

Changes:

  • Updates lightning fixed version to 2.6.6.
  • Adds pytorch-lightning as affected.
  • Removes the CVSS v3 vector.
File Description
GHSA-qqmf-gpg7-g8gw.json Updates affected packages, ranges, and severity metadata.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

},
{
"fixed": "2022.6.15"
"fixed": "2.6.6"
@github-actions
github-actions Bot deleted the GunnerStone-GHSA-qqmf-gpg7-g8gw branch September 23, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants