{"id":"CVE-2020-37286","aliases":["CVE-2020-37286","GHSA-2r3x-4mrv-mcxf"],"related":[],"kind":"vulnerability","state":"published","title":"Vyper 0.1.0b4 before 0.3.0 Memory Corruption via Nested Internal Function Calls","summary":"Vyper from 0.1.0b4 before 0.3.0 contains a memory corruption vulnerability caused by an incorrect stack tip pointer when internal function calls appear inside tuples or nested calls. Contracts using such calls as tuple elements, call arguments, or builtin arguments like concat or ecrecover can return corrupted values or pass wrong arguments to external calls.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Vyper from 0.1.0b4 before 0.3.0 contains a memory corruption vulnerability caused by an incorrect stack tip pointer when internal function calls appear inside tuples or nested calls. Contracts using such calls as tuple elements, call arguments, or builtin arguments like concat or ecrecover can return corrupted values or pass wrong arguments to external calls.","source":"cvelist"},{"lang":"en","text":"### Impact\nWhen performing a function call inside a tuple or as an argument inside another function call, there is a memory corruption issue that occurs because of an incorrect pointer to the the tip of the stack.\n\nExample code:\n```python\n@internal\ndef _foo(a: uint256, b: uint256, c: uint256) -> (uint256, uint256, uint256, uint256, uint256):\n    return 1, a, b, c, 5\n\n@internal\ndef _foo2() -> uint256:\n    a: uint256[10] = [6,7,8,9,10,11,12,13,15,16]\n    return 4\n\n@external\ndef foo() -> (uint256, uint256, uint256, uint256, uint256):\n    return self._foo(2, 3, self._foo2())\n```\n\nPlease see #2186 for further information\n\n### Patches\nThis problem was fixed in #2186, 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:29.000Z","modified":"2026-10-27T22:17:07.217Z","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:L/SC:N/SI:N/SA:N","score":8.3,"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:L/SC:N/SI:N/SA:N","score":8.3,"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:L","score":6.5,"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-129","CWE-787"],"affected":[{"ranges":[{"type":"python","introduced":"0.1.0b4","fixed":"0.3.0","status":"affected"},{"type":"python","version":"0.3.0","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-2r3x-4mrv-mcxf","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/vyper-0.1-0b4-before-0.3.0-memory-corruption-via-nested-internal-function-calls","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/vyperlang/vyper/pull/2186","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vyperlang/vyper/commit/74ba67d4bec5f8be4f05759e37d2bfb1463e0441","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-27T21:34:53.989Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-37286","url":"https://www.cve.org/CVERecord?id=CVE-2020-37286","licence":"CVE Terms of Use","modified":"2026-10-27T21:35:03.319Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2r3x-4mrv-mcxf","url":"https://github.com/advisories/GHSA-2r3x-4mrv-mcxf","licence":"CC-BY-4.0","modified":"2026-10-24T02:56:14.247Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-37286","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-37286","licence":"Public domain","modified":"2026-10-27T22:17:07.217Z"}],"updatedAt":"2026-11-25T22:57:59.135Z","epss":{"score":0.00347,"percentile":0.30273,"date":"2026-12-01T12:00:22.000Z"}}