CVE-2020-37289 PUBLISHED

Vyper before 0.3.1 Improper Input Validation of uint8 Interface Return Values

Assigner: VulnCheck
Reserved: 20.10.2026 Published: 21.10.2026 Updated: 21.10.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
CVSS Score: 6.3

Product Status

Vendor vyperlang
Product vyper
Versions Default: unaffected
  • affected from 0 to 0.3.1 (excl.)
  • Version 0.3.1 is unaffected

Credits

  • montyly analyst

References

Problem Types

  • Improper Input Validation CWE