Privilege escalation via imported WASI export underflow
Published Nov 8, 2024 · Updated Nov 13, 2024
Out-of-bounds read in WebAssembly Micro Runtime before b3f728c allows remote attackers to escalate privileges via a crafted Wasm file. The WASI compatibility check subtracts the import count from an imported _start or _initialize index and uses the underflowed value to index the function table. A runtime must load the attacker-supplied module; the public reproduction demonstrates a process crash, while the advisory also reports disclosure and privilege escalation.
Summary
What happened
Out-of-bounds read in WebAssembly Micro Runtime before b3f728c allows remote attackers to escalate privileges via a crafted Wasm file. The WASI compatibility check subtracts the import count from an imported _start or _initialize index and uses the underflowed value to index the function table. A runtime must load the attacker-supplied module; the public reproduction demonstrates a process crash, while the advisory also reports disclosure and privilege escalation.
The record
- CVE
- CVE-2024-25431
- Published
- Nov 8, 2024
- Updated
- Nov 13, 2024
- Vendor
- Bytecode Alliance
- Product
- WebAssembly Micro Runtime
- Classifications
- CWE-125, T1203
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Nov 8, 2024CVE publishedPublication date reported by the CVE source.
- Nov 13, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <b3f728c
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- Issue 3122 crafted Wasm proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo