Rust advisories / alloy-json-abi
Vulnerability MediumRUSTSEC-2024-0362 · alloy-json-abi
RUSTSEC-2024-0362: Stack overflow when parsing specially crafted JSON ABI strings
Short answerA security vulnerability in the alloy-json-abi crate: Stack overflow when parsing specially crafted JSON ABI strings. GitHub rates it Medium. Fixed in 0.7.7: update to a fixed version.
| Crate | alloy-json-abi |
|---|---|
| Type | Vulnerability |
| Affected versions | Before 0.7.7. |
| Fixed in | 0.7.7 |
| Severity | Medium (GitHub rating) |
| Published | 2024-07-30 |
| Last changed | 2025-10-28 |
| Also known as | GHSA-8327-84cj-8xjm |
What to do
- See which version you have:
cargo tree -i alloy-json-abi(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p alloy-json-abi. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplealloy-json-abi = "0.7.7") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
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
- Package: crates.io/crates/alloy-json-abi
- Advisory: rustsec.org/advisories/RUSTSEC-2024-0362.html
- Report: github.com/alloy-rs/core/issues/702
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →Also worth your time
Did this answer your question?