Memory Corruption Vulnerability in Vyper Package
Summary
GHSA-22wc-c9wj-6q2v: VVE-2021-0001: Memory corruption using function calls within arrays. Affects vyper versions < 0.2.12. Fixed in 0.2.12. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The Vyper package is an open-source Python tool used for developing smart contracts on the Ethereum blockchain. It provides a higher-level language compared to Solidity, making it easier to write secure and efficient smart contracts. However, the package is susceptible to a memory corruption vulnerability when performing function calls within arrays.
Vulnerability Detail
The vulnerability arises due to an incorrect pointer to the tip of the stack when a function call is made inside an array. This leads to memory corruption and can potentially be exploited by attackers. The issue was partially fixed in a previous security advisory (VVE-2020-0004), but the fix did not address similar code for arrays. The vulnerability has been fully resolved in the latest patch.
How To Fix
Latest published version: 0.4.3 as of 22 Oct 2026
pip install --upgrade "vyper==0.4.3"
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
0.2.12
This is the first release that contains the fix.
pip install --upgrade "vyper==0.2.12"
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no specific workaround available for this vulnerability. It is recommended to update to the latest version of the Vyper package as soon as possible.
Conclusion
The memory corruption vulnerability in the Vyper package can be mitigated by updating to the latest version (0.2.12 or later). It is crucial for users to promptly apply the patch to ensure the security and integrity of their smart contracts. For further support or assistance with vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for vyper →
FAQ
Vyper is a Python-based programming language specifically designed for writing smart contracts on the Ethereum blockchain. It aims to provide a higher level of security and simplicity compared to Solidity.
The vulnerability can lead to memory corruption, which can be exploited by attackers. This could potentially result in unauthorized access, data manipulation, or even remote code execution.
Yes, the vulnerability has been fully fixed in version 0.2.12 of the Vyper package. Users are advised to update to the latest version to ensure their code is not vulnerable.
There are no known instances of this vulnerability being actively exploited in the wild. However, it is always recommended to apply security patches promptly to mitigate any potential risks.
You can find more information about the Vyper package on the official GitHub repository (https://github.com/vyperlang/vyper). The repository contains documentation, examples, and the latest releases.
References
Related vulnerabilities
Recent vulnerabilities recorded for vyper.