Advisory

RUSTSEC-2024-0012

Also known as: CVE-2024-58264, GHSA-rr69-rxr6-8qwf

Summary

Stack overflow during recursive JSON parsing

Details

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.

Severity

Not rated by the source.

Dates

Published
2024-01-24 12:00 UTC
Modified
2025-10-28 06:02 UTC

Affected packages and fixes

serde-json-wasm

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.5.2, introduced 1.0.0, fixed 1.0.1 (semver)

Fixed versions

0.5.2, 1.0.1

Fix

  • Fixed version 0.5.2
    cargo update -p serde-json-wasm --precise 0.5.2
  • Fixed version 1.0.1
    cargo update -p serde-json-wasm --precise 1.0.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences