# CVE-2023-30629: Vyper's raw_call with outsize=0 and revert_on_failure=False returns incorrect success value

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.88%, higher than 60% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-04-24T21:58:00.227Z
- Modified: 2026-09-10T03:50:01.176Z
- Also known as: GHSA-w9g2-3w7p-72g9, PYSEC-2023-131
- Weaknesses: CWE-670
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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`.

(As written by CVE List.)

## Affected

- vyperlang vyper: >= 0.3.1, <= 0.3.7; from 0.3.1 before 0.3.8
- vyper (PyPI): from 0.3.1 before 0.3.8; before 851f7a1b3aa2a36fd041e3d0ed38f9355a58c8ae

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/vyperlang/vyper/security/advisories/GHSA-w9g2-3w7p-72g9> (exploit, advisory, vendor-advisory, web)
- <https://github.com/lidofinance/gate-seals/pull/5/files> (fix, patch, web)
- <https://github.com/vyperlang/vyper/commit/851f7a1b3aa2a36fd041e3d0ed38f9355a58c8ae> (fix, patch, web)
- <https://docs.vyperlang.org/en/v0.3.7/built-in-functions.html#raw_call> (product, web)
- <https://github.com/lidofinance/gate-seals/blob/051593e74df01a4131c485b4fda52e691cd4b7d8/contracts/GateSeal.vy#L164> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-30629> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2023-131.yaml> (web)
- <https://github.com/vyperlang/vyper> (package)

## Sources

- CVE List: [CVE-2023-30629](https://www.cve.org/CVERecord?id=CVE-2023-30629), CVE Terms of Use, modified 2025-02-12
- GitHub Advisory Database: [GHSA-w9g2-3w7p-72g9](https://github.com/advisories/GHSA-w9g2-3w7p-72g9), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-30629](https://nvd.nist.gov/vuln/detail/CVE-2023-30629), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-131](https://osv.dev/vulnerability/PYSEC-2023-131), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2023-30629 · Whole record: https://cve.day/CVE-2023-30629.json · Rebuilt by cve.day 2026-11-25T22:58:23.735Z
