Skip to main content
EPSS 0.2%top 87%

PyTorch before v2.2.0 was discovered to contain a heap buffer overflow vulnerability in the component /runtime/vararg_functions.cpp. (CVE-2024-31580)

0
Medium
Published: 06/11/2025 (06/11/2025, 05:57:22 UTC)
Source: GCVE Database
Product: pytorch

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

Bitnamimore threats →ghsa
pytorch
pkg:bitnami/pytorch
Affected versions
<2.2.1

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

AILast updated: 09/08/2026, 13:24:46 UTC

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

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

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

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 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