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

CVE-2024-32649: vyper performs multiple eval of `sqrt()` argument built in

April 25, 2024 (updated January 21, 2025)

Using the sqrt builtin can result in multiple eval evaluation of side effects when the argument has side-effects. The bug is more difficult (but not impossible!) to trigger as of 0.3.4, when the unique symbol fence was introduced (https://github.com/vyperlang/vyper/pull/2914).

A contract search was performed and no vulnerable contracts were found in production.

References

  • github.com/advisories/GHSA-5jrj-52x8-m64h
  • github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2024-209.yaml
  • github.com/vyperlang/vyper
  • github.com/vyperlang/vyper/pull/2914
  • github.com/vyperlang/vyper/security/advisories/GHSA-5jrj-52x8-m64h
  • nvd.nist.gov/vuln/detail/CVE-2024-32649

Code Behaviors & Features

Detect and mitigate CVE-2024-32649 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:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

Source file

pypi/vyper/CVE-2024-32649.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:19 +0000.