PyPI: eth-abi

GHSA-3qwc-47jf-5rf7

Safety vulnerability ID: SFTY-20240423-45725

Safety legacy ID: pyup.io-68474

Ethereum ABI (Application Binary Interface) library versions before 5.0.1 are susceptible to a vulnerability due to a recursive pointer issue. This flaw can trigger an OverflowError when decoding specially crafted payloads. The vulnerability specifically arises when attempting to decode deep nested arrays encoded in hex, as demonstrated by inputs causing Python integers to exceed the size that can be converted to C ssize_t. This issue underscores the importance of carefully handling array decoding to prevent potential overflows, emphasizing the need for appropriate validation and error handling mechanisms in applications processing such data.

Created at: Nov 5, 2025Updated at: Nov 5, 2025

Overview

eth-abi is vulnerable to recursive DoS

Advisory

Ethereum ABI (Application Binary Interface) library versions before 5.0.1 are susceptible to a vulnerability due to a recursive pointer issue. This flaw can trigger an OverflowError when decoding specially crafted payloads. The vulnerability specifically arises when attempting to decode deep nested arrays encoded in hex, as demonstrated by inputs causing Python integers to exceed the size that can be converted to C ssize_t. This issue underscores the importance of carefully handling array decoding to prevent potential overflows, emphasizing the need for appropriate validation and error handling mechanisms in applications processing such data.

Affected Package

Affecting eth-abi package, versions>=0,<5.0.1

Also affects

---

How to Fix

Upgradeeth-abito5.0.1or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more