# GHSA-8327-84CJ-8XJM: Stack overflow when parsing specially crafted JSON ABI strings

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2024-08-15
- Modified: 2025-10-28

## Also published as

- [RUSTSEC-2024-0362](https://cve.now/RUSTSEC-2024-0362.md) (RustSec)

## Affected versions

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

## References

- https://github.com/alloy-rs/core/issues/702
- https://github.com/alloy-rs/core/commit/4790c47518024bd391bbd6815b00f501bad76a15
- https://github.com/alloy-rs/core
- https://rustsec.org/advisories/RUSTSEC-2024-0362.html

Page: https://cve.now/GHSA-8327-84CJ-8XJM

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