CVE-2026-58592: Expired Pointer Dereference in LadybirdBrowser Ladybird
Ladybird contains a dangling-reference memory-safety flaw in its WebAssembly ESM-integration module loader. When a JavaScript function is imported into a WebAssembly module via the ESM path, WebAssemblyModule.cpp passes a stack-local Wasm::FunctionType by reference to create_host_function, whose host callback captures and later reads that reference; once the ESM link-loop iteration ends the FunctionType is destroyed, leaving the callback with a dangling reference (the normal instantiate path uses a long-lived reference and is not affected). Stale result-type data lets the host callback return an empty result vector for a statically non-empty result, so the destination register retains an attacker-influenced value that is then consumed by the WASM-GC array.set handler, which bit-casts the reference low bits to an ArrayInstance pointer after only a null check, yielding an arbitrary write. A web page can chain this into code execution in the WebContent process. Verified reachable from HTML content without any instrumentation or source modification.
AI Analysis
Technical Summary
LadybirdBrowser's WebAssembly ESM-integration module loader contains a dangling-reference flaw where a stack-local Wasm::FunctionType is passed by reference to create_host_function. The host callback captures this reference, but after the ESM link-loop iteration ends, the FunctionType is destroyed, leaving a dangling reference. This stale reference causes the host callback to return an empty result vector for a statically non-empty result, allowing the destination register to retain an attacker-influenced value. This value is then used by the WASM-GC array.set handler, which performs a bit-cast after only a null check, enabling an arbitrary write primitive. A malicious web page can exploit this to achieve code execution within the WebContent process. The vulnerability is reachable from HTML content without instrumentation or source modification. The CVSS v3.1 score is 8.3, reflecting network attack vector, high impact on confidentiality, integrity, and availability, but requiring user interaction and high attack complexity. No patch or vendor advisory is currently available.
Potential Impact
Successful exploitation allows an attacker-controlled web page to achieve arbitrary memory writes in the WebContent process, leading to potential remote code execution. This compromises confidentiality, integrity, and availability of the affected system. The attack requires user interaction but can be triggered remotely over the network. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or workaround is currently documented. Until a patch is available, users should exercise caution when visiting untrusted web pages and consider limiting exposure to potentially malicious content.
CVE-2026-58592: Expired Pointer Dereference in LadybirdBrowser Ladybird
Description
Ladybird contains a dangling-reference memory-safety flaw in its WebAssembly ESM-integration module loader. When a JavaScript function is imported into a WebAssembly module via the ESM path, WebAssemblyModule.cpp passes a stack-local Wasm::FunctionType by reference to create_host_function, whose host callback captures and later reads that reference; once the ESM link-loop iteration ends the FunctionType is destroyed, leaving the callback with a dangling reference (the normal instantiate path uses a long-lived reference and is not affected). Stale result-type data lets the host callback return an empty result vector for a statically non-empty result, so the destination register retains an attacker-influenced value that is then consumed by the WASM-GC array.set handler, which bit-casts the reference low bits to an ArrayInstance pointer after only a null check, yielding an arbitrary write. A web page can chain this into code execution in the WebContent process. Verified reachable from HTML content without any instrumentation or source modification.
CVSS v3.1
Score 8.3high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
LadybirdBrowser's WebAssembly ESM-integration module loader contains a dangling-reference flaw where a stack-local Wasm::FunctionType is passed by reference to create_host_function. The host callback captures this reference, but after the ESM link-loop iteration ends, the FunctionType is destroyed, leaving a dangling reference. This stale reference causes the host callback to return an empty result vector for a statically non-empty result, allowing the destination register to retain an attacker-influenced value. This value is then used by the WASM-GC array.set handler, which performs a bit-cast after only a null check, enabling an arbitrary write primitive. A malicious web page can exploit this to achieve code execution within the WebContent process. The vulnerability is reachable from HTML content without instrumentation or source modification. The CVSS v3.1 score is 8.3, reflecting network attack vector, high impact on confidentiality, integrity, and availability, but requiring user interaction and high attack complexity. No patch or vendor advisory is currently available.
Potential Impact
Successful exploitation allows an attacker-controlled web page to achieve arbitrary memory writes in the WebContent process, leading to potential remote code execution. This compromises confidentiality, integrity, and availability of the affected system. The attack requires user interaction but can be triggered remotely over the network. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or workaround is currently documented. Until a patch is available, users should exercise caution when visiting untrusted web pages and consider limiting exposure to potentially malicious content.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-07-01T17:20:57.549Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a456fd127e9c79719097e76
Added to database: 07/01/2026, 19:51:45 UTC
Last enriched: 07/01/2026, 20:06:22 UTC
Last updated: 07/01/2026, 20:57:51 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.