# CVE-2021-48020: Vyper before 0.3.0 Memory Corruption via Internal Function Calls in Arrays

- Severity: High 8.3 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2021-04-19T15:12:05.000Z
- Modified: 2026-10-28T16:16:59.973Z
- Also known as: GHSA-22wc-c9wj-6q2v
- Weaknesses: CWE-129, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- vyperlang vyper: from 0.1.0b4 before 0.3.0 (not affected: 0.3.0)
- vyper (PyPI): before 0.2.12

## Every score

- VulnCheck: CVSS:4.0 8.3 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L`
- GitHub: rating Medium

## References

- <https://github.com/vyperlang/vyper/security/advisories/GHSA-22wc-c9wj-6q2v> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/vyper-before-0.3.0-memory-corruption-via-internal-function-calls-in-arrays> (third-party-advisory)
- <https://github.com/vyperlang/vyper/pull/2345> (web)
- <https://github.com/vyperlang/vyper/commit/11b7b5b7e59bc9dc859d51cd41a924b59fe47c9e> (web)
- <https://pypi.org/project/vyper> (web)

## Sources

- CVE List: [CVE-2021-48020](https://www.cve.org/CVERecord?id=CVE-2021-48020), CVE Terms of Use, modified 2026-10-28
- GitHub Advisory Database: [GHSA-22wc-c9wj-6q2v](https://github.com/advisories/GHSA-22wc-c9wj-6q2v), CC-BY-4.0, modified 2026-10-24
- NVD: [CVE-2021-48020](https://nvd.nist.gov/vuln/detail/CVE-2021-48020), Public domain, modified 2026-10-28

---

Page: https://cve.day/CVE-2021-48020 · Whole record: https://cve.day/CVE-2021-48020.json · Rebuilt by cve.day 2026-11-25T22:58:09.125Z
