VDB
Sign up
CRITICAL9.1

PYSEC-2023-77

Quick fix

PYSEC-2023-77 — vyper: upgrade to the fixed version with the command below.

pip install --upgrade 'vyper>=4f8289a81206f767df1900ac48f485d90fc87edb'

Details

Vyper is a Pythonic smart contract language for the Ethereum virtual machine. Prior to version 0.3.8, during codegen, the length word of a dynarray is written before the data, which can result in out-of-bounds array access in the case where the dynarray is on both the lhs and rhs of an assignment. The issue can cause data corruption across call frames. The expected behavior is to revert due to out-of-bounds array access. Version 0.3.8 contains a patch for this issue.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/vyper
Introduced in: 0Fixed in: 4f8289a81206f767df1900ac48f485d90fc87edb
Fixpip install --upgrade 'vyper>=4f8289a81206f767df1900ac48f485d90fc87edb'

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