CVE-2020-37289
published medium CVSS 4.0 · 6.3Vyper before 0.3.1 Improper Input Validation of uint8 Interface Return Values
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| vyperlang | — | vyper0 to < 0.3.1 (affected · python) · 0.3.1 (unaffected · python) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 3.7 | low | VulnCheck · cna | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| vyperlang | vyper | 0 to < 0.3.1 (affected · python)0.3.1 (unaffected · python)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-20 Improper Input Validation
References
2- GitHub Security Advisory (GHSA-mr6r-mvw4-736g) https://github.com/vyperlang/vyper/security/advisories/GHSA-mr6r-mvw4-736g
- VulnCheck Advisory: Vyper before 0.3.1 Improper Input Validation of uint8 Interface Return Values https://www.vulncheck.com/advisories/vyper-before-0.3.1-improper-input-validation-of-uint8-interface-return-values
Provider assertions
2VulnCheck · cna
Vyper before 0.3.1 Improper Input Validation of uint8 Interface Return Values
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d02b848c29d7c920e1d763da3985f0edb06951468776a9d6cd98407fac4ad510
- Ingested
- 28 Oct 2026, 15:51:52 UTC
- Source record
- Official CVE record