High severityNVD Advisory· Published Apr 13, 2022· Updated Apr 22, 2025
Integer bounds error in Vyper
CVE-2022-24845
Description
Vyper is a pythonic Smart Contract Language for the ethereum virtual machine. In affected versions, the return of .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, .returns_int128() is validated in simple expressions, but not complex expressions. Users are advised to upgrade. There is no known workaround for this issue.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
vyperPyPI | < 0.3.2 | 0.3.2 |
Affected products
2Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-j2x6-9323-fp7hghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-24845ghsaADVISORY
- github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2022-198.yamlghsaWEB
- github.com/vyperlang/vyper/commit/049dbdc647b2ce838fae7c188e6bb09cf16e470bghsax_refsource_MISCWEB
- github.com/vyperlang/vyper/security/advisories/GHSA-j2x6-9323-fp7hghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.