← Back
CVE-2024-31583
Vulnerability in torch (CVE-2024-31583)
Summary
vulnerability in torch (CVE-2024-31583). Risk of unauthorized operations or information disclosure. Mitigation: upgrade to `9c7071b0e324f9fb68ab881283d6b8d388a4bcd2, 2.2.0` or later.
AI summary snake-internal / snake-material-v2
A vulnerability tracked as **CVE-2024-31583** has been found in torch.
Risk of unauthorized operations or information disclosure. CVSS score: ?/10.
What to do: upgrade torch to **9c7071b0e324f9fb68ab881283d6b8d388a4bcd2, 2.2.0** or later.
If unsure, ask your IT team or search "torch CVE-2024-31583" on the vendor's site.
CVE-2024-31583 (torch) —
Patched: `9c7071b0e324f9fb68ab881283d6b8d388a4bcd2, 2.2.0` — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
❓ What is the problem
**A vulnerability** (unclassified) exists in torch.
📍 Affected scope
torch — .
🔥 Severity
Severity: ?. Risk of unauthorized operations or information disclosure
🔧 How to fix
Update to **9c7071b0e324f9fb68ab881283d6b8d388a4bcd2, 2.2.0**.
🛡️ Workaround
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
🔍 Detection
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run `grep -r 'torch' .` against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response Actions (7 steps)
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
grep -r 'torch' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で `torch` を grep し、稼働しているサービス・バージョンを把握する。
-
6Apply patch patch
Upgrade torch to 9c7071b0e324f9fb68ab881283d6b8d388a4bcd2, 2.2.0ステージング環境で 9c7071b0e324f9fb68ab881283d6b8d388a4bcd2, 2.2.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 3 で見つけた異常検知の続報チェックを含めること。
-
7Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
Affected packages
PyPI
torch
[{"repo":"https:\/\/github.com\/pytorch\/pytorch","type":"GIT","events":[{"introduced":"0"},{"fixed":"9c7071b0e324f9fb68ab881283d6b8d388a4bcd2"},{"fixed":"9c7071b0e324f9fb68ab881283d6b8d388a4bcd2"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.0"}]}]
References
- advisory https://github.com/advisories/GHSA-pg7h-5qx3-wjr3
- patch https://github.com/pytorch/pytorch/commit/9c7071b0e324f9fb68ab881283d6b8d388a4bcd2
- web https://gist.github.com/1047524396/43e19a41f2b36503a4a228c32cdbc176
- web https://github.com/pytorch/pytorch/blob/v2.1.2/torch/csrc/jit/mobile/interpreter.cpp#L132