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.
History

Fri, 28 Mar 2025 20:30:00 +0000

Type Values Removed Values Added
First Time appeared Vyperlang
Vyperlang vyper
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:a:vyperlang:vyper:*:*:*:*:*:python:*:*
Vendors & Products Vyperlang
Vyperlang vyper

Sat, 22 Feb 2025 16:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 21 Feb 2025 21:45:00 +0000

Type Values Removed Values Added
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.
Title sqrt doesn't define rounding behavior in Vyper
Weaknesses CWE-682
References
Metrics cvssV4_0

{'score': 2.3, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2025-02-22T15:34:42.831Z

Reserved: 2025-02-12T14:51:02.719Z

Link: CVE-2025-26622

cve-icon Vulnrichment

Updated: 2025-02-22T15:34:36.261Z

cve-icon NVD

Status : Analyzed

Published: 2025-02-21T22:15:13.447

Modified: 2025-03-28T20:06:00.130

Link: CVE-2025-26622

cve-icon Redhat

No data.