WebAssembly Binaryen
CVE-2025-14956
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local system access
-
DeliveryCraft malicious WebAssembly binary with oversized export record
-
ExploitInvoke Binaryen parser on crafted binary
-
ExecutionTrigger buffer overflow in readExport function
-
PersistRead or corrupt limited heap memory
-
ImpactLeak information or cause minor data integrity loss
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, buffer size validation
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires: (1) local access to the target system (AV:L), (2) an authenticated user account with low privileges or above (PR:L), (3) ability to place or deliver a malicious WebAssembly binary file to be parsed by Binaryen tools, and (4) execution of Binaryen's parser on that file (e.g., wasm-opt, wasm-dis, or programmatic use of libbinaryen). The vulnerability does NOT execute in remote contexts or affect systems where untrusted users cannot invoke Binaryen. Default installations of Binaryen without external input handling are not automatically vulnerable; active parsing of attacker-controlled WebAssembly binaries is required. Non-default configurations (e.g., server-side WebAssembly compilation services accepting public uploads) increase risk significantly. |
| Impact | Despite CVSS 1.9 and publicly available proof-of-concept code, real-world risk is minimal. EPSS of 0.04% (13th percentile) strongly contradicts the presence of POC, indicating this vulnerability is narrow and rarely encountered in practice. The CVSS vector reveals critical limiting factors: AV:L (local-only), PR:L (low privilege required), and E:P (proof-of-concept exists). Scope is unchanged (S:X unspecified but AV:L implies same privilege level unchanged), and impact is confined to limited information disclosure and integrity compromise (VC:L, VI:L, VA:L, with no scope change). This is not a critical code execution vulnerability despite the buffer overflow class. The gap between POC availability and EPSS suggests exploitation requires specific, non-standard conditions or the vulnerability is challenging to weaponize for meaningful impact. Verdict: low priority unless Binaryen is core to your supply chain or embedded in auto-updating tools. |
| Exploit ScenarioDerived | An attacker with local system access creates a malicious WebAssembly binary module with a crafted export section designed to overflow a heap buffer during parsing. They run the Binaryen parser (e.g., via wasm-opt or similar tools) on this binary, triggering the buffer overflow in readExport. The overflow causes information disclosure (reading adjacent heap memory) or limited data corruption, but does not yield code execution due to limited privilege scope and the constrained impact vectors. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
Heap-based buffer overflow in WebAssembly Binaryen up to version 125 within the WasmBinaryReader::readExport function allows local attackers with low privileges to cause limited information disclosure and integrity compromise. The vulnerability requires local access and authenticated privileges but has extremely low real-world exploitability with EPSS score of 0.04% despite publicly available proof-of-concept code, indicating this is a narrow, low-impact issue unlikely to be prioritized in most threat environments.
RemediationAI
Apply vendor patch immediately by updating to a version containing commit 4f52bff8c4075b5630422f902dd92a0af2c9f398 or later. Pull request #8092 on the GitHub repository https://github.com/WebAssembly/binaryen/ tracks the fix. For environments unable to patch immediately, restrict execution of untrusted WebAssembly binary files and limit local user access to systems running Binaryen tools, since the attack requires local access with low-privilege credentials. If Binaryen is part of a build pipeline, validate that all WebAssembly input binaries are from trusted sources and consider sandboxing the parser process with reduced privileges or process isolation.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability exists in the binary WebAssembly parser (src/wasm/wasm-binary.cpp), specifically within the export section reading logic of WasmBinaryReader. The heap-based buffer overflow (CWE-119) occurs when the readExport function processes malformed or oversized export records in WebAssembly binary files without proper bounds checking. This is a classic memory safety issue in C++ code that manipulates heap-allocated buffers during binary format parsing. The attack requires crafting a malicious WebAssembly binary module with an oversized export definition that triggers the overflow when parsed locally.
Know when Webassembly gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
A vulnerability was determined in WebAssembly Binaryen up to 125. Affected by this issue is the function WasmBinaryReader::readExport of the file src/wasm/wasm-binary.cpp. This manipulation causes heap-based buffer overflow. It is possible to launch the attack on the local host. The exploit has been publicly disclosed and may be utilized. Patch name: 4f52bff8c4075b5630422f902dd92a0af2c9f398. It is recommended to apply a patch to fix this issue.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Affected Products (CPE)CVE.org
More in Webassembly
View allWasmtime versions before 36.0.19, and the 37.0.0 through 42.x line, can silently miscompile attacker-supplied WebAssembl
WebAssembly v1.0.29 was discovered to contain a heap overflow via the component component wabt::Node::operator. Rated hi
wasm-interp v1.0.29 was discovered to contain a heap overflow via the component std::vector<wabt::Type, std::allocator<w
An issue in wasm2c 1.0.32, wasm2wat 1.0.32, wasm-decompile 1.0.32, and wasm-validate 1.0.32 allows attackers to cause a
A Denial of Service vulnerability exits in Binaryen 103 due to an assertion abort in wasm::handle_unreachable. Rated hig
Sandbox escape in wasm2c (wabt ≤ 1.0.41) allows an attacker controlling WebAssembly content to achieve arbitrary read/wr
wasm-interp v1.0.29 was discovered to contain an out-of-bounds read via the component OnReturnCallIndirectExpr->GetRetur
wasm-interp v1.0.29 was discovered to contain an out-of-bounds read via the component OnReturnCallExpr->GetReturnCallDro
An issue was discovered in Binaryen 1.38.32. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitabl
An issue was discovered in Binaryen 1.38.32. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitabl
wasm::WasmBinaryBuilder::readUserSection in wasm-binary.cpp in Binaryen 1.38.22 triggers an attempt at excessive memory
In Binaryen 1.38.22, there is a use-after-free problem in wasm::WasmBinaryBuilder::visitCall in wasm-binary.cpp. Rated m
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB