---
id: CVE-2025-30404
aliases:
  - GHSA-hj95-mhgf-jxc4
  - PYSEC-2026-335
title: ExecuTorch integer overflow vulnerability
summary: ExecuTorch integer overflow vulnerability
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
vendor: executorch
product: executorch
ecosystem: pip
affected:
  - executorch < 0.7.0
  - 'org.pytorch:executorch-android < 0.7.0'
  - github.com/pytorch/executorch < 0.7.0
patched:
  - executorch 0.7.0
  - 'org.pytorch:executorch-android 0.7.0'
  - github.com/pytorch/executorch 0.7.0
published: '2025-08-08'
updated: '2026-10-27'
sourceUpdated: '2026-10-27T16:45:04.544792243Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-hj95-mhgf-jxc4'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-30404'
  - url: >-
      https://github.com/pytorch/executorch/commit/d158236b1dc84539c1b16843bc74054c9dcba006
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/executorch/PYSEC-2026-335.yaml
  - url: 'https://github.com/pytorch/executorch'
  - url: 'https://pypi.org/project/executorch'
  - url: 'https://www.facebook.com/security/advisories/cve-2025-30404'
  - url: 'https://github.com/advisories/GHSA-hj95-mhgf-jxc4'
tags:
  - osv
  - pip
  - ghsa
epss: 0.00619
epssPercentile: 0.49448
cwe:
  - CWE-190
ingestedAt: '2026-10-27T16:32:34.332Z'
---

## Overview

An integer overflow vulnerability in the loading of ExecuTorch models can cause overlapping allocations, potentially resulting in code execution or other undesirable effects. This issue affects ExecuTorch prior to commit d158236b1dc84539c1b16843bc74054c9dcba006.

## Affected packages

- `executorch < 0.7.0`
- `org.pytorch:executorch-android < 0.7.0`
- `github.com/pytorch/executorch < 0.7.0`

## Remediation

Upgrade to a patched release:

- `executorch 0.7.0`
- `org.pytorch:executorch-android 0.7.0`
- `github.com/pytorch/executorch 0.7.0`
