CVE-2025-30402 ExecuTorch vulnerable to Heap-based Buffer Overflow attack
Heap-buffer-overflow in ExecuTorch method loading allows attackers to crash the runtime or potentially execute arbitrary code.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-30402?
CVE-2025-30402 is a high-severity memory corruption vulnerability in Meta Platforms, Inc ExecuTorch, published on 11 Jul 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
A heap-buffer-overflow vulnerability in the loading of ExecuTorch methods can cause the runtime to crash and potentially result in code execution or other undesirable effects. This issue affects ExecuTorch prior to commit 93b1a0c15f7eda49b2bc46b5b4c49557b4e9810f
Which versions are affected by CVE-2025-30402?
7 open source packages ship an affected version, including executorch, org.pytorch:executorch-android and github.com/pytorch/executorch.
| Package | Affected | Fixed in |
|---|---|---|
executorch PyPI | All versions | 0.7.0 |
executorch PyPI | All versions | 0.7.0 |
executorch PyPI | All versions | 0.7.0 |
org.pytorch:executorch-android Maven | All versions | 0.7.0-rc1 |
org.pytorch:executorch-android Maven | All versions | 0.7.0-rc1 |
github.com/pytorch/executorch SwiftURL | All versions | 0.7.0-rc1 |
1 more packages
github.com/pytorch/executorch SwiftURL | All versions | 0.7.0-rc1 |
How do I fix CVE-2025-30402?
Upgrade executorch to 0.7.0 or later.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2025-30402 being exploited?
There is no known exploitation of CVE-2025-30402 in the wild and no public exploit code.
Sources
Also known as GHSA-h952-963h-rv99, PYSEC-2026-1352.