Skip to main content
← All vulnerabilities
CVE-2020-37289GHSA-MR6R-MVW4-736G

Vyper before 0.3.1 Improper Input Validation of uint8 Interface Return Values

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.3.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. First seen by cve.now
  3. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  4. Record last updated

Affected versions

  • vyperlang vyper

    fixed in 0.3.1

  • vyperPyPI

    through 0.1.0b16

References 2

GitHub · vyperlang/vyper

vulncheck.com