CVE-2021-41121
HIGH7.5EPSS 0.42%Memory corruption when returning a literal struct with a private call inside of it
Published: 10/12/2021Modified: 3/13/2026
Description
### Impact 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. ### Patches 0.3.0 / #2447 *
Affected packages (2)
- PyPI/vyperfrom 0, < 0.3.0
- PyPI/vyperfrom 0, < 0.3.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | 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 |
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
References (5)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-41121
- PATCHhttps://github.com/vyperlang/vyper
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2021-365.yaml
- WEBhttps://github.com/vyperlang/vyper/pull/2447
- WEBhttps://github.com/vyperlang/vyper/security/advisories/GHSA-xv8x-pr4h-73jv