VDB
Sign up
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

PyPI/vyper
Introduced in: 0Fixed in: 0.4.0b1
Fixpip install --upgrade 'vyper>=0.4.0b1'

References

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"]}'