MediumVulnerability
CVE-2024-31580: PyTorch heap buffer overflow in vararg functions causes denial of service
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2024-31580
- Published
- Record updated
- Affected
- torch < 2.2.0
- Fixed in
- 2.2.0
- released January 30, 2024, 78 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.2%
Summary
CVE-2024-31580 affects PyTorch before v2.2.0. The source reports a heap buffer overflow in the component /runtime/vararg_functions.cpp, which an attacker can trigger with a crafted input to cause a Denial of Service (DoS). The weakness is classified as CWE-122, Heap-based Buffer Overflow.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- torchPyPINo LLM dependency detected · 200 tracked dependents
Related items
- HighCVE-2026-77177: Open GenAI Stack code execution via prompt injection with Jinja2 templatesSame vendor · NVD/CVE Database
- MediumCVE-2026-89278: GPTranslate WordPress plugin exposes plaintext API key to unauthenticated usersSame vendor · NVD/CVE Database
- MediumChina-Based Artificial Intelligence Companies Conducting Industrial-Scale Distillation Campaigns Against U.S. AI CompaniesSame vendor · CISA Cybersecurity Advisories
- MediumCVE-2026-4538: PyTorch 2.10.0 deserialization flaw in pt2 Loading Handler via local accessSame vendor · NVD/CVE Database
- MediumCVE-2025-55554: pytorch integer overflow in torch.nan_to_num long conversionSame vendor · NVD/CVE Database