CVE-2025-26622 LOW

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

Vendor Vyperlang
Product vyper
Weakness CWE-682
Published February 21, 2025
Last update February 22, 2025

CVSS base score

2.3/10
Attack vector Network
Attack complexity High
Privileges required Low
User interaction None
Confidentiality
Integrity

CVSS vector

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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

February 21, 2025 CVE published
February 22, 2025 Record updated