CVE-2025-3001: PyTorch torch.lstm_cell memory corruption

Published Mar 31, 2025
·
Updated

A vulnerability classified as critical was found in PyTorch 2.6.0. This vulnerability affects the function torch.lstmcell. The manipulation leads to memory corruption. The attack needs to be approached locally. The exploit has been disclosed to the public and may be used.

Other sources

PyTorch torch.lstmcell memory corruption

— Microsoft

Affected Software

13 affected componentsFixes available
PyTorch PyTorch
linuxfoundation Pytorch Python=2.6.0
Microsoft azl3 pytorch 2.2.2-9
Microsoft cbl2 pytorch 2.0.0-11
Microsoft cbl2 pytorch 2.0.0-12
Microsoft azl3 pytorch 2.2.2-10
IBM Concert Software<=1.0.0-3.0.0
pip/torch<2.10.0
2.10.0
debian/pytorch<=1.13.1+dfsg-4, <=2.6.0+dfsg-7
2.12.0+dfsg2-1
ubuntu/pytorch*
ubuntu/pytorch*
ubuntu/pytorch*
ubuntu/pytorch*

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.10.0
  2. Upgrade

    Upgrade debian/pytorch to a version that resolves this vulnerability.

    Fixed in 2.12.0+dfsg2-1
  3. Upgrade

    Upgrade pytorch/pytorch to a version that resolves this vulnerability.

    Patch 999d94b5ede5f4ec111ba7dd144129e2c2725b03

Event History

Mar 31, 2025
CVE Published
via MITRE·03:31 PM
Data Sourced
via MITRE·03:31 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·04:15 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·06:31 PM
Data Sourced
via GitHub·06:31 PM
DescriptionSeverityWeaknessAffected Software
May 29, 2025
Data Sourced
via NVD·03:53 PM
Affected Software
Event
via NVD·03:53 PM
Dec 25, 2025
Data Sourced
via Microsoft·01:06 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·01:06 AM
Affected Software
Sep 22, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2025-3001?

CVE-2025-3001 is classified as a critical vulnerability.

2

What function is affected by CVE-2025-3001?

CVE-2025-3001 affects the torch.lstm_cell function in PyTorch.

3

What type of vulnerability is CVE-2025-3001?

CVE-2025-3001 is a memory corruption vulnerability.

4

How can CVE-2025-3001 be exploited?

CVE-2025-3001 can be exploited through local manipulation.

5

What version of PyTorch is affected by CVE-2025-3001?

CVE-2025-3001 affects PyTorch version 2.6.0.

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