Vulnerabilities in pkg:maven/org.pytorch/executorch-android
PACKAGECVE-2025-54951 is a CRITICAL (CVSS 9.8) executorch vulnerable to heap-based buffer vulnerability (CWE-122: Heap-based Buffer Overflow) affecting Executorch libraries in the PyPI ecosystem. The issue involves executorch vulnerable to heap-based buffer overflow. Remediation is available by upgrading affected packages to version 0.7.0.
pkg:maven/org.pytorch/executorch-android
Vulnerability advisories affecting package pkg:maven/org.pytorch/executorch-android. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-xc7w-r669-48pf | CVE-2025-54951 | CRITICAL | ExecuTorch vulnerable to Heap-based Buffer Overflow |
| GHSA-hj95-mhgf-jxc4 | CVE-2025-30404 | CRITICAL | ExecuTorch integer overflow vulnerability |
| GHSA-h952-963h-rv99 | CVE-2025-30402 | HIGH | ExecuTorch vulnerable to Heap-based Buffer Overflow attack |
| GHSA-f9hx-c6jf-3qxm | CVE-2025-54950 | CRITICAL | ExecuTorch out-of-bounds access vulnerability |
| GHSA-9m39-3mf3-xwch | CVE-2025-54949 | CRITICAL | ExecuTorch heap buffer overflow vulnerability |
| GHSA-84m3-f99p-cqx5 | CVE-2025-30405 | CRITICAL | ExecuTorch integer overflow vulnerability |
CVE-2025-54951 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2025-54951
To remediate this vulnerability, upgrade all affected Executorch dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install executorch>=0.7.0
<dependency>
<groupId>org.pytorch</groupId>
<artifactId>executorch-android</artifactId>
<version>0.7.0</version>
</dependency>
Upgrade github.com/pytorch/executorch to 0.7.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show executorch
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-54951, inspect your installed packages using pip:
pip show executorch
Analyze the terminal output to locate any version of Executorch in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.7.0), your application is affected.
Note: The pip show executorch command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-122: Heap-based Buffer Overflow, where a heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc(). In Executorch, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-54951 Affected Executorch Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
executorch
|
PyPI |
< 0.7.0
|
0.7.0
|
|
org.pytorch:executorch-android
|
Maven |
< 0.7.0
|
0.7.0
|
|
github.com/pytorch/executorch
|
SwiftURL |
< 0.7.0
|
0.7.0
|
References
Frequently Asked Questions
What is CVE-2025-54951?
Which Executorch versions are affected?
What version fixes CVE-2025-54951?
Is executorch affected?
Is executorch-android affected?
What is the CVSS score of CVE-2025-54951?
What CWE is associated with CVE-2025-54951?
How can I check PyPI dependencies for CVE-2025-54951?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xc7w-r669-48pf",
"modified" : "2026-05-07T13:26:50Z",
"published" : "2025-08-08T00:30:26Z",
"aliases" : [ "CVE-2025-54951" ],
"summary" : "ExecuTorch vulnerable to Heap-based Buffer Overflow",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "executorch"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.7.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.pytorch:executorch-android"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.7.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "SwiftURL",
"name" : "github.com/pytorch/executorch"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.7.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-54951"
}, {
"type" : "WEB",
"url" : "https://github.com/pytorch/executorch/commit/cea9b23aa8ff78aff92829a466da97461cc7930c"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pytorch/executorch"
}, {
"type" : "WEB",
"url" : "https://www.facebook.com/security/advisories/cve-2025-54951"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-122" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2025-08-12T18:52:59Z",
"nvd_published_at" : "2025-08-07T23:15:26Z"
}
}