PyTorch Lightningに悪意あるチェックポイントで任意のコードを実行される脆弱性
Summary
PyTorch Lightningの2.6.6までのFSDPStrategy.load_checkpointには、安全読み込みの指定を無視して逆シリアル化する脆弱性があります。細工されたチェックポイントを読み込むと、学習を実行しているユーザーの権限でコードを実行される可能性があります。修正版の情報は確認できていないため、最新の情報を確認してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
PyTorch Lightningの2.6.6までのFSDPStrategy.load_checkpointには、安全読み込みの指定を無視して逆シリアル化する脆弱性があります。細工されたチェックポイントを読み込むと、学習を実行しているユーザーの権限でコードを実行される可能性があります。修正版の情報は確認できていないため、最新の情報を確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Lightning-AIPyTorch Lightning |
≤ 2.6.6→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
PyTorch Lightning through 2.6.6 contains an insecure deserialization vulnerability in FSDPStrategy.load_checkpoint that ignores weights_only=True when loading local single-file checkpoints. Attackers who supply a crafted checkpoint can embed a pickle payload that _LazyLoadingUnpickler resolves through unrestricted find_class, executing code as the training user.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- package github.com
- web github.com
- web github.com
- web vulncheck.com
- web nvd.nist.gov
- web github.com