ExecuTorch vulnerable to Heap-based Buffer Overflow
Date: 2025-08
Affected: swift/github.com/pytorch/executorch, maven/org.pytorch:executorch-android, pip/executorch
Attack vector: rce
Category: vulnerability-disclosure
Severity: Critical
CVE: CVE-2025-54951
CWE: CWE-122
CVSS: 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)

A group of related buffer overflow vulnerabilities in the loading of ExecuTorch models can cause the runtime to crash and potentially result in code execution or other undesirable effects. This issue affects ExecuTorch prior to commit cea9b23aa8ff78aff92829a466da97461cc7930c.


Mitigations:

Architectural layers (MAESTRO):