CVE-2026-58592: Ladybird - Web-Reachable Code Execution via Dangling FunctionType Reference in WebAssembly ESM Integration

Published Jul 1, 2026
·
Updated

Ladybird before commit 2f9dc7e 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 createhostfunction, 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.

Affected Software

1 affected component
Ladybird Ladybird<2f9dc7e

Event History

Jul 1, 2026
CVE Published
via MITRE·07:27 PM
Data Sourced
via MITRE·07:27 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:17 PM
DescriptionSeverityWeakness
Jul 2, 2026
Exploit Published
via CISA·03:27 PM

Frequently Asked Questions

1

What is the severity of CVE-2026-58592?

CVE-2026-58592 has a severity rating of 8.9, which is classified as high.

2

How do I fix CVE-2026-58592?

To fix CVE-2026-58592, update the Ladybird WebAssembly ESM integration module loader to the latest patched version.

3

What type of vulnerability is CVE-2026-58592?

CVE-2026-58592 is a memory-safety vulnerability that allows for web-reachable code execution.

4

What systems are affected by CVE-2026-58592?

CVE-2026-58592 affects the Ladybird WebAssembly ESM integration module loader.

5

What can be the impact of CVE-2026-58592?

The impact of CVE-2026-58592 includes potential arbitrary code execution due to a dangling function type reference.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203