Heap-based Buffer Overflow Affecting pytorch/executorch package, versions [,0.7.0-rc1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (17th 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-PYTORCHEXECUTORCH-10734111
  • published14 Jul 2025
  • disclosed11 Jul 2025
  • creditUnknown

Introduced: 11 Jul 2025

CVE-2025-30402  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade pytorch/executorch to version 0.7.0-rc1 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow via the loading process in the function ExecuTorch. An attacker can cause the runtime to crash or potentially execute arbitrary code by supplying specially crafted input.

References

CVSS Base Scores

version 4.0
version 3.1