Skip to content
OpenAdvisories
Medium · 5.3 GHSA-8327-84cj-8xjm RUSTSEC-2024-0362

Stack overflow when parsing specially crafted JSON ABI strings

Published Aug 15, 2024 · Updated Oct 28, 2025 · Assigned by GHSA

Description

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](https://github.com/alloy-rs/core/commit/4790c47518024bd391bbd6815b00f501bad76a15).

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io alloy-json-abi <= 0.7.7 — GHSA-8327-84cj-8xjm
crates.io alloy-json-abi >= 0.0.0-0, < 0.7.7 0.7.7 RUSTSEC-2024-0362

References