# CVE-2025-26622: sqrt doesn't define rounding behavior in Vyper

- Severity: Low 2.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA: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.34%, higher than 28% of CVEs (2026-12-01)
- Published: 2025-02-21T21:36:19.063Z
- Modified: 2026-06-17T09:02:08.880Z
- Also known as: GHSA-2p94-8669-xg86, PYSEC-2025-29
- Weaknesses: CWE-682
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

vyper is a Pythonic Smart Contract Language for the EVM. Vyper `sqrt()` builtin uses the babylonian method to calculate square roots of decimals. Unfortunately, improper handling of the oscillating final states may lead to sqrt incorrectly returning rounded up results. This issue is being addressed and a fix is expected in version 0.4.1. Users are advised to upgrade as soon as the patched release is available. There are no known workarounds for this vulnerability.

(As written by CVE List.)

## Affected

- vyperlang vyper: < 0.4.1; before 0.4.1
- vyper (PyPI): before 0.4.1

## Every score

- GitHub_M: CVSS:4.0 2.3 Low `CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- CISA-ADP: 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 Low `CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/vyperlang/vyper/security/advisories/GHSA-2p94-8669-xg86> (advisory, vendor-advisory, web)
- <https://github.com/vyperlang/vyper/pull/4486> (issue-tracking, patch, report, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-26622> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2025-29.yaml> (web)
- <https://github.com/vyperlang/vyper> (package)

## Sources

- CVE List: [CVE-2025-26622](https://www.cve.org/CVERecord?id=CVE-2025-26622), CVE Terms of Use, modified 2025-02-22
- GitHub Advisory Database: [GHSA-2p94-8669-xg86](https://github.com/advisories/GHSA-2p94-8669-xg86), CC-BY-4.0, modified 2025-04-09
- NVD: [CVE-2025-26622](https://nvd.nist.gov/vuln/detail/CVE-2025-26622), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-29](https://osv.dev/vulnerability/PYSEC-2025-29), CC-BY-4.0, modified 2025-04-09

---

Page: https://cve.day/CVE-2025-26622 · Whole record: https://cve.day/CVE-2025-26622.json · Rebuilt by cve.day 2026-11-25T22:58:54.221Z
