CVE-2025-54952: Executorch ExecuTorch Integer Overflow Vulnerability Leads Vulnerability

MODERATE
Advisory Identifier: GHSA-33r8-vrx9-rmcv
CWE-680
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-54952
GHSA Identifier GHSA-33r8-vrx9-rmcv
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-680: Integer Overflow to Buffer Overflow
Affected Product Executorch
Package Ecosystem PyPI
Published Date
Last Updated

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.

executorch fixed: Latest secure release
pip install executorch>=Latest secure release
Verify Direct and Transitive Dependencies

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

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.

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?
CVE-2025-54952 is a security vulnerability in Executorch involving ExecuTorch integer overflow vulnerability leads to code execution under CWE-680: Integer Overflow to Buffer Overflow.
Which Executorch versions are affected?
Affected versions include releases prior to current release patches across affected packages: executorch.
What version fixes CVE-2025-54952?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is executorch affected?
Yes, executorch is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2025-54952?
CVE-2025-54952 is classified under CWE-680: Integer Overflow to Buffer Overflow (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.).
How can I check PyPI dependencies for CVE-2025-54952?
Run the dependency tree command: 'pip show executorch'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}