CVE-2024-31580: Buffer Overflow

Published Apr 17, 2024
·
Updated

PyTorch before v2.2.0 was discovered to contain a heap buffer overflow vulnerability in the component /runtime/varargfunctions.cpp. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted input.

Affected Software

4 affected componentsFixes available
linuxfoundation Pytorch Python<2.2.0
pip/torch<2.2.0
2.2.0
Microsoft cbl2 pytorch 2.0.0-8<2.0.0-4
2.0.0-4
Microsoft cbl2 pytorch 2.0.0-4<2.0.0-4
2.0.0-4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/torch to a version that resolves this vulnerability.

    Fixed in 2.2.0
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.0.0-4

Event History

Apr 17, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Advisory Published
via GitHub·09:30 PM
Data Sourced
via GitHub·09:30 PM
DescriptionSeverityWeaknessAffected Software
Apr 22, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
Description
Updated
via Microsoft·07:00 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2024-31580?

CVE-2024-31580 is classified as a critical vulnerability due to its potential to cause a Denial of Service (DoS) in affected systems.

2

How do I fix CVE-2024-31580?

To fix CVE-2024-31580, upgrade to PyTorch version 2.2.0 or later.

3

What components are affected by CVE-2024-31580?

CVE-2024-31580 affects the /runtime/vararg_functions.cpp component in PyTorch prior to version 2.2.0.

4

Can CVE-2024-31580 lead to data breaches?

While CVE-2024-31580 primarily poses a risk of Denial of Service, it does not directly lead to data breaches.

5

Is CVE-2024-31580 present in PyTorch versions after 2.2.0?

No, CVE-2024-31580 is not present in PyTorch versions 2.2.0 and later, as this vulnerability has been addressed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203