Incorrect Bitwise Shift of Integer Affecting pytorch/pytorch package, versions [2.6.0-rc1,2.7.0-rc1)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.05% (14th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-PYTORCHPYTORCH-13052815
  • published26 Sept 2025
  • disclosed25 Sept 2025
  • creditShaoyu Yang

Introduced: 25 Sep 2025

NewCVE-2025-46152  (opens in a new tab)
CWE-1335  (opens in a new tab)

How to fix?

Upgrade pytorch/pytorch to version 2.7.0-rc1 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Bitwise Shift of Integer in the torch.bitwise_right_shift() function. An attacker can modify data integrity by leveraging local access with low privileges even if config.fallback_random is set to True.

CVSS Base Scores

version 4.0
version 3.1