GitHub Advisoryadvisory · crates.io

GHSA-8327-84cj-8xjm Stack overflow when parsing specially crafted JSON ABI strings

MEDIUM Published 2024-08-15 Modified 2024-08-15 Official page ↗
Ecosystem
crates.io
Packages
alloy-json-abi
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Weaknesses
CWE-400
Reviewed
2024-08-15

Affected packages

• crates.io alloy-json-abi: <= 0.7.7 (no fix yet)

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.

Related

Weakness · CWE (1)

  • CWE-400 Uncontrolled Resource Consumption weakness

References