Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-31583: n/a

0
High
VulnerabilityCVE-2024-31583cvecve-2024-31583
Published: Wed Apr 17 2024 (04/17/2024, 00:00:00 UTC)
Source: CVE Database V5

Description

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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/26/2026, 12:24:45 UTC

Technical Analysis

CVE-2024-31583 is a use-after-free vulnerability identified in the PyTorch machine learning framework, specifically in the torch/csrc/jit/mobile/interpreter.cpp source file. Use-after-free (CWE-416) vulnerabilities occur when a program continues to use a pointer after the memory it points to has been freed, leading to undefined behavior such as memory corruption or arbitrary code execution. This vulnerability affects PyTorch versions before v2.2.0 and was publicly disclosed on April 17, 2024. The vulnerability has a CVSS 3.1 base score of 7.8, indicating high severity. The vector (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) shows that exploitation requires local access (AV:L), low attack complexity (AC:L), no privileges (PR:N), and user interaction (UI:R). The scope is unchanged (S:U), and the impact on confidentiality, integrity, and availability is high (C:H/I:H/A:H). While no known exploits are currently reported in the wild, the vulnerability could allow an attacker with local access to execute arbitrary code, corrupt data, or cause denial of service by triggering the use-after-free condition in the PyTorch JIT mobile interpreter. This component is used for running PyTorch models on mobile or embedded devices, making the vulnerability relevant for developers and organizations deploying AI models in such environments. No official patch links were provided in the source, but upgrading to PyTorch v2.2.0 or later is the recommended remediation.

Potential Impact

The vulnerability poses a significant risk to organizations using PyTorch in their AI and machine learning workflows, especially those deploying models on mobile or embedded devices. Successful exploitation can lead to arbitrary code execution, allowing attackers to execute malicious code with the privileges of the PyTorch process. This could result in data breaches, manipulation of AI model outputs, or disruption of AI services. The high impact on confidentiality, integrity, and availability means sensitive data processed by AI models could be exposed or altered, and services relying on PyTorch could be rendered unavailable. Since exploitation requires local access and user interaction, insider threats or compromised user accounts pose the greatest risk. Organizations relying on PyTorch for critical AI workloads, research, or production systems may face operational disruptions and reputational damage if this vulnerability is exploited.

Mitigation Recommendations

1. Upgrade PyTorch to version 2.2.0 or later as soon as possible to ensure the vulnerability is patched. 2. Restrict local access to systems running vulnerable PyTorch versions to trusted users only, minimizing the risk of exploitation. 3. Implement strict user account controls and monitor for unusual user activity that could indicate attempts to exploit the vulnerability. 4. Use application whitelisting and endpoint protection solutions to detect and block suspicious behavior related to PyTorch processes. 5. For environments where immediate upgrade is not feasible, consider isolating PyTorch workloads within sandboxed or containerized environments to limit potential damage. 6. Regularly audit and update AI/ML deployment pipelines to ensure dependencies like PyTorch are kept current. 7. Educate developers and system administrators about the risks of use-after-free vulnerabilities and the importance of applying security updates promptly.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
mitre
Date Reserved
2024-04-05T00:00:00.000Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f6dd3b7ef31ef0b58eee2

Added to database: 2/25/2026, 9:46:59 PM

Last enriched: 2/26/2026, 12:24:45 PM

Last updated: 4/11/2026, 9:24:35 PM

Views: 10

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses