SecurityContext

CVE-2022-24845: Vyper - Logic Flaw

  • Cve: CVE-2022-24845
  • Name: Vyper - Logic Flaw
  • 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.
  • Impact: Incorrect interpretation of int128 values may lead to logical errors or unintended contract behavior.
  • Remediation: Upgrade to version 0.3.0 or later where validation is improved.
  • Vulnerability impact: data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.01426
  • Epss percentile: 0.73656
  • Assignee: [email protected]
  • Published at: 2022-04-13T22:15:08Z
  • Age in days: 1686
  • Modified at: 2026-06-17T04:32:38Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-24845
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: vulnerability type, requirements, hackerone

Cwe

IdName
CWE-190Integer Overflow or Wraparound

Public exploits

UrlSourceAdded date
https://github.com/vyperlang/vyper/security/advisories/GHSA-j2x6-9323-fp7hnvd2022-04-13

References

UrlSourceTags
https://github.com/vyperlang/vyper/commit/049dbdc647b2ce838fae7c188e6bb09cf16e470bnvdPatch, Third Party Advisory
https://github.com/vyperlang/vyper/security/advisories/GHSA-j2x6-9323-fp7hnvdExploit, Patch, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
vyperlang:vyper< 0.3.2nonvd/v1/products/vyperlang/vyper

Projects

RepositoryLink kindsIndexedUrl
vyperlang/vypercommit, fix, package, security_advisoryyes/v1/repositories/vyperlang/vyper

Index

  • Repositories: 2
  • Repositories high signal: 1
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2022-04-13
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts