{"id":"CVE-2023-30629","published":"2023-04-24T21:58:00Z","modified":"2025-02-12T16:35:42Z","title":"Vyper's raw_call with outsize=0 and revert_on_failure=False returns incorrect success value","vendor":"vyperlang","product":"vyper","tier":"tail","description":{"text":"Vyper is a Pythonic Smart Contract Language for the ethereum virtual machine. In versions 0.3.1 through 0.3.7, the Vyper compiler generates the wrong bytecode. Any contract that uses the `raw_call` with `revert_on_failure=False` and `max_outsize=0` receives the wrong response from `raw_call`. Depending on the memory garbage, the result can be either `True` or `False`. A patch is available and, as of time of publication, anticipated to be part of Vyper 0.3.8. As a workaround, one may always put  `max_outsize>0`.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00901,"percentile":0.57679,"provenance":"source"},"cwes":[{"id":"CWE-670","name":"Always-Incorrect Control Flow Implementation"}],"references":[{"url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-w9g2-3w7p-72g9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/lidofinance/gate-seals/pull/5/files","tags":["x_refsource_MISC"]},{"url":"https://github.com/vyperlang/vyper/commit/851f7a1b3aa2a36fd041e3d0ed38f9355a58c8ae","tags":["x_refsource_MISC"]},{"url":"https://docs.vyperlang.org/en/v0.3.7/built-in-functions.html#raw_call","tags":["x_refsource_MISC"]},{"url":"https://github.com/lidofinance/gate-seals/blob/051593e74df01a4131c485b4fda52e691cd4b7d8/contracts/GateSeal.vy#L164","tags":["x_refsource_MISC"]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":11.54},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"vyperlang","affectedVersions":[{"vendor":"vyperlang","product":"vyper","versions":[">= 0.3.1, <= 0.3.7"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-02-03T20:54:22.454011Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"vyper","vulnerableRanges":[">=0.3.1, <0.3.8"],"patched":["0.3.8"],"from":["GHSA-w9g2-3w7p-72g9","PYSEC-2023-131"],"provenance":"source"}],"summary":{"text":"The Vyper compiler (versions 0.3.1 through 0.3.7) generates incorrect bytecode for raw_call when revert_on_failure=False and max_outsize=0 are both used, so the call's success result can be wrong. An attacker with network access can trigger this without authentication or user interaction, and the outcome depends on leftover memory contents, which may make the returned value either True or False; the flaw is in contracts compiled with those affected versions and that specific call configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:47:45Z"},"euvd":{"id":"EUVD-2023-0263","exploited":false,"provenance":"source"}}