Improper Validation of Syntactic Correctness of Input Affecting torch package, versions [,2.8.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

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-PYTHON-TORCH-13052994
  • published26 Sept 2025
  • disclosed25 Sept 2025
  • creditShaoyu Yang

Introduced: 25 Sep 2025

NewCVE-2025-55553  (opens in a new tab)
CWE-1286  (opens in a new tab)

How to fix?

Upgrade torch to version 2.8.0 or higher.

Overview

torch is a Tensors and Dynamic neural networks in Python with strong GPU acceleration

Affected versions of this package are vulnerable to Improper Validation of Syntactic Correctness of Input in the torch.Tensor.random_() function when a model is compiled with Inductor. An attacker can cause the application to crash or become unresponsive by triggering a syntax error.

CVSS Base Scores

version 4.0
version 3.1