CVE-2024-58264 — Vulnerability in serde-json-wasm — CVE Details
serde-json-wasm stack overflow during recursive JSON parsing
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.84%). Schedule for your next planned update.
Does your project use an affected serde-json-wasm version?
Paste your Cargo.lock to check it for CVE-2024-58264 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published February 9, 2024 (1021 days ago).
- Last revised July 28, 2025 — 535 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p serde-json-wasm --precise 0.5.2
cargo update -p serde-json-wasm --precise 1.0.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: crates.io (1).
| Package | Fixed In |
|---|---|
| serde-json-wasm crates.io · Affected: All versions | 0.5.2 |
| serde-json-wasm crates.io · Affected: 1.0.0 | 1.0.1 |
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-58264ADVISORY
- https://github.com/CosmWasm/serde-json-wasm/commit/a9a9b9bf243862bd2afbf6853fca97f30dc4f620WEB
- https://github.com/CosmWasm/serde-json-wasm/commit/e78f9e28b3a2151d3175ee88ab2a001bf9515429WEB
- https://github.com/CosmWasm/serde-json-wasmPACKAGE
- https://rustsec.org/advisories/RUSTSEC-2024-0012.htmlWEB
Frequently Asked Questions
- What is CVE-2024-58264?
- serde-json-wasm stack overflow during recursive JSON parsing. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2024-58264?
- CVE-2024-58264 affects serde-json-wasm. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-58264 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 54.9% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-83816HIGH
CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE
- CVE-2026-83817HIGH
CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution