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

CVE-2021-41121: Memory corruption when returning a literal struct with a private call inside of it

October 12, 2021 (updated November 18, 2024)

When performing a function call inside a literal struct, there is a memory corruption issue that occurs because of an incorrect pointer to the the top of the stack.

References

  • github.com/advisories/GHSA-xv8x-pr4h-73jv
  • github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2021-365.yaml
  • github.com/vyperlang/vyper
  • github.com/vyperlang/vyper/pull/2447
  • github.com/vyperlang/vyper/security/advisories/GHSA-xv8x-pr4h-73jv
  • nvd.nist.gov/vuln/detail/CVE-2021-41121

Code Behaviors & Features

Detect and mitigate CVE-2021-41121 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.3.0

Fixed versions

  • 0.3.0

Solution

Upgrade to version 0.3.0 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/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

Source file

pypi/vyper/CVE-2021-41121.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:59 +0000.