CVE-2025-30405: Executorch ExecuTorch Integer Overflow Vulnerability Vulnerability

CRITICAL
Advisory Identifier: GHSA-84m3-f99p-cqx5
CVSS 9.8
CWE-190
Published
Advisory Summary

CVE-2025-30405 is a CRITICAL (CVSS 9.8) executorch integer overflow vulnerability vulnerability (CWE-190: Integer Overflow or Wraparound) affecting Executorch libraries in the PyPI ecosystem. The issue involves executorch integer overflow vulnerability. Remediation is available by upgrading affected packages to version 0.7.0.

CVE-2025-30405 at a Glance

CVE Identifier CVE-2025-30405
GHSA Identifier GHSA-84m3-f99p-cqx5
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-190: Integer Overflow or Wraparound
Affected Product Executorch
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2025-30405

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: 0.7.0
pip install executorch>=0.7.0
github.com/pytorch/executorch fixed: 0.7.0
Upgrade github.com/pytorch/executorch to 0.7.0
org.pytorch:executorch-android fixed: 0.7.0
<dependency>
    <groupId>org.pytorch</groupId>
    <artifactId>executorch-android</artifactId>
    <version>0.7.0</version>
</dependency>
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-30405, 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-190: Integer Overflow or Wraparound, where the product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. this occurs when an integer value is incremented to a value that is too large to store in the associated representation. when this occurs, the value may become a very small or negative number. 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 objects to be placed outside their allocated memory area, potentially resulting in code execution or other undesirable effects. This issue affects ExecuTorch prior to commit 0830af8207240df8d7f35b984cdf8bc35d74fa73.

CVE-2025-30405 Affected Executorch Versions

3 component(s)
Fixed Versions:
0.7.0
Product / Package Ecosystem Affected Versions Fixed Version
executorch
PyPI
< 0.7.0
0.7.0
github.com/pytorch/executorch
SwiftURL
< 0.7.0
0.7.0
org.pytorch:executorch-android
Maven
< 0.7.0
0.7.0

References

Frequently Asked Questions

What is CVE-2025-30405?
CVE-2025-30405 is a security vulnerability in Executorch involving ExecuTorch integer overflow vulnerability under CWE-190: Integer Overflow or Wraparound.
Which Executorch versions are affected?
Affected versions include releases prior to 0.7.0 across affected packages: executorch, github.com/pytorch/executorch, org.pytorch:executorch-android.
What version fixes CVE-2025-30405?
Upgrading to 0.7.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is executorch affected?
Yes, executorch is affected in releases prior to 0.7.0. Upgrade your dependency to 0.7.0 or later.
Is github.com/pytorch/executorch affected?
Yes, github.com/pytorch/executorch is affected in releases prior to 0.7.0. Upgrade your dependency to 0.7.0 or later.
What is the CVSS score of CVE-2025-30405?
CVE-2025-30405 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2025-30405?
CVE-2025-30405 is classified under CWE-190: Integer Overflow or Wraparound (The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.).
How can I check PyPI dependencies for CVE-2025-30405?
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-84m3-f99p-cqx5",
  "modified" : "2026-05-07T13:24:36Z",
  "published" : "2025-08-08T00:30:26Z",
  "aliases" : [ "CVE-2025-30405" ],
  "summary" : "ExecuTorch integer overflow vulnerability",
  "details" : "An integer overflow vulnerability in the loading of ExecuTorch models can cause objects to be placed outside their allocated memory area, potentially resulting in code execution or other undesirable effects. This issue affects ExecuTorch prior to commit 0830af8207240df8d7f35b984cdf8bc35d74fa73.",
  "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-30405"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pytorch/executorch/commit/0830af8207240df8d7f35b984cdf8bc35d74fa73"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pytorch/executorch"
  }, {
    "type" : "WEB",
    "url" : "https://www.facebook.com/security/advisories/cve-2025-30405"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-190" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-08-12T18:49:11Z",
    "nvd_published_at" : "2025-08-07T23:15:26Z"
  }
}