CVE-2025-54949 ExecuTorch heap buffer overflow vulnerability
Heap buffer overflow in ExecuTorch model loading allows attackers to execute arbitrary code via malicious models.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-54949?
CVE-2025-54949 is a critical memory corruption vulnerability in Meta Platforms, Inc ExecuTorch, published on 7 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A heap buffer overflow vulnerability in the loading of ExecuTorch models can potentially result in code execution or other undesirable effects. This issue affects ExecuTorch prior to commit ede82493dae6d2d43f8c424e7be4721abe5242be
Weakness: CWE-122
Which versions are affected by CVE-2025-54949?
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 |
org.pytorch:executorch-android Maven | All versions | 0.7.0 |
github.com/pytorch/executorch SwiftURL | All versions | 0.7.0 |
1 more packages
github.com/pytorch/executorch SwiftURL | All versions | 0.7.0 |
How do I fix CVE-2025-54949?
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-54949 being exploited?
There is no known exploitation of CVE-2025-54949 in the wild and no public exploit code.
Sources
Also known as GHSA-9m39-3mf3-xwch, PYSEC-2026-333.