CVE-2021-41121
mediumpriority · track · 35EPSS 0.011 · 65 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.5–8.8
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-xv8x-pr4h-73jvMemory corruption when returning a literal struct with a private call inside of it2021-10-12ghsa · osvUS
### 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 *
- PYSEC-2021-3652021-10-06vendor · osvUS
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.
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://github.com/vyperlang/vyper/pull/2447cnnvd
- https://github.com/vyperlang/vyper/security/advisories/GHSA-xv8x-pr4h-73jvcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-41121cnnvd
- https://github.com/vyperlang/vyper/pull/2447enisa_euvd
- https://github.com/vyperlang/vyper/security/advisories/GHSA-xv8x-pr4h-73jvenisa_euvd
- https://github.com/vyperlang/vyper/pull/2447PatchThird Party Advisorynvd
- https://github.com/vyperlang/vyper/security/advisories/GHSA-xv8x-pr4h-73jvThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan