5.3

CVE-2025-2998: PyTorch torch.nn.utils.rnn.pad_packed_sequence memory corruption

Analyzed
AliasesGHSA-f4hp-rmr7-r7v8BIT-pytorch-2025-2998PYSEC-2025-192
Published 31-03-2025Last modified 31-03-2025

Vulnerability summary

CVE-2025-2998 is a medium (CVSS 5.3) vulnerability in linuxfoundation pytorch. EPSS estimates a 0.20% chance of exploitation in the next 30 days, higher than 10.6% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 4.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.3/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.20%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Timeline

  1. 31-03-2025
    PublishedVulnerability first disclosed.
  2. 31-03-2025
    Last modifiedVulnerability information updated.

Description

A vulnerability was found in PyTorch 2.6.0. It has been declared as critical. Affected by this vulnerability is the function torch.nn.utils.rnn.pad_packed_sequence. The manipulation leads to memory corruption. Local access is required to approach this attack. The exploit has been disclosed to the public and may be used.

CVSS metrics

12 scores · 6 sources · 4 versions

EPSS trend

Probability

0.20%

Chance of exploitation in the next 30 days

Percentile

11%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.20% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Pytorch

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard5 products
  • py3.10-torch-2.3-cuda-12.4All versions (No fix recorded)
  • py3.10-torch-2.6-cuda-12.4All versions (No fix recorded)
  • py3.11-torch-2.6-cuda-12.4All versions (No fix recorded)
  • py3.12-torch-2.6-cuda-12.4All versions (No fix recorded)
  • py3.13-torch-2.6-cuda-12.4All versions (No fix recorded)
Debian1 product
  • pytorchAll versions (No fix recorded) | < 2.12.0+dfsg2-1
Linuxfoundation1 product
PyPI1 product
  • torch≤ 2.6.0 | ≤ 2.6.0-NA
Ubuntu1 product
  • pytorchAll versions (No fix recorded)

5 vendors · 9 products

References

14 links
Show all 14 references