CVE-2025-54952: Executorch ExecuTorch Integer Overflow Vulnerability Leads Vulnerability
MODERATECVE-2025-54952 is a MODERATE executorch integer overflow vulnerability leads vulnerability (CWE-680: Integer Overflow to Buffer Overflow) affecting Executorch libraries in the PyPI ecosystem. The issue involves executorch integer overflow vulnerability leads to code execution. Remediation is available in the latest vendor maintenance releases.
CVE-2025-54952 at a Glance
How to Fix CVE-2025-54952
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>=Latest secure release
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-54952, 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 the patched release), 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-680: Integer Overflow to Buffer Overflow, where the product performs a calculation to determine how much memory to allocate, but an integer overflow can occur that causes less memory to be allocated than expected, leading to a buffer overflow. 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-54952 Affected Executorch Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
executorch
|
PyPI |
≤ 0.6.0
|
|
References
Frequently Asked Questions
What is CVE-2025-54952?
Which Executorch versions are affected?
What version fixes CVE-2025-54952?
Is executorch affected?
What CWE is associated with CVE-2025-54952?
How can I check PyPI dependencies for CVE-2025-54952?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-33r8-vrx9-rmcv",
"modified" : "2025-08-08T17:00:01Z",
"published" : "2025-08-08T00:30:26Z",
"aliases" : [ "CVE-2025-54952" ],
"summary" : "ExecuTorch integer overflow vulnerability leads to code execution",
"details" : "An integer overflow vulnerability in the loading of ExecuTorch models can cause smaller-than-expected memory regions to be allocated, potentially resulting in code execution or other undesirable effects. This issue affects ExecuTorch prior to commit 8f062d3f661e20bb19b24b767b9a9a46e8359f2b.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "executorch"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.6.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-54952"
}, {
"type" : "WEB",
"url" : "https://github.com/pytorch/executorch/commit/8f062d3f661e20bb19b24b767b9a9a46e8359f2b"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pytorch/executorch"
}, {
"type" : "WEB",
"url" : "https://www.facebook.com/security/advisories/cve-2025-54952"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-680" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-08-08T17:00:01Z",
"nvd_published_at" : "2025-08-08T00:15:26Z"
}
}