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 and later reads it after the object is destroyed at the end of the ESM link-loop iteration. This stale reference leads to returning an empty result vector for a statically non-empty result, causing 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 to an ArrayInstance pointer after only a null check, resulting in an arbitrary write vulnerability. A malicious web page can exploit this to achieve code execution in the WebContent process. The vulnerability is confirmed reachable from HTML content without any instrumentation or source modification. No patch or official remediation information is currently available.
Potential Impact
Successful exploitation allows an attacker to perform arbitrary memory writes within the WebContent process, leading to potential arbitrary code execution. This compromises the confidentiality, integrity, and availability of the affected system. The vulnerability can be triggered remotely via crafted web content, posing a significant risk to users of LadybirdBrowser.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should exercise caution when browsing untrusted web content. No vendor-provided mitigation or temporary workaround information is currently available.
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 and later reads it after the object is destroyed at the end of the ESM link-loop iteration. This stale reference leads to returning an empty result vector for a statically non-empty result, causing 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 to an ArrayInstance pointer after only a null check, resulting in an arbitrary write vulnerability. A malicious web page can exploit this to achieve code execution in the WebContent process. The vulnerability is confirmed reachable from HTML content without any instrumentation or source modification. No patch or official remediation information is currently available.
Potential Impact
Successful exploitation allows an attacker to perform arbitrary memory writes within the WebContent process, leading to potential arbitrary code execution. This compromises the confidentiality, integrity, and availability of the affected system. The vulnerability can be triggered remotely via crafted web content, posing a significant risk to users of LadybirdBrowser.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should exercise caution when browsing untrusted web content. No vendor-provided mitigation or temporary workaround information is currently available.
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/09/2026, 09:19:50 UTC
Last updated: 08/16/2026, 00:41:14 UTC
Views: 140
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.