Code execution via WebAssembly subtype confusion
Published Aug 6, 2024 · Updated Mar 24, 2025
WebAssembly type confusion in Firefox before 129, Firefox ESR before 128.1, and Thunderbird before 128.1 allows remote attackers to execute code. During recursive-structure validation, uninitialized supertype vectors compare equal as null, causing incompatible WebAssembly struct fields to pass subtype checks and generate unsafe code. Exploitation requires processing attacker-supplied WebAssembly; Thunderbird disables scripting while reading email, limiting exposure to browser or browser-like contexts.
Summary
What happened
WebAssembly type confusion in Firefox before 129, Firefox ESR before 128.1, and Thunderbird before 128.1 allows remote attackers to execute code. During recursive-structure validation, uninitialized supertype vectors compare equal as null, causing incompatible WebAssembly struct fields to pass subtype checks and generate unsafe code. Exploitation requires processing attacker-supplied WebAssembly; Thunderbird disables scripting while reading email, limiting exposure to browser or browser-like contexts.
The record
- CVE
- CVE-2024-7520
- Published
- Aug 6, 2024
- Updated
- Mar 24, 2025
- Vendor
- Mozilla
- Product
- Firefox
- Classifications
- CWE-94, CWE-843, T1203
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 6, 2024CVE publishedPublication date reported by the CVE source.
- Mar 24, 2025Record 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 <129
- Affected versionversion=unspecified <129
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.
Weakness, pattern, technique
Public exploit references
- Mozilla Bugzilla WebAssembly 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