{"id":"CVE-2021-41121","state":"PUBLISHED","title":"Memory corruption in Vyper","description":"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.","publishedAt":"2021-10-06T17:10:51.000Z","updatedAt":"2024-08-04T02:59:31.559Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["vyperlang vyper"],"affected":[{"vendor":"vyperlang","product":"vyper","versions":[{"version":"< 0.3.0","status":"affected"}]}],"references":["https://github.com/vyperlang/vyper/pull/2447","https://github.com/vyperlang/vyper/security/advisories/GHSA-xv8x-pr4h-73jv"],"weaknesses":["CWE-119"],"ingestedAt":"2026-10-29T19:49:01.697Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/41xxx/CVE-2021-41121.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-41121","state":"PUBLISHED","datePublished":"2021-10-06T17:10:51.000Z","dateUpdated":"2024-08-04T02:59:31.559Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2021-09-15T00:00:00.000Z"},"containers":{"cna":{"title":"Memory corruption in Vyper","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"vyperlang","product":"vyper","versions":[{"version":"< 0.3.0","status":"affected"}]}],"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"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-119","description":"CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","dateUpdated":"2021-10-06T17:10:51.000Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa"},"source":{"advisory":"GHSA-xv8x-pr4h-73jv","discovery":"UNKNOWN"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-41121","STATE":"PUBLIC","TITLE":"Memory corruption in Vyper"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"vyper","version":{"version_data":[{"version_value":"< 0.3.0"}]}}]},"vendor_name":"vyperlang"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer"}]}]},"references":{"reference_data":[{"name":"https://github.com/vyperlang/vyper/pull/2447","refsource":"MISC","url":"https://github.com/vyperlang/vyper/pull/2447"},{"name":"https://github.com/vyperlang/vyper/security/advisories/GHSA-xv8x-pr4h-73jv","refsource":"CONFIRM","url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-xv8x-pr4h-73jv"}]},"source":{"advisory":"GHSA-xv8x-pr4h-73jv","discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/vyperlang/vyper/pull/2447","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-xv8x-pr4h-73jv","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T02:59:31.559Z"}}]}}}