CVE-2025-2998

Source
https://cve.org/CVERecord?id=CVE-2025-2998
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-2998.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-2998
Aliases
Downstream
Published
2025-03-31T14:00:12.169Z
Modified
2026-07-15T01:49:07.234369266Z
Severity
  • 4.8 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
PyTorch torch.nn.utils.rnn.pad_packed_sequence memory corruption
Details

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.padpackedsequence. 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/2xxx/CVE-2025-2998.json",
    "cna_assigner": "VulDB",
    "cwe_ids": [
        "CWE-119"
    ]
}
References

Affected packages

Git / github.com/pytorch/pytorch

Affected ranges

Type
GIT
Repo
https://github.com/pytorch/pytorch
Events
Database specific
{
    "cpe": "cpe:2.3:a:linuxfoundation:pytorch:2.6.0:-:*:*:*:python:*:*",
    "source": [
        "AFFECTED_FIELD",
        "CPE_STRING"
    ],
    "extracted_events": [
        {
            "introduced": "2.6.0"
        },
        {
            "last_affected": "2.6.0"
        },
        {
            "introduced": "2.6.0-NA"
        },
        {
            "last_affected": "2.6.0-NA"
        }
    ]
}

Affected versions

2.*
2.6.0
2.6.0-NA
v2.*
v2.6.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-2998.json"