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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.9
- **CVSS:** 8.9 (v4.0, CNA) `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Attack requirements: Present; Privileges required: None; User interaction: Active; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: High; Integrity impact on other systems: High; Availability impact on other systems: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.55% (percentile 40, 2026-11-28)
- **CWE:** CWE-825, CWE-843, CWE-787
- **Published:** 2026-07-01T19:27:22.629Z
- **Modified:** 2026-11-08T14:07:11.963Z

## Who should check

- Anyone running LadybirdBrowser Ladybird \< 2f9dc7e9f35eed67dde3f9e8567d390dc4f0c665

## Description

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 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.

## Affected and fixed versions

- LadybirdBrowser Ladybird: \< 2f9dc7e9f35eed67dde3f9e8567d390dc4f0c665 (cvelist)

## Mitigation

- Upgrade Ladybird to 2f9dc7e9f35eed67dde3f9e8567d390dc4f0c665 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-58592. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-58592.md
Affected: LadybirdBrowser Ladybird < 2f9dc7e9f35eed67dde3f9e8567d390dc4f0c665
Fixed in: LadybirdBrowser Ladybird 2f9dc7e9f35eed67dde3f9e8567d390dc4f0c665

Steps:
1. Search this machine and project for LadybirdBrowser Ladybird: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-58592 being exploited?

There is no confirmed exploitation: CVE-2026-58592 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.55% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-58592?

High: CVSS 8.9 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-58592?

LadybirdBrowser Ladybird \< 2f9dc7e9f35eed67dde3f9e8567d390dc4f0c665.

### Is there a fix for CVE-2026-58592?

Yes. Fixed in LadybirdBrowser Ladybird 2f9dc7e9f35eed67dde3f9e8567d390dc4f0c665. Upgrade Ladybird to 2f9dc7e9f35eed67dde3f9e8567d390dc4f0c665 or later.

### How do I check if I'm affected by CVE-2026-58592?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://github.com/LadybirdBrowser/ladybird/pull/11606>
- patch: <https://github.com/LadybirdBrowser/ladybird/commit/2f9dc7e9f35eed67dde3f9e8567d390dc4f0c665>
- exploit: <https://github.com/bikini/exploitarium/tree/main/ladybird-wasm-esm-host-function-rce-poc>
- other: <https://github.com/LadybirdBrowser/ladybird/issues/11569>
- other: <https://www.vulncheck.com/advisories/ladybird-web-reachable-code-execution-via-dangling-functiontype-reference-in-webassembly-esm-integration>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-58592>

HTML: <https://flawdb.com/CVE-2026-58592> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-58592>
