{"id":"CVE-2024-32647","published":"2024-04-25T17:41:44Z","modified":"2024-08-02T02:13:40Z","title":"vyper performs double eval of raw_args in create_from_blueprint","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 `create_from_blueprint` builtin can result in a double eval vulnerability when `raw_args=True` and the `args` argument has side-effects. It can be seen that the `_build_create_IR` function of the `create_from_blueprint` builtin doesn't cache the mentioned `args` argument to the stack. As such, it can be evaluated multiple times (instead of retrieving the value from the stack). 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 exist.\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.401,"provenance":"source"},"cwes":[{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code"}],"references":[{"url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-3whq-64q2-qfj6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vyperlang/vyper/blob/cedf7087e68e67c7bfbd47ae95dcb16b81ad2e02/vyper/builtins/functions.py#L1847","tags":["x_refsource_MISC"]}],"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-30T15:54:24.635714Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"vyper","vulnerableRanges":["<0.4.0"],"patched":["0.4.0"],"from":["GHSA-3whq-64q2-qfj6","PYSEC-2024-208"],"provenance":"source"}],"summary":{"text":"The Vyper smart contract language (vyperlang vyper, versions 0.3.10 and prior) has a double-evaluation flaw in the create_from_blueprint builtin, where the _build_create_IR function does not cache the args argument on the stack when raw_args=True. An attacker can exploit this by supplying an args expression with side effects, which will be evaluated more than once.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:56:30Z"},"euvd":{"id":"EUVD-2024-0184","exploited":false,"provenance":"source"}}