Skip to content
OpenAdvisories
High · 8.8 CVE-2022-24845 EUVD-2022-0355GHSA-j2x6-9323-fp7hPYSEC-2022-198

Integer bounds error in Vyper

Published Apr 13, 2022 · Updated Apr 22, 2025 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
vyperlang vyper < 0.3.2 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI vyper < 0.3.2 0.3.2 GHSA-j2x6-9323-fp7h

References