GitHub Advisoryadvisory · crates.io
GHSA-rr69-rxr6-8qwf serde-json-wasm stack overflow during recursive JSON parsing
HIGH
Official page ↗
- Aliases
- CVE-2024-58264
- Ecosystem
- crates.io
- Packages
- serde-json-wasm
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Reviewed
- 2024-02-09
Affected packages
• crates.io serde-json-wasm: >= 1.0.0, < 1.0.1 → fixed in 1.0.1
• crates.io serde-json-wasm: < 0.5.2 → fixed in 0.5.2
Description
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.
Related
Alias · CVE (1)
- CVE-2024-58264 The serde-json-wasm crate before 1.0.1 for Rust allows stack consumption via deeply nested JSON data. vulnerability
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-58264 advisory
- https://github.com/CosmWasm/serde-json-wasm/commit/a9a9b9bf243862bd2afbf6853fca97f30dc4f620 web
- https://github.com/CosmWasm/serde-json-wasm/commit/e78f9e28b3a2151d3175ee88ab2a001bf9515429 web
- https://github.com/CosmWasm/serde-json-wasm package
- https://rustsec.org/advisories/RUSTSEC-2024-0012.html web