WebAssembly Binaryen
CVE-2025-14957
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local authenticated access
-
DeliverySupply malicious Index argument
-
ExploitInvoke vulnerable IRBuilder function
-
ExecutionTrigger null pointer dereference
-
ImpactCrash compiler process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource release
|
| Exploitation Conditions | Exploitation requires local authenticated access to a system running Binaryen (AV:L, PR:L per CVSS vector). The attacker must be able to invoke the Binaryen compiler toolchain directly or supply a crafted WebAssembly input file that exercises the vulnerable code path - this means the vulnerability is restricted to build environments, development machines, or CI/CD systems where Binaryen is installed and the attacker has user-level privileges. Default configurations of Binaryen as a compiler library do not inherently expose this vulnerability to remote or unauthenticated access; exploitation is contingent on malicious input reaching the vulnerable IRBuilder functions from a local user with sufficient system permissions to run the compiler. Non-default configurations (e.g., remote WebAssembly compilation services with inadequate input validation) could lower the barrier to exploitation. |
| Impact | This vulnerability presents minimal real-world risk despite moderate CVSS v4.0 score of 1.9. Multiple risk signals confirm low severity: EPSS exploitation probability is 0.03% (7th percentile), indicating this vulnerability ranks far below typical exploitation targets; CVSS vector shows local-access-only attack vector (AV:L) with authenticated privilege requirement (PR:L), severely restricting attack surface; impact scope is limited to availability (VA:L with VC:N/VI:N/SA:N), producing only service disruption with no data confidentiality or integrity impact; and the vulnerability requires manipulation of a specific internal compiler function argument, not a network-exposed interface. While public exploit code exists, the combination of local-access-only, authenticated-user requirement, and narrow technical impact (availability only) means this is unlikely to be exploited in practice except by developers with malicious intent during build toolchain operations. The low EPSS score (7th percentile) directly contradicts any sense of urgency, suggesting security teams should deprioritize this against network-accessible or unauthenticated vulnerabilities. This is a classic example of high-CVSS-but-low-real-risk - defensive prioritization should focus on patch coordination during routine maintenance windows rather than emergency response. |
| Exploit ScenarioDerived | A developer with local access to a build system where Binaryen is installed creates a malicious WebAssembly module or crafts a direct IR builder invocation with an out-of-bounds Index argument. When the Binaryen compiler processes this input, the IRBuilder functions attempt to dereference a null pointer, crashing the compiler process and disrupting the build pipeline. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
Null pointer dereference in WebAssembly Binaryen up to version 125 allows local authenticated users to cause denial of service by manipulating the Index argument in IRBuilder::makeLocalGet, IRBuilder::makeLocalSet, or IRBuilder::makeLocalTee functions. Public exploit code exists, though real-world impact is minimal given the very low EPSS score (0.03%, 7th percentile) and local-access-only attack vector. This vulnerability is low-severity and unlikely to be prioritized for rapid patching in most environments.
RemediationAI
Update WebAssembly Binaryen to a version released after commit 6fb2b917a79578ab44cf3b900a6da4c27251e0d4 (released as part of a post-125 release; verify exact version from GitHub releases). Users unable to update immediately should restrict access to the Binaryen compiler toolchain to trusted developers only, as the vulnerability requires local authenticated user access to the build environment. Restricting who can invoke the compiler and what input it accepts will prevent exploitation. Coordinate patching with routine toolchain updates to minimize disruption; this is not a critical patch requiring emergency deployment. Confirm the applied patch via the commit hash 6fb2b917a79578ab44cf3b900a6da4c27251e0d4 visible in your build environment. See GitHub repository (https://github.com/WebAssembly/binaryen/) and patch PR https://github.com/WebAssembly/binaryen/pull/8099 for deployment details.
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
Binaryen is a compiler and toolchain infrastructure library for WebAssembly. The vulnerability resides in the IRBuilder component (src/wasm/wasm-ir-builder.cpp), which handles intermediate representation construction during WebAssembly code compilation. The three affected functions (makeLocalGet, makeLocalSet, makeLocalTee) manage local variable access operations in the IR. When the Index argument is manipulated to an invalid value, these functions fail to validate the index bounds against the actual local variable table, resulting in a null pointer dereference (CWE-404: Improper Resource Validation). This occurs at the IR construction stage, before WebAssembly binary generation, and is exploitable only by local users with sufficient privileges to invoke the compiler toolchain.
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:N/VI:N/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 identified in WebAssembly Binaryen up to 125. This affects the function IRBuilder::makeLocalGet/IRBuilder::makeLocalSet/IRBuilder::makeLocalTee of the file src/wasm/wasm-ir-builder.cpp of the component IRBuilder. Such manipulation of the argument Index leads to null pointer dereference. Local access is required to approach this attack. The exploit is publicly available and might be used. The name of the patch is 6fb2b917a79578ab44cf3b900a6da4c27251e0d4. Applying a patch is advised to resolve 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
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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