{"id":"CVE-2021-41121","published":"2021-10-06T17:10:51Z","modified":"2024-08-04T02:59:31Z","title":"Memory corruption in Vyper","vendor":"vyperlang","product":"vyper","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01074,"percentile":0.65756,"provenance":"source"},"cwes":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"references":[{"url":"https://github.com/vyperlang/vyper/pull/2447","tags":["x_refsource_MISC"]},{"url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-xv8x-pr4h-73jv","tags":["x_refsource_CONFIRM"]}],"priority":{"score":18.4,"factors":[{"name":"EPSS percentile","points":13.15},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"vyperlang","affectedVersions":[{"vendor":"vyperlang","product":"vyper","versions":["< 0.3.0"]}],"affected":[{"ecosystem":"PyPI","package":"vyper","vulnerableRanges":["<0.3.0"],"patched":["0.3.0"],"from":["GHSA-xv8x-pr4h-73jv","PYSEC-2021-365"],"provenance":"source"}],"summary":{"text":"The flaw is a memory corruption issue in the Vyper smart contract language (vyperlang/vyper), which arises when a function call is made inside a literal struct because of an incorrect pointer to the top of the stack. An attacker who can get a contract compiled with the affected compiler to perform such a call can corrupt memory, and exploiting it requires network access, low-privilege authentication and a high-complexity attack condition with no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:52Z"},"euvd":{"id":"EUVD-2021-0459","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-41121","published":"2021-10-06","fixed":"0.3.0","kev":false},{"cve":"CVE-2021-41122","published":"2021-10-05","fixed":"0.3.0","kev":false},{"cve":"CVE-2024-32648","published":"2024-04-25","fixed":"0.3.0","kev":false},{"cve":"CVE-2023-39363","published":"2023-08-07","fixed":"0.3.1","kev":false,"link":{"from":"CVE-2021-41121","to":"CVE-2023-39363","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:vyper","fromFixed":"0.3.0","toFixed":"0.3.1","daysApart":670}]}}],"package":"PyPI:vyper"}}