CVE-2024-32481
5.3 · MEDIUMOverview
CVE-2024-32481 is a medium-severity vulnerability affecting vyperlang vyper. It was published on April 25, 2024 and has a CVSS 3.1 base score of 5.3 (MEDIUM).
This vulnerability has a CVSS 3.1 base score of 5.3, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.
Technical 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.
Remediation
Check the references section for vendor advisories and patches from vyperlang. Update vyper to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.
Affected Products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| vyperlang | vyper | 0.3.8 | Affected |
References
Frequently Asked Questions
What is CVE-2024-32481?
CVE-2024-32481 is a medium-severity vulnerability affecting vyperlang vyper. It was published on April 25, 2024 and has a CVSS 3.1 base score of 5.3 (MEDIUM).
How severe is CVE-2024-32481?
This vulnerability has a CVSS 3.1 base score of 5.3, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.
How do I fix or remediate CVE-2024-32481?
Check the references section for vendor advisories and patches from vyperlang. Update vyper to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.
How can CyberStrike help with CVE-2024-32481?
CyberStrike's AI-powered security agents can automatically detect CVE-2024-32481 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.
How CyberStrike Helps
AI agents map your attack surface to find vulnerabilities like this one.
Automated penetration testing that runs continuously, not just quarterly.
AI-driven PR review catches vulnerable dependencies before they ship.
Browser-based exploitation validates findings with real proof-of-concept.
Related MEDIUM CVEs from 2024
View all →OCSInventory allow stored email template with special characters that lead to a Stored cross-site Sc
This vulnerability exist in Skyworth Router CM5100, version 4.1.1.24, due to insufficient validation
This vulnerability exist in Skyworth Router CM5100, version 4.1.1.24, due to insufficient validation
This vulnerability exist in Skyworth Router CM5100, version 4.1.1.24, due to insufficient validation
This vulnerability exist in Skyworth Router CM5100, version 4.1.1.24, due to insufficient validation
This vulnerability exist in Skyworth Router CM5100, version 4.1.1.24, due to insufficient validation
This vulnerability exist in Skyworth Router CM5100, version 4.1.1.24, due to insufficient validation
This vulnerability exist in Skyworth Router CM5100, version 4.1.1.24, due to insufficient validation
This vulnerability exist in Skyworth Router CM5100, version 4.1.1.24, due to insufficient validation
This vulnerability exist in Skyworth Router CM5100, version 4.1.1.24, due to insufficient validation
This vulnerability exist in Skyworth Router CM5100, version 4.1.1.24, due to insufficient validation
This vulnerability exist in Skyworth Router CM5100, version 4.1.1.24, due to insufficient validation