CVE-2025-46148Linuxfoundation Pytorch
Medium 5.3 No auth needed
Follow: this CVE · Linuxfoundation · Linuxfoundation Pytorch We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- —
- Auth required
- No
- Published
- Sep 25, 2025
- Updated
- Nov 5, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
What happens
In PyTorch through 2.6.0, when eager is used, nn.PairwiseDistance(p=2) produces incorrect results.
What to do
- Apply the vendor's security update for Pytorch.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | torch |
< 2.7.0 |
2.7.0 |
pip install "torch>=2.7.0" |
Per OSV / GitHub Advisories (PYSEC-2025-198). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| linuxfoundation | pytorch | ≤ 2.6.0 |
Official sources
References
Links published by the sources. Open them with care.
- gist.github.com Third Party Advisory
- gist.github.com Third Party Advisory
- github.com Issue Tracking
- github.com Issue Tracking Patch