CVE-2024-32481: vyper's range(start, start + N) reverts for negative numbers
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 →