vyperlang/vyper · Security
Memory corruption when returning a literal struct with a private call inside of it
- GHSA ID
- GHSA-xv8x-pr4h-73jv
- CVE ID
- CVE-2021-41121
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 7.5 · CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- CVSS v4
- 7.7 · 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
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
CWEs
- CWE-119 · Improper Restriction of Operations within the Bounds of a Memory Buffer
References
- https://github.com/vyperlang/vyper/security/advisories/GHSA-xv8x-pr4h-73jv ↗
- https://github.com/vyperlang/vyper/pull/2447 ↗
- https://nvd.nist.gov/vuln/detail/CVE-2021-41121 ↗
- https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2021-365.yaml ↗
- https://github.com/advisories/GHSA-xv8x-pr4h-73jv ↗