CVE-2021-48020 json
Vyper before 0.3.0 Memory Corruption via Internal Function Calls in Arrays
published 2021-04-19 5 y ago modified 2026-10-28 11 d ago also EUVD-2021-34890 , GHSA-22wc-c9wj-6q2v
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 21%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi vyper 0.2.12
- vyperlang vyper 0.3.0
- github.com/vyperlang/vyper@11b7b5b commit
- github.com/vyperlang/vyper#2345 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-48020 updated cvss 6.5
vyper: vyper: Memory corruption via internal function calls within arrays
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 12 d ago
Exploit prediction
0.28% chance of exploitation in the next 30 days, higher than 21% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 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 |
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L |
| CNA | 4.0 | 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 |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | vyper | <0.2.12 |
0.2.12 |
Affected products
- vyperlang vyper
Classification
References
-
github.com
/vyperlang/vyper/pull/2345
web
-
github.com
/vyperlang/vyper/commit/11b7b5b7e59bc9dc859d51cd41a924b59fe47c9e
web
-
github.com
/vyperlang/vyper/security/advisories/GHSA-22wc-c9wj-6q2v
vendor-advisory, web
-
vulncheck.com
/advisories/vyper-before-0.3.0-memory-corruption-via-internal-function-calls-in-arrays
third-party-advisory
-
pypi.org
/project/vyper
web
Sources
- CVE List CVE-2021-48020
- GitHub Advisory GHSA-22wc-c9wj-6q2v
- NVD CVE-2021-48020
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.