Vyper's raw_call with outsize=0 and revert_on_failure=False returns incorrect success value
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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`.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| vyperlang | vyper | 0.3.1 – 0.3.7 | — | No fix listed | CNA |
| — | vyper (PyPI) | 0.3.1 to before 0.3.8 | 0.3.8 | Patch available | GHSA-w9g2-3w7p-72g9 |
- vyper Vendorvyperlang Affected 0.3.1 – 0.3.7 Fixed in — No fix listed CNA
- vyper (PyPI) Vendor— Affected 0.3.1 to before 0.3.8 Fixed in 0.3.8 Patch available GHSA-w9g2-3w7p-72g9
Remediation
- Fix · GHSA-w9g2-3w7p-72g9 vyper (PyPI) Fixed in 0.3.8 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-30629
- 2026-10-03 Alias added: GHSA-w9g2-3w7p-72g9
References
Patch 2
Other 4
- https://docs.vyperlang.org/en/v0.3.7/built-in-functions.html#raw_call
- https://github.com/lidofinance/gate-seals/blob/051593e74df01a4131c485b4fda52e691cd4b7d8/contracts/GateSeal.vy#L164
- https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2023-131.yaml
- https://github.com/vyperlang/vyper
More vyperlang Vyper vulnerabilities
- TI-2024-16182 Vyper bounds check on built-in `slice()` function can be overflowed CVSS 3.1CRITICAL 9.8
- TI-2024-14992 concat built-in can corrupt memory in vyper CVSS 3.1CRITICAL 9.8
- TI-2024-16184 Vyper array negative index vulnerability CVSS 3.1CRITICAL 9.8
- TI-2022-08657 Integer bounds error in Vyper CVSS 3.1CRITICAL 9.8
- TI-2022-11796 Multiple evaluation of contract address in call in vyper CVSS 3.1HIGH 8.2
- TI-2024-21531 vyper performs double eval of the argument of sqrt CVSS 3.1MEDIUM 5.3
Sources
- CVE-2023-30629 · CVE Program
- CVE-2023-30629 · NVD
- FIRST EPSS
- GHSA-w9g2-3w7p-72g9 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences