PoC Monitor
← All CVEs
CVE-2025-26622published 21 Feb 2025 21:36 UTCData: JSON · API

Vyper

sqrt doesn't define rounding behavior in Vyper

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by CISA ADP · CWE-682
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

vyperlang vyper
  • < 0.4.1

Fixed in 0.4.1

Mitigation

Upgrade vyper to 0.4.1 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published21 Feb 2025 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.