CVE-2021-41121
HIGH 8.8CVSS 3.1Memory corruption when returning a literal struct with a private call inside of it
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.
- Published
- 6 Oct 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-119
- Also known as
- GHSA-xv8x-pr4h-73jvPYSEC-2021-365
- Sources
- NVDJSONOSV GHSA-xv8x-pr4h-73jvJSONOSV PYSEC-2021-365JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vyperlang | vypercpe:2.3:a:vyperlang:vyper:*:*:*:*:*:*:*:* |
< 0.3.0 | 0.3.0 |
| OSV | PyPI | vyper | < 0.3.0 | 0.3.0 |
References
- https://github.com/vyperlang/vyper/pull/2447 · Patch, Third Party Advisory, WEB
- https://github.com/vyperlang/vyper/security/advisories/GHSA-xv8x-pr4h-73jv · Third Party Advisory, WEB, ADVISORY
- 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
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 6 Oct 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 6 Oct 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 12 Oct 2021)