BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2024-32481 in Vyperlang Vyper

Medium 5.3

Vyper is a pythonic Smart Contract Language for the Ethereum virtual machine. Starting in version 0.3.8 and prior to version 0.4.0b1, when looping over a `range` of the form `range(start, start + N)`, if `start` is negative, the execution will always revert. This issue is caused by an incorrect assertion inserted by...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.15.3
EPSS0.9%
EPSS percentile58th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Vyperlang Vyper 0.4.0 ≥ 0.3.8, ≤ 0.3.10

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

Vyper is a pythonic Smart Contract Language for the Ethereum virtual machine. Starting in version 0.3.8 and prior to version 0.4.0b1, when looping over a `range` of the form `range(start, start + N)`, if `start` is negative, the execution will always revert. This issue is caused by an incorrect assertion inserted by the code generation of the range `stmt.parse_For_range()`. The issue arises when `start` is signed, instead of using `sle`, `le` is used and `start` is interpreted as an unsigned integer for the comparison. If it is a negative number, its 255th bit is set to `1` and is hence interpreted as a very large unsigned integer making the assertion always fail. Any contract having a `range(start, start + N)` where `start` is a signed integer with the possibility for `start` to be negative is affected. If a call goes through the loop while supplying a negative `start` the execution will revert. Version 0.4.0b1 fixes the issue.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2024-32481
BreachSpider IDBS-2024-GLOBAL-191990-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Published2024-04-25
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-681: CWE-681

Analysis AI-written, not human-reviewed

CVE-2024-32481 affects Vyper smart contract language versions 0.3.8 to 0.4.0b1, causing execution reverts when looping over a negative range.

The vulnerability arises from incorrect assertion handling in the code generation for range statements, specifically when the start value of a range is negative.

Questions

What is CVE-2024-32481?

CVE-2024-32481 affects Vyper smart contract language versions 0.3.8 to 0.4.0b1, causing execution reverts when looping over a negative range.

What is the CVSS score for CVE-2024-32481?

CVE-2024-32481 has CVSS 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N. EPSS: 0.9%.

Is CVE-2024-32481 actively exploited?

No confirmed active exploitation of CVE-2024-32481 as of 2026-09-25.

How do I remediate CVE-2024-32481?

Priority: MEDIUM. PSIRT: [email protected]

What systems are affected by CVE-2024-32481?

CVE-2024-32481 affects Vyperlang Vyper.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Vyperlang","product":"Vyper","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.