Open-source package vulnerability · Rust (crates.io)
CVE-2024-58264: serde-json-wasm stack overflow during recursive JSON parsing
highCVSS 3.1 7.5GHSA-rr69-rxr6-8qwf
When parsing untrusted, deeply nested JSON, the stack may overflow, possibly enabling a Denial of Service attack. This was fixed by adding a check for recursion depth.
Published Feb 9, 2024 · Updated Jul 28, 2025
Affected packages
serde-json-wasm
- Ecosystem
- Rust (crates.io)
- Affected
- = 1.0.0
- Fixed in
- 1.0.1
- Check
cargo tree -i serde-json-wasm
serde-json-wasm
- Ecosystem
- Rust (crates.io)
- Affected
- < 0.5.2
- Fixed in
- 0.5.2
- Check
cargo tree -i serde-json-wasm
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
When parsing untrusted, deeply nested JSON, the stack may overflow, possibly enabling a Denial of Service attack. This was fixed by adding a check for recursion depth.
References
- https://github.com/CosmWasm/serde-json-wasm/commit/a9a9b9bf243862bd2afbf6853fca97f30dc4f620
- https://github.com/CosmWasm/serde-json-wasm/commit/e78f9e28b3a2151d3175ee88ab2a001bf9515429
- https://rustsec.org/advisories/RUSTSEC-2024-0012.html
- https://nvd.nist.gov/vuln/detail/CVE-2024-58264
- https://github.com/advisories/GHSA-rr69-rxr6-8qwf
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
