CVE-2025-2998
PyTorch torch.nn.utils.rnn.pad_packed_sequence memory corruption
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.202% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:57:41.748Z. Public exploit availability is not used to set this status.
CVSS 4.0 · 4.8 · published by VulDBCVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
Assessment source · checked 2026-11-19T12:57:30.210Z
CVSS 3.1 · 5.3 · published by VulDBCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Assessment source · checked 2026-11-19T12:57:30.210Z
CVSS 3.0 · 5.3 · published by VulDBCVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Assessment source · checked 2026-11-19T12:57:30.210Z
CVSS 2.0 · 4.3 · published by VulDBAV:L/AC:L/Au:S/C:P/I:P/A:P
Assessment source · checked 2026-11-19T12:57:30.210Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:57:41.748Z | CISA KEV |
| cvss | verified | 2026-11-19T12:57:30.210Z | CVE Program |
| epss | verified | 2026-11-19T16:04:40.588Z | FIRST EPSS |
| patches | unknown | unknown | unknown |
| affected | verified | 2026-11-19T12:57:30.210Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:57:30.210Z | CVE Program |
Affected versions and configuration
n/a PyTorch; default status: unknown: 2.6.0 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "n/a",
"product": "PyTorch",
"versions": [
{
"status": "affected",
"version": "2.6.0"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2025-2998",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-03-31T15:27:13.920920Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-03-31T15:27:27.537Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-f4hp-rmr7-r7v8",
"aliases": [
"BIT-pytorch-2025-2998",
"CVE-2025-2998",
"PYSEC-2025-192"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"last_affected": "2.6.0"
}
]
}
],
"package": {
"name": "torch",
"purl": "pkg:pypi/torch",
"ecosystem": "PyPI"
},
"versions": [
"1.0.0",
"1.0.1",
"1.1.0",
"1.10.0",
"1.10.1",
"1.10.2",
"1.11.0",
"1.12.0",
"1.12.1",
"1.13.0",
"1.13.1",
"1.2.0",
"1.3.0",
"1.3.1",
"1.4.0",
"1.5.0",
"1.5.1",
"1.6.0",
"1.7.0",
"1.7.1",
"1.8.0",
"1.8.1",
"1.9.0",
"1.9.1",
"2.0.0",
"2.0.1",
"2.1.0",
"2.1.1",
"2.1.2",
"2.2.0",
"2.2.1",
"2.2.2",
"2.3.0",
"2.3.1",
"2.4.0",
"2.4.1",
"2.5.0",
"2.5.1",
"2.6.0"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-f4hp-rmr7-r7v8/GHSA-f4hp-rmr7-r7v8.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
},
{
"type": "CVSS_V4",
"score": "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"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-2998",
"type": "ADVISORY"
},
{
"url": "https://github.com/pytorch/pytorch/issues/149622",
"type": "WEB"
},
{
"url": "https://github.com/pytorch/pytorch/issues/149622#issue-2935495265",
"type": "WEB"
},
{
"url": "https://github.com/pytorch/pytorch/commit/494518046816d29099b7d056a74ffa5c244fdcdd",
"type": "WEB"
},
{
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2025-192.yaml",
"type": "WEB"
},
{
"url": "https://github.com/pytorch/pytorch",
"type": "PACKAGE"
},
{
"url": "https://vuldb.com/?ctiid.302047",
"type": "WEB"
},
{
"url": "https://vuldb.com/?id.302047",
"type": "WEB"
},
{
"url": "https://vuldb.com/?submit.524151",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-119"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2025-03-31T14:15:20Z",
"github_reviewed_at": "2026-06-09T21:56:31Z"
}
}Archived source JSONOSV · osv · full conditions
{
"id": "PYSEC-2025-192",
"aliases": [
"BIT-pytorch-2025-2998",
"CVE-2025-2998",
"GHSA-f4hp-rmr7-r7v8"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"last_affected": "2.6.0-NA"
}
]
}
],
"package": {
"name": "torch",
"purl": "pkg:pypi/torch",
"ecosystem": "PyPI"
},
"versions": [],
"database_specific": {
"source": "https://github.com/pypa/advisory-database/blob/main/vulns/torch/PYSEC-2025-192.yaml"
},
"ecosystem_specific": {}
}
],
"severity": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://vuldb.com/?id.302047",
"type": "ADVISORY"
},
{
"url": "https://vuldb.com/?submit.524151",
"type": "ADVISORY"
},
{
"url": "https://github.com/pytorch/pytorch/issues/149622",
"type": "REPORT"
},
{
"url": "https://github.com/pytorch/pytorch/issues/149622#issue-2935495265",
"type": "REPORT"
},
{
"url": "https://vuldb.com/?ctiid.302047",
"type": "REPORT"
},
{
"url": "https://github.com/advisories/GHSA-f4hp-rmr7-r7v8",
"type": "ADVISORY"
}
],
"relatedGitRanges": [],
"database_specific": {}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
No correction has been verified in the connected records. This does not mean the system is secure or that no vendor correction exists.
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:22.826ZArchived source JSON
Source publication: 2025-03-31T15:30:48.000Z
Source modification: 2026-06-09T22:11:09.050ZDocument fingerprint
243300a06693c5fdacf54ea902c0850a6bf9245d7ec7a35904810c5eb34314d8 - OSVConsulted: 2026-11-19T12:52:22.826ZArchived source JSON
Source publication: 2025-03-31T14:15:20.370Z
Source modification: 2026-06-10T17:02:43.772ZDocument fingerprint
243300a06693c5fdacf54ea902c0850a6bf9245d7ec7a35904810c5eb34314d8 - CVE ProgramConsulted: 2026-11-19T12:57:30.210ZArchived source JSON
Source publication: 2025-03-31T14:00:12.169Z
Source modification: 2025-03-31T15:27:27.537ZDocument fingerprint
ac3d942e63b9802abaf289edf7be7d7ca4b06890aa50be06b0da2267a755ce5b - CISA KEVConsulted: 2026-11-19T16:57:41.748ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:40.588ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
f828727fd2419e9ee62887077d52e76b99e46a1d7a1ce89e08e7e861a70ba109
Official status history
- UNKNOWN → PUBLISHED · · evidence