# CVE-2021-41121: Memory corruption in Vyper

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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): 1.07%, higher than 65% of CVEs (2026-12-01)
- Published: 2021-10-06T17:10:51.000Z
- Modified: 2026-07-08T06:28:53.475Z
- Also known as: GHSA-xv8x-pr4h-73jv, PYSEC-2021-365
- Weaknesses: CWE-119
- Assigned by: GitHub_M

## Description

Vyper is a Pythonic Smart Contract Language for the EVM. In affected versions when performing a function call inside a literal struct, there is a memory corruption issue that occurs because of an incorrect pointer to the the top of the stack. This issue has been resolved in version 0.3.0.

(As written by CVE List.)

## Affected

- vyperlang vyper: < 0.3.0; before 0.3.0
- vyper (PyPI): before 0.3.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://github.com/vyperlang/vyper/pull/2447> (patch, third-party-advisory, web)
- <https://github.com/vyperlang/vyper/security/advisories/GHSA-xv8x-pr4h-73jv> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-41121> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2021-365.yaml> (web)
- <https://github.com/vyperlang/vyper> (package)

## Sources

- CVE List: [CVE-2021-41121](https://www.cve.org/CVERecord?id=CVE-2021-41121), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-xv8x-pr4h-73jv](https://github.com/advisories/GHSA-xv8x-pr4h-73jv), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-41121](https://nvd.nist.gov/vuln/detail/CVE-2021-41121), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-365](https://osv.dev/vulnerability/PYSEC-2021-365), CC-BY-4.0, modified 2023-11-08

---

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