# CVE-2025-55558: A buffer overflow occurs in pytorch v2.7.0 when a PyTorch model consists of torch.nn.Conv2d, torch.nn.functional.hardshrink, and torch.Tens…

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2025-09-25T00:00:00.000Z
- Modified: 2026-11-05T23:10:00.150Z
- Also known as: PYSEC-2025-208, BIT-PYTORCH-2025-55558
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## Description

A buffer overflow occurs in pytorch v2.7.0 when a PyTorch model consists of torch.nn.Conv2d, torch.nn.functional.hardshrink, and torch.Tensor.view-torch.mv() and is compiled by Inductor, leading to a Denial of Service (DoS).

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- linuxfoundation pytorch: up to 2.7.0
- torch (PyPI): before 2.7.1
- pytorch (Bitnami): before 2.7.1

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/pytorch/pytorch/issues/151523> (issue-tracking, report)
- <https://github.com/pytorch/pytorch/pull/151887> (fix, issue-tracking, patch)
- <https://gist.github.com/shaoyuyoung/0e7d2a586297ae9c8ed14d8706749efc> (advisory, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-55558> (web)

## Sources

- CVE List: [CVE-2025-55558](https://www.cve.org/CVERecord?id=CVE-2025-55558), CVE Terms of Use, modified 2025-09-26
- NVD: [CVE-2025-55558](https://nvd.nist.gov/vuln/detail/CVE-2025-55558), Public domain, modified 2026-11-05
- PyPA Advisory Database: [PYSEC-2025-208](https://osv.dev/vulnerability/PYSEC-2025-208), CC-BY-4.0, modified 2026-05-20
- Bitnami Vulnerability Database: [BIT-PYTORCH-2025-55558](https://osv.dev/vulnerability/BIT-PYTORCH-2025-55558), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-55558 · Whole record: https://cve.day/CVE-2025-55558.json · Rebuilt by cve.day 2026-11-25T22:59:05.182Z
