GHSA-8327-84cj-8xjm: Alloy json abi Stack Overflow When Parsing Specially Vulnerability

MODERATE
CVSS 5.3
CWE-400
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-8327-84cj-8xjm
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Alloy json abi
Package Ecosystem crates.io
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (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.

alloy-json-abi fixed: Latest secure release
Upgrade alloy-json-abi to Latest secure release
Verify Direct and Transitive Dependencies

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

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

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?
GHSA-8327-84cj-8xjm is a security vulnerability in Alloy json abi involving Stack overflow when parsing specially crafted JSON ABI strings under CWE-400: Uncontrolled Resource Consumption.
Which Alloy json abi versions are affected?
Affected versions include releases prior to current release patches across affected packages: alloy-json-abi.
What version fixes GHSA-8327-84cj-8xjm?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is alloy-json-abi affected?
Yes, alloy-json-abi is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of GHSA-8327-84cj-8xjm?
GHSA-8327-84cj-8xjm has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with GHSA-8327-84cj-8xjm?
GHSA-8327-84cj-8xjm is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check crates.io dependencies for GHSA-8327-84cj-8xjm?
Run the dependency tree command: 'inspect dependencies for alloy-json-abi'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}