# RUSTSEC-2024-0362: Stack overflow when parsing specially crafted JSON ABI strings

- Database: RustSec
- Published: 2024-07-30
- Modified: 2025-10-28

## Also published as

- [GHSA-8327-84CJ-8XJM](https://cve.now/GHSA-8327-84CJ-8XJM.md) (GitHub)

## Affected versions

- alloy-json-abi (crates.io): fixed in 0.7.7

## 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.

## References

- https://crates.io/crates/alloy-json-abi
- https://rustsec.org/advisories/RUSTSEC-2024-0362.html
- https://github.com/alloy-rs/core/issues/702

Page: https://cve.now/RUSTSEC-2024-0362

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
