CVE-2022-24845 json
Integer bounds error in Vyper
published 2022-04-13 4 y ago modified 2026-06-17 4 mo ago also GHSA-j2x6-9323-fp7h , PYSEC-2022-198 , EUVD-2022-0355
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 73%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi vyper 0.3.2
- vyperlang vyper 0.3.2
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
1.43% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/vyperlang/vyper/security/advisories/GHSA-j2x6-9323-fp7h referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | vyper | <0.3.2 |
0.3.2 |
Affected products
- vyperlang vyper
Classification
- Weakness
-
- CWE-190 Integer Overflow or Wraparound
References
-
github.com
/vyperlang/vyper/commit/049dbdc647b2ce838fae7c188e6bb09cf16e470b
web, patch, third-party-advisory
-
github.com
/vyperlang/vyper/security/advisories/GHSA-j2x6-9323-fp7h
web, exploit, patch, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-24845
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2022-198.yaml
web
-
github.com
/vyperlang/vyper
package
Sources
- CVE List CVE-2022-24845
- GitHub Advisory GHSA-j2x6-9323-fp7h
- NVD CVE-2022-24845
- OSV PYSEC-2022-198
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.