CVE-2021-48020
HIGH 8.3CVSS 4.0VVE-2021-0001: Memory corruption using function calls within arrays
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.
- Published
- 21 Oct 2026
- Last modified
- 28 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Deferred
- Weakness
- CWE-129CWE-787
- Also known as
- GHSA-22wc-c9wj-6q2v
- Sources
- NVDJSONOSV GHSA-22wc-c9wj-6q2vJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | HIGH 8.3 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | vyper | < 0.2.12 | 0.2.12 |
References
- https://github.com/vyperlang/vyper/security/advisories/GHSA-22wc-c9wj-6q2v · WEB
- https://www.vulncheck.com/advisories/vyper-before-0.3.0-memory-corruption-via-internal-function-calls-in-arrays
- https://github.com/vyperlang/vyper/pull/2345 · WEB
- https://github.com/vyperlang/vyper/commit/11b7b5b7e59bc9dc859d51cd41a924b59fe47c9e · WEB
- https://pypi.org/project/vyper · WEB
History
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 21 Oct 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 19 Apr 2021)