{"id":"CVE-2020-37287","aliases":["CVE-2020-37287","GHSA-4v7v-gqf9-ww2g"],"related":[],"kind":"vulnerability","state":"published","title":"Vyper before 0.2.6 Call Stack Corruption via Complex Type Function Arguments","summary":"Vyper before 0.2.6 contains a call stack corruption vulnerability that causes incorrect function outputs when complex types with non-base members are passed as arguments. Contracts passing multi-dimensional arrays or structs to internal or external functions receive corrupted values because the compiler assumed each subtype size is 32.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Vyper before 0.2.6 contains a call stack corruption vulnerability that causes incorrect function outputs when complex types with non-base members are passed as arguments. Contracts passing multi-dimensional arrays or structs to internal or external functions receive corrupted values because the compiler assumed each subtype size is 32.","source":"cvelist"},{"lang":"en","text":"### Impact\nWhen we pass a multi-dimensional array (like `[[1, 2], [3, 4]]`) as an argument to internal/external functions we get incorrect output. This is due to a stack management issue, because it was assumed that the size of each subtype of an array/struct is 32, which is not always correct.\n\nExample code:\n```python\n@internal\ndef test_input(arr: int128[2][1], i: int128) -> (int128[2][1], int128):\n    return arr, i\n\n@external\ndef test_values(arr: int128[2][1], i: int128) -> (int128[2][1], int128):\n    return self.test_input(arr, i)\n```\n\nPlease see #2183 for further information\n\n### Patches\nThis problem was fixed in #2184, and released as a part of [`v0.2.6`](https://github.com/vyperlang/vyper/releases/tag/v0.2.6).","format":"markdown","source":"ghsa"}],"published":"2026-10-06T15:22:23.000Z","modified":"2026-10-28T15:17:01.293Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":8.2,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-131","CWE-682"],"affected":[{"ranges":[{"type":"python","introduced":"0","fixed":"0.2.6","status":"affected"},{"type":"python","version":"0.2.6","status":"unaffected"}],"vendor":"vyperlang","product":"vyper","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.2.6"}],"ecosystem":"PyPI","package":"vyper","purl":"pkg:pypi/vyper","source":"ghsa"}],"references":[{"url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-4v7v-gqf9-ww2g","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/vyper-before-0.2.6-call-stack-corruption-via-complex-type-function-arguments","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/vyperlang/vyper/issues/2183","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vyperlang/vyper/pull/2184","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vyperlang/vyper/commit/0be02b7331e8febe79d5a4218829c72e30417a29","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vyperlang/vyper","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/vyperlang/vyper/releases/tag/v0.2.6","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-28T14:59:53.649Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-37287","url":"https://www.cve.org/CVERecord?id=CVE-2020-37287","licence":"CVE Terms of Use","modified":"2026-10-28T15:00:19.800Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4v7v-gqf9-ww2g","url":"https://github.com/advisories/GHSA-4v7v-gqf9-ww2g","licence":"CC-BY-4.0","modified":"2026-10-24T02:56:14.103Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-37287","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-37287","licence":"Public domain","modified":"2026-10-28T15:17:01.293Z"}],"updatedAt":"2026-11-25T22:57:59.135Z","epss":{"score":0.00307,"percentile":0.25328,"date":"2026-12-01T12:00:22.000Z"}}