Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. torch
  4. ›
  5. CVE-2024-31583

CVE-2024-31583: Pytorch use-after-free vulnerability

April 17, 2024 (updated July 25, 2024)

Pytorch before version v2.2.0 was discovered to contain a use-after-free vulnerability in torch/csrc/jit/mobile/interpreter.cpp.

References

  • gist.github.com/1047524396/43e19a41f2b36503a4a228c32cdbc176
  • github.com/advisories/GHSA-pg7h-5qx3-wjr3
  • github.com/pytorch/pytorch
  • github.com/pytorch/pytorch/blob/v2.1.2/torch/csrc/jit/mobile/interpreter.cpp
  • github.com/pytorch/pytorch/commit/9c7071b0e324f9fb68ab881283d6b8d388a4bcd2
  • nvd.nist.gov/vuln/detail/CVE-2024-31583
  • security.snyk.io/vuln/SNYK-PYTHON-TORCH-6619806

Code Behaviors & Features

Detect and mitigate CVE-2024-31583 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.2.0

Fixed versions

  • 2.2.0

Solution

Upgrade to version 2.2.0 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-416: Use After Free

Source file

pypi/torch/CVE-2024-31583.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:48 +0000.