CVE-2023-31146
published high CVSS 3.1 · 7.5Vyper vulnerable to OOB DynArray access when array is on both LHS and RHS of an assignment
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| vyperlang | — | vyper< 0.3.8 | Affected | Not stated | GitHub_M |
Description
Vyper is a Pythonic smart contract language for the Ethereum virtual machine. Prior to version 0.3.8, during codegen, the length word of a dynarray is written before the data, which can result in out-of-bounds array access in the case where the dynarray is on both the lhs and rhs of an assignment. The issue can cause data corruption across call frames. The expected behavior is to revert due to out-of-bounds array access. Version 0.3.8 contains a patch for this issue.
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
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 9.1 | critical | CISA-ADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| vyperlang | vyper | < 0.3.8 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-787 CWE-787: Out-of-bounds Write
- CWE-787 CWE-787 Out-of-bounds Write
References
2Provider assertions
3GitHub_M · cna
Vyper vulnerable to OOB DynArray access when array is on both LHS and RHS of an assignment
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 7744f9d65d4464ffadf7dbd93d991565d82db48504c7220acb4a0607be85d4c4
- Ingested
- 23 Sep 2026, 08:08:38 UTC
- Source record
- Official CVE record