Vulnerabilities · 2024 · Vyperlang
CVE-2024-24561
Vyperlang Vyper vulnerability
Vyper is a pythonic Smart Contract Language for the ethereum virtual machine. In versions 0.3.10 and earlier, the bounds check for slices does not account for the ability for start + length to overflow when the values aren't literals. If a slice() function uses a non-literal argument for the start or length variable, this creates the ability for an attacker to overflow the bounds check. This issue can be used to do OOB access to storage, memory or calldata addresses. It can also be used to corrupt the length slot of the respective array.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Vyper. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Vyperlang Vyper runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/vyperlang/vyper/security/advisories/GHSA-9x7f-gwxq-6f2c · Exploit
- github.com/vyperlang/vyper/blob/b01cd686aa567b32498fefd76bd96b0597c6f099/vyper/builtins/fu
- github.com/vyperlang/vyper/issues/3756
- nvd.nist.gov/vuln/detail/CVE-2024-24561
- github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2024-149.yaml
- github.com/advisories/GHSA-9x7f-gwxq-6f2c
- nvd.nist.gov/vuln/detail/CVE-2024-24561
- cve.org/CVERecord?id=CVE-2024-24561
More vulnerabilities in Vyperlang products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.