Vulnerability · Published Apr 13, 2022 · Assigned by GitHub_M

CVE-2022-24845Integer bounds error in Vyper

High 8.8

In plain English

A high-severity integer overflow in vyper from vyperlang. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 73% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)1.4%top 26.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

Vyper is a pythonic Smart Contract Language for the ethereum virtual machine. In affected versions, the return of `<iface>.returns_int128()` is not validated to fall within the bounds of `int128`. This issue can result in a misinterpretation of the integer value and lead to incorrect behavior. As of v0.3.0, `<iface>.returns_int128()` is validated in simple expressions, but not complex expressions. Users are advised to upgrade. There is no known workaround for this issue.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIvyper0.3.2GHSA-j2x6-9323-fp7h
PyPIvyper0.3.2PYSEC-2022-198

Affected products (as reported)

VendorProductVersions
vyperlang vyper < 0.3.2

Weakness: CWE-190 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References