CVE-2020-37289 Vyper before 0.3.1 Improper Input Validation of uint8 Interface Return Values
MediumCVSS 6.3
EPSS 0.26%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
Vyper before 0.3.1 lacks a uint8 type, allowing interface return values declared as uint8, such as ERC20.decimals(), to be stored in uint256 variables without bounds checking. Malicious contracts can return values greater than 255 to manipulate or bypass contract logic that relies on these values.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi vyper | < 0.3.1 | 0.3.1 | Fixed |
| pypi vyper(PyPI) | <= 0.1.0b16; = 0.1.0b1; = 0.1.0b2; = 0.1.0b3 +13 more | after 0.1.0b16 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi vyper(PyPI) | <= 0.1.0b16 | No fix listed |
| pypi vyper(PyPI) | = 0.1.0b1 | No fix listed |
| pypi vyper(PyPI) | = 0.1.0b10 | No fix listed |
| pypi vyper(PyPI) | = 0.1.0b11 | No fix listed |
| pypi vyper(PyPI) | = 0.1.0b12 | No fix listed |
| pypi vyper(PyPI) | = 0.1.0b13 | No fix listed |
| pypi vyper(PyPI) | = 0.1.0b14 | No fix listed |
| pypi vyper(PyPI) | = 0.1.0b15 | No fix listed |
| pypi vyper(PyPI) | = 0.1.0b16 | No fix listed |
| pypi vyper(PyPI) | = 0.1.0b2 | No fix listed |
| pypi vyper(PyPI) | = 0.1.0b3 | No fix listed |
| pypi vyper(PyPI) | = 0.1.0b4 | No fix listed |
| pypi vyper(PyPI) | = 0.1.0b5 | No fix listed |
| pypi vyper(PyPI) | = 0.1.0b6 | No fix listed |
| pypi vyper(PyPI) | = 0.1.0b7 | No fix listed |
| pypi vyper(PyPI) | = 0.1.0b8 | No fix listed |
| pypi vyper(PyPI) | = 0.1.0b9 | No fix listed |
| pypi vyper | < 0.3.1 | 0.3.1 |
References
- GitHub Security Advisory (GHSA-mr6r-mvw4-736g) vendor-advisory
- github.com
- VulnCheck Advisory: Vyper before 0.3.1 Improper Input Validation of uint8 Interface Return Values third-party-advisory
- ENISA EUVD EUVD-2020-31285 third-party-advisory