Security mailing lists by PureSourceCode

CVE-2025-2998

MEDIUM 4.8CVSS 4.0

PyTorch is Vulnerable to Memory Consumption through pad_packed_sequence Function

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.

Published
31 Mar 2025
Last modified
17 Jun 2026
Assigned by
cna@vuldb.com
NVD status
Analyzed
Weakness
CWE-119
Also known as
BIT-pytorch-2025-2998GHSA-f4hp-rmr7-r7v8PYSEC-2025-192
Sources
NVDJSONOSV GHSA-f4hp-rmr7-r7v8JSONOSV PYSEC-2025-192JSON

Scores

SourceScored byVersionScoreVector / decision
NVD cna@vuldb.com (Secondary) CVSS 4.0 MEDIUM 4.8 CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
OSV GitHub CVSS 4.0 CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
OSV PyPA CVSS 4.0 CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD cna@vuldb.com (Secondary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
OSV GitHub CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
NVD cna@vuldb.com (Secondary) CVSS 2.0 MEDIUM 4.3 AV:L/AC:L/Au:S/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD linuxfoundation pytorch
cpe:2.3:a:linuxfoundation:pytorch:2.6.0:-:*:*:*:python:*:*
= 2.6.0
OSV PyPI torch <= 2.6.0
OSV PyPI torch <= 2.6.0-NA

References

History

  • 25 Nov 2026 20:57 UTC · NVD: first stored (published 31 Mar 2025)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 31 Mar 2025)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 31 Mar 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.