PyTorch before v2.2.0 was discovered to contain a heap buffer overflow vulnerability in the component /runtime/vararg_functions.cpp. (CVE-2024-31580)
PyTorch versions prior to 2.2.1 contain a heap buffer overflow vulnerability in the /runtime/vararg_functions.cpp component. This flaw can be triggered by crafted input to cause a Denial of Service (DoS) condition. A patch addressing this vulnerability is available.
AI Analysis
Technical Summary
A heap buffer overflow vulnerability exists in PyTorch before version 2.2.1 within the /runtime/vararg_functions.cpp component. This vulnerability allows attackers to cause a Denial of Service by supplying specially crafted input. The issue has been fixed in version 2.2.1, with the patch available in the official PyTorch repository.
Potential Impact
The vulnerability can lead to a Denial of Service (DoS) condition, disrupting the availability of PyTorch-based applications. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade PyTorch to version 2.2.1 or later, where this heap buffer overflow vulnerability has been patched. Refer to the official patch commit for details: https://github.com/pytorch/pytorch/commit/b5c3a17c2c207ebefcb85043f0cf94be9b2fef81
PyTorch before v2.2.0 was discovered to contain a heap buffer overflow vulnerability in the component /runtime/vararg_functions.cpp. (CVE-2024-31580)
Description
PyTorch versions prior to 2.2.1 contain a heap buffer overflow vulnerability in the /runtime/vararg_functions.cpp component. This flaw can be triggered by crafted input to cause a Denial of Service (DoS) condition. A patch addressing this vulnerability is available.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
A heap buffer overflow vulnerability exists in PyTorch before version 2.2.1 within the /runtime/vararg_functions.cpp component. This vulnerability allows attackers to cause a Denial of Service by supplying specially crafted input. The issue has been fixed in version 2.2.1, with the patch available in the official PyTorch repository.
Potential Impact
The vulnerability can lead to a Denial of Service (DoS) condition, disrupting the availability of PyTorch-based applications. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade PyTorch to version 2.2.1 or later, where this heap buffer overflow vulnerability has been patched. Refer to the official patch commit for details: https://github.com/pytorch/pytorch/commit/b5c3a17c2c207ebefcb85043f0cf94be9b2fef81
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BIT-pytorch-2024-31580
- Osv Schema Version
- 1.6.2
- Aliases
- ["CVE-2024-31580"]
- Ecosystems
- ["Bitnami"]
- Database Specific Severity
- Medium
Patch Information
Threat ID: 6aa005d0acd9273b49ab5e4e
Added to database: 09/08/2026, 12:55:44 UTC
Last enriched: 09/08/2026, 13:24:46 UTC
Last updated: 09/10/2026, 19:36:48 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.