SecurityContext

CVE-2022-24788: Vyper - Buffer Overflow

  • Cve: CVE-2022-24788
  • Name: Vyper - Buffer Overflow
  • Description: Vyper is a pythonic Smart Contract Language for the ethereum virtual machine. Versions of vyper prior to 0.3.2 suffer from a potential buffer overrun. Importing a function from a JSON interface which returns `bytes` generates bytecode which does not clamp bytes length, potentially resulting in a buffer overrun. Users are advised to upgrade. There are no known workarounds for this issue.
  • Impact: Attackers can cause buffer overflows, potentially leading to arbitrary code execution or contract corruption.
  • Remediation: Upgrade to version 0.3.2 or later.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: remote_code_execution
  • Requirement type: user_interaction
  • Requirements: Attacker needs to supply malicious JSON interface
  • 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.00986
  • Epss percentile: 0.63295
  • Assignee: [email protected]
  • Published at: 2022-04-13T19:15:09Z
  • Age in days: 1686
  • Modified at: 2026-06-17T04:32:31Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-24788
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-120Buffer Copy without Checking Size of Input
CWE-119Improper Restriction of Operations within the Bounds of a Memory Buffer

References

UrlSourceTags
https://github.com/vyperlang/vyper/commit/049dbdc647b2ce838fae7c188e6bb09cf16e470bnvdPatch, Third Party Advisory
https://github.com/vyperlang/vyper/security/advisories/GHSA-4mrx-6fxm-8jpgnvdPatch, 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

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