Skip to main content
← All vulnerabilities
CVE-2025-26622PYSEC-2025-29GHSA-2P94-8669-XG86

sqrt doesn't define rounding behavior in Vyper

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.4.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • vyperlang vyper

    fixed in 0.4.1

  • vyperPyPI

    fixed in 0.4.1

References 2

GitHub · vyperlang/vyper