CVE-2025-26622
sqrt doesn't define rounding behavior in Vyper
7.5CVSSHIGH
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.
CVSS Vector Breakdown
Exploitability
AV:NAttack VectorNetwork
AC:LAttack ComplexityLow
PR:NPrivileges RequiredNone
UI:NUser InteractionNone
Scope
S:UScopeUnchanged
Impact
C:NConfidentialityNone
I:HIntegrityHigh
A:NAvailabilityNone
Weaknesses
Affected Products
Exploitability
Official Patch Available
References
https://github.com/vyperlang/vyper/security/advisories/GHSA-2p94-8669-xg86
github.com
https://github.com/vyperlang/vyper/pull/4486
github.com
https://nvd.nist.gov/vuln/detail/CVE-2025-26622
nvd.nist.gov
and 2 more references View all →
Timeline
Published
Feb 21, 2025
Last Updated
Mar 28, 2025
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2025-26622 and every CVE in our database. Create a free account — no credit card required.
Create Free AccountPlain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows