CVE-2022-24845
Integer bounds error in Vyper
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (high).
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 and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| pip::GitHub Security Advisory pip | vyper | 0.3.2 |
References
- https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2022-198.yaml
- https://github.com/vyperlang/vyper
- https://github.com/vyperlang/vyper/commit/049dbdc647b2ce838fae7c188e6bb09cf16e470b
- https://github.com/vyperlang/vyper/security/advisories/GHSA-j2x6-9323-fp7h
- https://nvd.nist.gov/vuln/detail/CVE-2022-24845