MEDIUM5.3
PYSEC-2024-164
Quick fix
PYSEC-2024-164 — vyper: upgrade to the fixed version with the command below.
pip install --upgrade 'vyper>=0.4.0b1'Details
Vyper is a pythonic Smart Contract Language for the ethereum virtual machine. If an excessively large value is specified as the starting index for an array in `_abi_decode`, it can cause the read position to overflow. This results in the decoding of values outside the intended array bounds, potentially leading to exploitations in contracts that use arrays within `_abi_decode`. This vulnerability affects 0.3.10 and earlier versions.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://github.com/vyperlang/vyper/security/advisories/GHSA-9p8r-4xp4-gw5w[ADVISORY]
- https://github.com/vyperlang/vyper/security/advisories/GHSA-9p8r-4xp4-gw5w[EVIDENCE]
- https://github.com/vyperlang/vyper/security/advisories/GHSA-9p8r-4xp4-gw5w[FIX]
- https://github.com/advisories/GHSA-9p8r-4xp4-gw5w[ADVISORY]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:pypi/vyper"]}'