# CVE-2024-32649: vyper performs double eval of the argument of sqrt

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/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.57%, higher than 41% of CVEs (2026-11-30)
- Published: 2024-04-25T17:53:01.072Z
- Modified: 2026-06-17T07:30:01.800Z
- Also known as: GHSA-5jrj-52x8-m64h, PYSEC-2024-209
- Weaknesses: CWE-95
- SSVC (CISA-ADP): exploitation poc, 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.10 and prior, using the `sqrt` builtin can result in double eval vulnerability when the argument has side-effects. It can be seen that the `build_IR` function of the `sqrt` builtin doesn't cache the 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 are available.

(As written by CVE List.)

## Affected

- vyperlang vyper: <= 0.3.10; *; before 0.4.0
- vyper (PyPI): before 0.4.0

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/vyperlang/vyper/security/advisories/GHSA-5jrj-52x8-m64h> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-32649> (advisory)
- <https://github.com/vyperlang/vyper/pull/2914> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2024-209.yaml> (web)
- <https://github.com/vyperlang/vyper> (package)
- <https://github.com/advisories/GHSA-5jrj-52x8-m64h> (advisory)

## Sources

- CVE List: [CVE-2024-32649](https://www.cve.org/CVERecord?id=CVE-2024-32649), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-5jrj-52x8-m64h](https://github.com/advisories/GHSA-5jrj-52x8-m64h), CC-BY-4.0, modified 2026-06-10
- NVD: [CVE-2024-32649](https://nvd.nist.gov/vuln/detail/CVE-2024-32649), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-209](https://osv.dev/vulnerability/PYSEC-2024-209), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2024-32649 · Whole record: https://cve.day/CVE-2024-32649.json · Rebuilt by cve.day 2026-11-25T22:58:39.607Z
