CVE-2025-54949 is a critical-severity (CVSS 9.8) CWE-122 vulnerability in org.pytorch:executorch-android. A fix is available for org.pytorch:executorch-android — see the affected versions and patch details below.
ExecuTorch heap buffer overflow vulnerability
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- A successful exploit gives an attacker total control of the affected component, not partial access.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2025-54949.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.pytorch:executorch-android🐍executorch📦github.com/pytorch/executorchReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven, PyPI, SwiftURL packages — download data is not available via public APIs for these ecosystems.
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
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.pytorch:executorch-android | all versions | 0.7.0org.pytorch:executorch-android:0.7.0 |
| 🐍PyPI | executorch | all versions | 0.7.0pip install --upgrade 'executorch==0.7.0' |
| 📦SwiftURL | github.com/pytorch/executorch | all versions | 0.7.0 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.pytorch:executorch-android, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.pytorch:executorch-android to 0.7.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2025-54949 is resolved across your whole dependency graph.
Workarounds
Constrain what reaches the vulnerable code: limit the size and shape of untrusted input, isolate the affected component in a sandboxed or least-privileged process, and enable the platform's memory-safety mitigations (ASLR, stack protector, hardened allocator) so an out-of-bounds access is more likely to fail closed than to be exploitable.
Frequently Asked Questions
Is CVE-2025-54949 in your dependencies?
Find it across Maven, PyPI, SwiftURL, including transitive dependencies.