CVE-2025-30402
Java vulnerability analysis and mitigation

Overview

A heap-buffer-overflow vulnerability (CVE-2025-30402) was discovered in ExecuTorch's method loading functionality. The vulnerability affects ExecuTorch versions prior to commit 93b1a0c15f7eda49b2bc46b5b4c49557b4e9810f. This security issue was disclosed on July 11, 2025, and received a CVSS v3.1 base score of 8.1 (HIGH) (NVD, Miggo).

Technical details

The vulnerability resides in the calculatenbytes function within runtime/executor/methodmeta.cpp. The original implementation performed simple multiplication of tensor dimensions without proper integer overflow checks. When calculating memory size for tensors, the function could experience an integer overflow, leading to the allocation of an incorrectly sized buffer. The vulnerability is tracked as CWE-122 (Heap-based Buffer Overflow) (Miggo).

Impact

If exploited, this vulnerability can cause the runtime to crash and potentially lead to code execution. The heap-buffer-overflow condition could allow attackers to manipulate memory in ways that could compromise system security (NVD).

Mitigation and workarounds

The vulnerability has been patched in commit 93b1a0c15f7eda49b2bc46b5b4c49557b4e9810f. The fix implements proper integer overflow checks in the calculate_nbytes function, replacing the simple multiplication of dimensions with a version that checks for overflow at each step. Users should update to a version of ExecuTorch that includes this commit (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-14306CRITICAL10
  • JavaJava
  • net.sf.robocode:robocode.core
NoYesDec 09, 2025
CVE-2025-14307CRITICAL9.3
  • JavaJava
  • net.sf.robocode:robocode.battle
NoYesDec 09, 2025
CVE-2025-66566HIGH8.2
  • JavaJava
  • at.yawk.lz4:lz4-java
NoYesDec 05, 2025
CVE-2025-66623HIGH7.4
  • JavaJava
  • io.strimzi:strimzi
NoYesDec 05, 2025
GHSA-93fv-4pm9-xp28MEDIUM6.9
  • JavaJava
  • net.dv8tion:jda
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management