cosmwasm/serde-json-wasm · Security
serde-json-wasm stack overflow during recursive JSON parsing
- GHSA ID
- GHSA-rr69-rxr6-8qwf
- CVE ID
- CVE-2024-58264
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CVSS v3
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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.
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 ↗