CVE-2021-48020 Vyper before 0.3.0 Memory Corruption via Internal Function Calls in Arrays
- Exploited in the wild
- Not known
- Fix
- None listed
What is CVE-2021-48020?
CVE-2021-48020 is a high-severity vulnerability in vyperlang vyper, published on 21 Oct 2026.
Official description
Vyper from 0.1.0b4 before 0.3.0 contains a memory corruption vulnerability caused by an incorrect stack tip pointer when internal function calls are performed inside arrays. Contracts placing internal calls in nested array elements, external call arguments, struct literals, or raw_log topics can have memory corrupted, producing incorrect contract behavior.
Weakness: CWE-787
Which versions are affected by CVE-2021-48020?
2 open source packages ship an affected version, including vyper.
| Package | Affected | Fixed in |
|---|---|---|
vyper PyPI | All versions | 0.2.12 |
vyper PyPI | All versions | 0.2.12 |
How do I fix CVE-2021-48020?
Upgrade vyper to 0.2.12 or later.
Is CVE-2021-48020 being exploited?
There is no known exploitation of CVE-2021-48020 in the wild and no public exploit code.
Sources
Also known as GHSA-22wc-c9wj-6q2v, GHSA-vq78-2j7f-9gqx.