CVE-2024-31583: Use After Free

Published Apr 17, 2024
·
Updated

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

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
  3. Upgrade

    Upgrade pytorch to a version that resolves this vulnerability.

    Fixed in v2.2.0

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
Severity
Updated
via Microsoft·07:00 AM
SeverityAffected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2024-31583?

CVE-2024-31583 is classified as a use-after-free vulnerability, which can lead to potential arbitrary code execution.

2

How do I fix CVE-2024-31583?

To fix CVE-2024-31583, update Pytorch to version 2.2.0 or later.

3

What versions of Pytorch are affected by CVE-2024-31583?

CVE-2024-31583 affects all Pytorch versions prior to 2.2.0.

4

Can CVE-2024-31583 be exploited remotely?

Yes, CVE-2024-31583 can potentially be exploited remotely depending on how Pytorch is utilized in an application.

5

What are the potential impacts of CVE-2024-31583?

The potential impacts of CVE-2024-31583 include crashes, data corruption, and arbitrary code execution.

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