Memory Corruption Vulnerability in Vyper Package

vyper Updated 02 Oct 2025

Summary

19/04/2021
MODERATE
Yes i
Moderate
Not published

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for vyper.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback