Advisory

RUSTSEC-2024-0362

Also known as: GHSA-8327-84cj-8xjm

Summary

Stack overflow when parsing specially crafted JSON ABI strings

Details

Affected versions of the alloy-json-abi crate did not properly handle parsing of malformatted JSON ABI strings. The JsonAbi::parse method can be tricked into a stack overflow when processing specially crafted input.

This stack overflow can lead to a crash of the application using this crate, potentially causing a denial of service.

The flaw was corrected in commit 4790c47.

Severity

Not rated by the source.

Dates

Published
2024-07-30 12:00 UTC
Modified
2025-10-28 06:29 UTC

Affected packages and fixes

alloy-json-abi

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.7.7 (semver)

Fixed versions

0.7.7

Fix

  • Fixed version 0.7.7
    cargo update -p alloy-json-abi --precise 0.7.7

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