GHSA-8327-84cj-8xjm: Alloy json abi Stack Overflow When Parsing Specially Vulnerability
MODERATEGHSA-8327-84cj-8xjm is a MODERATE (CVSS 5.3) stack overflow when parsing specially vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Alloy json abi libraries in the crates.io ecosystem. The issue involves stack overflow when parsing specially crafted json abi strings. Remediation is available in the latest vendor maintenance releases.
GHSA-8327-84cj-8xjm at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).
How to Fix GHSA-8327-84cj-8xjm
To remediate this vulnerability, upgrade all affected Alloy json abi dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade alloy-json-abi to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for alloy-json-abi
How to Check if You Are Affected
To determine whether your application is affected by GHSA-8327-84cj-8xjm, inspect your project dependencies for Alloy json abi:
inspect dependencies for alloy-json-abi
Analyze the terminal output to locate any version of Alloy json abi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Alloy json abi, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-8327-84cj-8xjm Affected Alloy json abi Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
alloy-json-abi
|
crates.io |
≤ 0.7.7
|
|
References
Frequently Asked Questions
What is GHSA-8327-84cj-8xjm?
Which Alloy json abi versions are affected?
What version fixes GHSA-8327-84cj-8xjm?
Is alloy-json-abi affected?
What is the CVSS score of GHSA-8327-84cj-8xjm?
What CWE is associated with GHSA-8327-84cj-8xjm?
How can I check crates.io dependencies for GHSA-8327-84cj-8xjm?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8327-84cj-8xjm",
"modified" : "2024-08-15T22:10:07Z",
"published" : "2024-08-15T22:10:06Z",
"aliases" : [ ],
"summary" : "Stack overflow when parsing specially crafted JSON ABI strings",
"details" : "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. \n\nThis stack overflow can lead to a crash of the application using this crate, potentially causing a denial of service.\n\nThe flaw was corrected in commit [4790c47](https://github.com/alloy-rs/core/commit/4790c47518024bd391bbd6815b00f501bad76a15).\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "alloy-json-abi"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.7.7"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/alloy-rs/core/issues/702"
}, {
"type" : "WEB",
"url" : "https://github.com/alloy-rs/core/commit/4790c47518024bd391bbd6815b00f501bad76a15"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/alloy-rs/core"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2024-0362.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-08-15T22:10:06Z",
"nvd_published_at" : null
}
}