Breaking News: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

RUSTSEC-2026-0410

WebAssembly allocator shim corrupts memory on allocation failure

Overview

Published
No date
Modified
No date
Unknown Vendor advisory
1 Registry packages
0 OS packages
0 Linux distributions
Yes Fix available
CVSS score Unknown, no score

Description

On wasm32, zstd-sys provides malloc and free to the C library through a shim over Rust's allocator. The shim did not check for allocation failure: it wrote its size header to address 0 and returned address 4, which the C library used as a valid buffer. free(NULL) also read below address 0.

Whenever the instance cannot grow its memory by what a frame asks for, a small crafted frame (a 9-byte header declaring a 128 MiB window is enough) made decompression write decoded data over the bottom of the module's linear memory, instead of failing. The corruption stays within the wasm sandbox.

The flaw was corrected by returning NULL on allocation failure or size overflow, and by making free(NULL) a no-op.

Source: OX vulnerability database

Severity

UNKNOWN

No CVSS vector in the source. Severity comes from the advisory.

Affected packages · 1

Packages affected by RUSTSEC-2026-0410
EcosystemPackageVulnerableFixed in
Cargo (Rust) zstd-sys >=2.0.9, <2.1.2 2.1.2

Open a package to see all its vulnerabilities.

Operating systems

No Linux distribution reports this ID.

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.