PT-2025-7605
CVE-2025-26622
·
Published
2025-02-21
·
Updated
2025-02-26
Description by
CVSS 3.1
7.5
HighMetricsAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Name of the Vulnerable Software and Affected Versions
Vyper versions prior to 0.4.1
Description
The issue arises from the improper handling of oscillating final states in the
sqrt() function, which uses the babylonian method to calculate square roots of decimals. This can lead to sqrt() incorrectly returning rounded up results. The impact of this issue is considered low, as sqrt() is rarely used in the wild. However, since sqrt() can be used for determining boundary conditions, rounding down is preferred.Recommendations
For versions prior to 0.4.1, upgrade to version 0.4.1 as soon as the patched release is available.
As a temporary workaround, consider avoiding the use of the
sqrt() function until a patch is available.
Restrict the use of the sqrt() function in critical calculations to minimize the risk of exploitation. Found an issue in the description? Have something to add? Feel free to write us 👾