
CVE catalog
CVE-2025-2998
pytorch affected and fixed versions
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.
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.20% · Oct 27, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
Version impact has not been established. The original provider fields are retained below.
Provider details and historical evidence
Original provider fields
{
"package_releases": [
{
"name": "pytorch",
"status": "fixed",
"release": "sid",
"version": "2.14.1+dfsg-1"
},
{
"name": "pytorch",
"status": "fixed",
"release": "forky",
"version": "2.14.1+dfsg-1"
},
{
"name": "pytorch",
"status": "vulnerable",
"release": "trixie",
"version": "2.6.0+dfsg-7"
},
{
"name": "pytorch",
"status": "vulnerable",
"release": "bookworm",
"version": "1.13.1+dfsg-4"
}
],
"fixed_versions": [
{
"bug": 1102230,
"name": "pytorch",
"type": "source",
"origin": null,
"release": "sid",
"urgency": "not yet assigned",
"fixed_version": "2.12.0+dfsg2-1"
},
{
"bug": 1102230,
"name": "pytorch",
"type": "source",
"origin": null,
"release": "forky",
"urgency": "not yet assigned",
"fixed_version": "2.12.0+dfsg2-1"
},
{
"bug": 1102230,
"name": "pytorch",
"type": "source",
"origin": null,
"release": "trixie",
"urgency": "not yet assigned",
"fixed_version": ""
},
{
"bug": 1102230,
"name": "pytorch",
"type": "source",
"origin": null,
"release": "bookworm",
"urgency": "not yet assigned",
"fixed_version": ""
}
],
"distribution_packages": [
{
"name": "torch",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"last_affected": "2.6.0"
}
]
}
],
"ecosystem": "PyPI",
"fixed_version": "",
"provider_record_id": "GHSA-F4HP-RMR7-R7V8"
}
]
}Publisher notes
[trixie] pytorch: Minor issue [bookworm] pytorch: Minor issue
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [libtorch1.13]Unknown
Source package: [pytorch]
Details (2)
1.13.1+dfsg-4· amd64 · bookwormAffected
dsa · pytorch · debian · bookworm; dsa · pytorch · debian · 12
1.13.1+dfsg-4· arm64 · bookwormAffected
dsa · pytorch · debian · bookworm; dsa · pytorch · debian · 12
- [libtorch-dev]Unknown
Source package: [pytorch]
Details (2)
1.13.1+dfsg-4· amd64 · bookwormAffected
dsa · pytorch · debian · bookworm; dsa · pytorch · debian · 12
1.13.1+dfsg-4· arm64 · bookwormAffected
dsa · pytorch · debian · bookworm; dsa · pytorch · debian · 12
- [libtorch-test]Unknown
Source package: [pytorch]
Details (2)
1.13.1+dfsg-4· amd64 · bookwormAffected
dsa · pytorch · debian · bookworm; dsa · pytorch · debian · 12
1.13.1+dfsg-4· arm64 · bookwormAffected
dsa · pytorch · debian · bookworm; dsa · pytorch · debian · 12
- [python3-torch]Unknown
Source package: [pytorch]
Details (2)
1.13.1+dfsg-4· amd64 · bookwormAffected
dsa · pytorch · debian · bookworm; dsa · pytorch · debian · 12
1.13.1+dfsg-4· arm64 · bookwormAffected
dsa · pytorch · debian · bookworm; dsa · pytorch · debian · 12
[Debian 13 (Trixie)]
- [libtorch2.6]Unknown
Source package: [pytorch]
Details (2)
2.6.0+dfsg-7· amd64 · trixieAffected
dsa · pytorch · debian · 13
2.6.0+dfsg-7· arm64 · trixieAffected
dsa · pytorch · debian · 13
- [libtorch-dev]Unknown
Source package: [pytorch]
Details (2)
2.6.0+dfsg-7· amd64 · trixieAffected
dsa · pytorch · debian · 13
2.6.0+dfsg-7· arm64 · trixieAffected
dsa · pytorch · debian · 13
- [libtorch-test]Unknown
Source package: [pytorch]
Details (2)
2.6.0+dfsg-7· amd64 · trixieAffected
dsa · pytorch · debian · 13
2.6.0+dfsg-7· arm64 · trixieAffected
dsa · pytorch · debian · 13
- [python3-torch]Unknown
Source package: [pytorch]
Details (2)
2.6.0+dfsg-7· amd64 · trixieAffected
dsa · pytorch · debian · 13
2.6.0+dfsg-7· arm64 · trixieAffected
dsa · pytorch · debian · 13
Observed:
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2025-2998]
- [https://osv.dev/vulnerability/GHSA-f4hp-rmr7-r7v8]
- [https://security-tracker.debian.org/tracker/CVE-2025-2998]
- [https://wid.cert-bund.de/.well-known/csaf/white/2025/wid-sec-w-2025-0666.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database]