CVE-2024-24560
CVE-2024-24560 · Vyper external calls can overflow return data to return input buffer
Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.
Vyper is a Pythonic Smart Contract Language for the Ethereum Virtual Machine. When calls to external contracts are made, we write the input buffer starting at byte 28, and allocate the return buffer to start at byte 0 (overlapping with the input buffer). When checking RETURNDATASIZE for dynamic types, the size is compared only to the minimum allowed size for that type, and not to the returned value's length. As a result, malformed return data can cause the contract to mistake data from the input buffer for returndata. When the called contract returns invalid ABIv2 encoded data, the calling contract can read different invalid data (from the dirty buffer) than the called contract returned.
CVSS 3.7 · Faible · EPSS 0,5% · Correctif disponible
- Publication
- Mise à jour
Pile logicielle: python
Produits et versions concernés
vyper
- Versions du logiciel
- <= 0.3.10: Concernée
Aucun correctif publié
vyper PyPI
- Versions du logiciel
- 0.1.0b1
- 0.1.0b10
- 0.1.0b11
- 0.1.0b12
- 0.1.0b13
- 0.1.0b14
- 0.1.0b15
- 0.1.0b16
- 0.1.0b17
- 0.1.0b2
- 0.1.0b3
- 0.1.0b4
- 0.1.0b5
- 0.1.0b6
- 0.1.0b7
- 0.1.0b8
- 0.1.0b9
- 0.2.1
- 0.2.10
- 0.2.11
- 0.2.12
- 0.2.13
- 0.2.14
- 0.2.15
- 0.2.16
- 0.2.2
- 0.2.3
- 0.2.4
- 0.2.5
- 0.2.6
- 0.2.7
- 0.2.8
- 0.2.9
- 0.3.0
- 0.3.1
- 0.3.10
- 0.3.10rc1
- 0.3.10rc2
- 0.3.10rc3
- 0.3.10rc4
- 0.3.10rc5
- 0.3.2
- 0.3.3
- 0.3.4
- 0.3.5
- 0.3.6
- 0.3.7
- 0.3.8
- 0.3.9
- 0.4.0b1
- 0.4.0b2
- 0.4.0b3
- 0.4.0b4
- 0.4.0b5
- 0.4.0b6
- 0.4.0rc1
- 0.4.0rc2
- 0.4.0rc3
- 0.4.0rc4
- 0.4.0rc5
- 0.4.0rc6
- Plages de versions concernées
- ECOSYSTEM: < 0.4.0
Mettez à jour vers 0.4.0
vyper PyPI
- Versions du logiciel
- 0.1.0b1
- 0.1.0b10
- 0.1.0b11
- 0.1.0b12
- 0.1.0b13
- 0.1.0b14
- 0.1.0b15
- 0.1.0b16
- 0.1.0b17
- 0.1.0b2
- 0.1.0b3
- 0.1.0b4
- 0.1.0b5
- 0.1.0b6
- 0.1.0b7
- 0.1.0b8
- 0.1.0b9
- 0.2.1
- 0.2.10
- 0.2.11
- 0.2.12
- 0.2.13
- 0.2.14
- 0.2.15
- 0.2.16
- 0.2.2
- 0.2.3
- 0.2.4
- 0.2.5
- 0.2.6
- 0.2.7
- 0.2.8
- 0.2.9
- 0.3.0
- 0.3.1
- 0.3.10
- 0.3.10rc1
- 0.3.10rc2
- 0.3.10rc3
- 0.3.10rc4
- 0.3.10rc5
- 0.3.2
- 0.3.3
- 0.3.4
- 0.3.5
- 0.3.6
- 0.3.7
- 0.3.8
- 0.3.9
- Plages de versions concernées
- ECOSYSTEM: < 0.4.0b1
Mettez à jour vers 0.4.0b1