CVE-2025-26622

HIGH

vyperlang/vyper < 0.4.1 - Incorrect Calculation in sqrt() Builtin

Title source: llm
STIX 2.1

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.

References (2)

Core 2
Core References
Issue Tracking, Patch x_refsource_misc
https://github.com/vyperlang/vyper/pull/4486

Scores

CVSS v3 7.5
EPSS 0.0029
EPSS Percentile 20.9%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact partial

Details

CWE
CWE-682
Status published
Products (2)
pypi/vyper 0 - 0.4.1PyPI
vyperlang/vyper < 0.4.1
Published Feb 21, 2025
Tracked Since Feb 18, 2026