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

CVE-2024-32481: vyper's range(start, start + N) reverts for negative numbers

April 25, 2024

When looping over a range of the form range(start, start + N), if start is negative, the execution will always revert.

References

  • github.com/advisories/GHSA-ppx5-q359-pvwj
  • github.com/vyperlang/vyper
  • github.com/vyperlang/vyper/blob/9136169468f317a53b4e7448389aa315f90b95ba/vyper/codegen/stmt.py
  • github.com/vyperlang/vyper/commit/3de1415ee77a9244eb04bdb695e249d3ec9ed868
  • github.com/vyperlang/vyper/commit/5319cfbe14951e007ccdb323257e5ada869b35d5
  • github.com/vyperlang/vyper/security/advisories/GHSA-ppx5-q359-pvwj
  • nvd.nist.gov/vuln/detail/CVE-2024-32481

Code Behaviors & Features

Detect and mitigate CVE-2024-32481 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 starting from 0.3.8 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-681: Incorrect Conversion between Numeric Types

Source file

pypi/vyper/CVE-2024-32481.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:13 +0000.