
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-54951 is a group of related heap-based buffer overflow vulnerabilities in the model-loading logic of Meta's ExecuTorch on-device AI runtime. These flaws can cause the runtime to crash and potentially enable arbitrary code execution or other undesirable effects. The vulnerability affects all ExecuTorch versions prior to commit cea9b23aa8ff78aff92829a466da97461cc7930c, published on August 7, 2025. It carries a CVSS v3.1 base score of 9.8 (Critical) (Red Hat Advisory, ENISA EUVD).
The root cause is a missing bounds check on tensor dimension counts during model parsing, classified as CWE-122 (Heap-based Buffer Overflow). Specifically, the parseTensor functions in both tensor_parser_aten.cpp and tensor_parser_portable.cpp did not validate that a tensor's number of dimensions (ndim / dim) was within the defined kTensorDimensionLimit before using that value to allocate or copy data into fixed-size heap buffers. An attacker can craft a malicious ExecuTorch model file with an excessively large tensor rank, which when loaded by the runtime triggers the overflow. The fix adds an ET_CHECK_OR_RETURN_ERROR guard that rejects any tensor whose rank exceeds kTensorDimensionLimit before any buffer operations occur (GitHub Commit).
Successful exploitation can cause the ExecuTorch runtime to crash (denial of service) and, in more severe scenarios, enable an attacker to execute arbitrary code on the host system. Because the attack vector is network-based and requires no authentication or user interaction, a remote attacker who can supply a crafted model file to an ExecuTorch-powered application could achieve full compromise of confidentiality, integrity, and availability. Applications performing on-device AI inference — including mobile, embedded, and server deployments — that load externally sourced or user-supplied model files are at greatest risk (Red Hat Advisory, ENISA EUVD).
As of the time of publication, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation (Red Hat Advisory). The EPSS score is approximately 0.019%, reflecting a currently low probability of near-term exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported. Detection signatures have been published by Qualys (detection IDs 5005027 and 5005667) (Feedly).
.pte format), particularly those running versions prior to commit cea9b23aa8ff78aff92829a466da97461cc7930c.sizes field containing a number of dimensions exceeding kTensorDimensionLimit (the maximum allowed tensor rank).parseTensor function in either tensor_parser_aten.cpp or tensor_parser_portable.cpp.InvalidProgram or messages referencing "Tensor rank too large" (present only in patched versions); unexpected crashes or segmentation faults in ExecuTorch-based processes..pte model files with anomalously large tensor dimension counts in model loading directories.The primary remediation is to upgrade ExecuTorch to any version at or after commit cea9b23aa8ff78aff92829a466da97461cc7930c, which adds the required bounds check on tensor dimension counts (GitHub Commit, Meta Advisory). As interim mitigations, organizations should validate and sanitize all ExecuTorch model inputs before loading, restrict network-level access to model-loading endpoints, and avoid loading model files from untrusted sources. A comprehensive security review of all ExecuTorch deployments is also recommended.
The vulnerability was assigned by Meta (Facebook) and received coverage in The Hacker News weekly security recap for the week of August 11, 2025, which grouped it among notable vulnerabilities disclosed that week (The Hacker News). Red Hat published a tracking advisory, and ENISA recorded the issue in the European Vulnerability Database. No significant independent researcher commentary or broader community debate has been observed beyond standard vulnerability tracking.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."