Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. serde-json-wasm
  4. ›
  5. CVE-2024-58264

CVE-2024-58264: serde-json-wasm stack overflow during recursive JSON parsing

February 9, 2024 (updated July 28, 2025)

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

  • github.com/CosmWasm/serde-json-wasm
  • github.com/CosmWasm/serde-json-wasm/commit/a9a9b9bf243862bd2afbf6853fca97f30dc4f620
  • github.com/CosmWasm/serde-json-wasm/commit/e78f9e28b3a2151d3175ee88ab2a001bf9515429
  • github.com/advisories/GHSA-rr69-rxr6-8qwf
  • nvd.nist.gov/vuln/detail/CVE-2024-58264
  • rustsec.org/advisories/RUSTSEC-2024-0012.html

Code Behaviors & Features

Detect and mitigate CVE-2024-58264 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.5.2, all versions starting from 1.0.0 before 1.0.1, version 1.0.0

Fixed versions

  • 1.0.1
  • 0.5.2

Solution

Upgrade to versions 0.5.2, 1.0.1 or above.

Impact 3.2 LOW

CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L

Learn more about CVSS

Source file

cargo/serde-json-wasm/CVE-2024-58264.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:08 +0000.