{"id":"CVE-2024-32646","published":"2024-04-25T17:21:59Z","modified":"2024-08-02T02:13:40Z","title":"vyper performs double eval of the slice args when buffer from adhoc locations","vendor":"vyperlang","product":"vyper","tier":"tail","description":{"text":"Vyper is a pythonic Smart Contract Language for the Ethereum virtual machine. In versions 0.3.10 and prior, using the `slice` builtin can result in a double eval vulnerability when the buffer argument is either `msg.data`, `self.code` or `<address>.code` and either the `start` or `length` arguments have side-effects. It can be easily triggered only with the versions `<0.3.4` as `0.3.4` introduced the unique symbol fence. No vulnerable production contracts were found. Additionally, double evaluation of side-effects should be easily discoverable in client tests. As such, the impact is low. As of time of publication, no fixed versions are available.\n\n","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00451,"percentile":0.40104,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-r56x-j438-vw5m","tags":["x_refsource_CONFIRM"]}],"priority":{"score":11.7,"factors":[{"name":"EPSS percentile","points":8.02},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"vyperlang","affectedVersions":[{"vendor":"vyperlang","product":"vyper","versions":["<= 0.3.10"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-04-30T16:05:58.539270Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"vyper","vulnerableRanges":["<0.4.0"],"patched":["0.4.0"],"from":["GHSA-r56x-j438-vw5m","PYSEC-2024-207"],"provenance":"source"}],"summary":{"text":"The Vyper smart contract language (vyperlang vyper) mishandles the slice builtin: when the buffer argument is msg.data, self.code, or <address>.code and the start or length argument has side effects, those arguments are evaluated twice. Exploitation is reachable over the network with no privileges or user interaction, and the flaw is practically triggerable only in releases before 0.3.4, since later versions added a unique symbol fence that prevents it.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:55:47Z"},"euvd":{"id":"EUVD-2024-0183","exploited":false,"provenance":"source"}}