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

CVE-2024-24559: Vyper sha3 codegen bug

February 5, 2024 (updated November 22, 2024)

There is an error in the stack management when compiling the IR for sha3_64. Concretely, the height variable is miscalculated. The vulnerability can’t be triggered without writing the IR by hand. That is, it cannot be triggered from regular vyper code, it can only be triggered by using the fang binary directly (this binary used to be called vyper-ir prior to v0.3.4).

References

  • github.com/advisories/GHSA-6845-xw22-ffxv
  • github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2024-147.yaml
  • github.com/vyperlang/vyper
  • github.com/vyperlang/vyper/blob/c150fc49ee9375a930d177044559b83cb95f7963/vyper/ir/compile_ir.py
  • github.com/vyperlang/vyper/commit/d9f9fdadd81a148cbc68f02dbbbcdc0c92fad652
  • github.com/vyperlang/vyper/pull/4063
  • github.com/vyperlang/vyper/security/advisories/GHSA-6845-xw22-ffxv
  • nvd.nist.gov/vuln/detail/CVE-2024-24559

Code Behaviors & Features

Detect and mitigate CVE-2024-24559 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.4.0

Fixed versions

  • 0.4.0

Solution

Upgrade to version 0.4.0 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-327: Use of a Broken or Risky Cryptographic Algorithm

Source file

pypi/vyper/CVE-2024-24559.yml

Spotted a mistake? Edit the file on GitLab.

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

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