Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. vyper
  4. ›
  5. CVE-2022-24788

CVE-2022-24788: Buffer Overflow in vyper

April 20, 2022 (updated November 19, 2024)

Importing a function from a JSON interface which returns bytes generates bytecode which does not clamp bytes length, potentially resulting in a buffer overrun.

References

  • github.com/advisories/GHSA-4mrx-6fxm-8jpg
  • github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2022-197.yaml
  • github.com/vyperlang/vyper
  • github.com/vyperlang/vyper/commit/049dbdc647b2ce838fae7c188e6bb09cf16e470b
  • github.com/vyperlang/vyper/security/advisories/GHSA-4mrx-6fxm-8jpg
  • nvd.nist.gov/vuln/detail/CVE-2022-24788

Code Behaviors & Features

Detect and mitigate CVE-2022-24788 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.3.2

Fixed versions

  • 0.3.2

Solution

Upgrade to version 0.3.2 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
  • CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

Source file

pypi/vyper/CVE-2022-24788.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:15 +0000.