VDB
Sign up
MEDIUM5.3

PYSEC-2023-133

Quick fix

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

pip install --upgrade 'vyper>=019a37ab98ff53f04fecfadf602b6cd5ac748f7f'

Details

Vyper is a Pythonic programming language that targets the Ethereum Virtual Machine (EVM). Prior to version 0.3.10, the ecrecover precompile does not fill the output buffer if the signature does not verify. However, the ecrecover builtin will still return whatever is at memory location 0. This means that the if the compiler has been convinced to write to the 0 memory location with specially crafted data (generally, this can happen with a hashmap access or immutable read) just before the ecrecover, a signature check might pass on an invalid signature. Version 0.3.10 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: 019a37ab98ff53f04fecfadf602b6cd5ac748f7f
Fixpip install --upgrade 'vyper>=019a37ab98ff53f04fecfadf602b6cd5ac748f7f'

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