Vulnerabilities · 2023 · Vyperlang
CVE-2023-31146
Vyperlang Vyper vulnerability
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.
Affected products
Vyper. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Vyperlang Vyper runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/vyperlang/vyper/security/advisories/GHSA-3p37-3636-q8wv · Exploit
- github.com/vyperlang/vyper/commit/4f8289a81206f767df1900ac48f485d90fc87edb · Patch
- nvd.nist.gov/vuln/detail/CVE-2023-31146
- github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2023-77.yaml
- github.com/advisories/GHSA-3p37-3636-q8wv
- nvd.nist.gov/vuln/detail/CVE-2023-31146
- cve.org/CVERecord?id=CVE-2023-31146
More vulnerabilities in Vyperlang products
CVE-2025-27105CVE-2025-27104CVE-2025-26622CVE-2025-21607CVE-2024-32649CVE-2024-32648CVE-2024-32647CVE-2024-32646All 38
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.