VDB
Sign up
MEDIUM

GHSA-22wc-c9wj-6q2v

VVE-2021-0001: Memory corruption using function calls within arrays

Quick fix

GHSA-22wc-c9wj-6q2v — vyper: upgrade to the fixed version with the command below.

pip install --upgrade 'vyper>=0.2.12'

Details

### Impact When performing a function call inside an array, there is a memory corruption issue that occurs because of an incorrect pointer to the the tip of the stack.

### Patches This issue was partially fixed in [VVE-2020-0004](https://github.com/vyperlang/vyper/security/advisories/GHSA-2r3x-4mrv-mcxf), however the fix did not update similar code for arrays, which had a similar issue. The issue is fully fixed in https://github.com/vyperlang/vyper/pull/2345

Are you affected?

Enter the version of the package you're using.

Affected packages

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

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