CVEMETERBack to radar
OFFICIAL RECORD · Python packages

CVE-2025-2998

PUBLISHEDOfficial status check: verifiedCVSS 4.0: 4.8 · medium

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 VulDB
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
Assessment source · checked 2026-11-19T12:57:30.210Z

CVSS 3.1 · 5.3 · published by VulDB
CVSS: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 VulDB
CVSS: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 VulDB
AV:L/AC:L/Au:S/C:P/I:P/A:P
Assessment source · checked 2026-11-19T12:57:30.210Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T16:57:41.748ZCISA KEV
cvssverified2026-11-19T12:57:30.210ZCVE Program
epssverified2026-11-19T16:04:40.588ZFIRST EPSS
patchesunknownunknownunknown
affectedverified2026-11-19T12:57:30.210ZCVE Program
lifecycleverified2026-11-19T12:57:30.210ZCVE 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 JSON
OSV · 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 JSON
OSV · 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 JSON

Correction 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

Official status history