CVE & CISA-KEV Catalog

CVE-2024-32481

MEDIUM
5.3
CVSS v3
NVD

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.

How to fix

No published remediation has been found for this vulnerability's affected products yet.

Mitigation guidance may be in the linked vendor advisories in the References section below.

TridentStack Control tracks known vulnerabilities across your Windows, macOS, and Linux fleet and shows the fix as soon as one is published. See how it works

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityLow
AvailabilityNone

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

Exploit Intelligence

0.80%probability of exploitation in 30 days
53rdpercentile

Moderate risk: more likely to be exploited than 53% of all known CVEs.

References

Related Vulnerabilities

Other CWE-681 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2022-34169High7.581%-Fix
CVE-2009-0231High8.837%--
CVE-2016-3074Critical9.837%-Fix
CVE-2008-1721High7.523%-Fix
CVE-2017-7308High7.818%-Fix
CVE-2022-43663High8.114%--

Common questions

How do I fix CVE-2024-32481?

No published fix for CVE-2024-32481 has been found yet. Check the linked vendor advisories for guidance as it becomes available.

Is CVE-2024-32481 being actively exploited?

Not that we know of. CVE-2024-32481 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.80% is the estimated probability that it will be exploited in the next 30 days. That is higher than 53% of all scored CVEs.

How severe is CVE-2024-32481?

CVE-2024-32481 has a CVSS v3 base score of 5.3, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

Embed a live status badge for CVE-2024-32481
CVE-2024-32481 severity badge

Markdown

[![CVE-2024-32481](https://tridentstack.com/cve/badge/CVE-2024-32481.svg)](https://tridentstack.com/cve/CVE-2024-32481)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-32481"><img src="https://tridentstack.com/cve/badge/CVE-2024-32481.svg" alt="CVE-2024-32481"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-05-05.