Description
In PyTorch through 2.6.0, when eager is used, nn.PairwiseDistance(p=2) produces incorrect results.
Affected products
linuxfoundation: pytorch
References4
- github.com/pytorch/pytorch/pull/152993 Issue TrackingPatch
- gist.github.com/shaoyuyoung/4bcefba4004f8271e64b5185c95a248a Third Party Advisory
- gist.github.com/shaoyuyoung/65a587a579dfdff887b9b35bb79b9093 Third Party Advisory
- github.com/pytorch/pytorch/issues/151198 Issue Tracking
Metrics
- CVSS 3.1
-
5.3
MEDIUM
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - EPSS — exploit probability
- 0% percentile: 35 · as of 9 November 2026
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.