PYSEC-2023-80
Quick fix
PYSEC-2023-80 — vyper: upgrade to the fixed version with the command below.
pip install --upgrade 'vyper>=02339dfda0f3caabad142060d511d10bfe93c520.'Details
Vyper is a pythonic Smart Contract Language for the ethereum virtual machine. In contracts with more than one regular nonpayable function, it is possible to send funds to the default function, even if the default function is marked `nonpayable`. This applies to contracts compiled with vyper versions prior to 0.3.8. This issue was fixed by the removal of the global `calldatasize` check in commit `02339dfda`. Users are advised to upgrade to version 0.3.8. Users unable to upgrade should avoid use of nonpayable default functions.
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 02339dfda0f3caabad142060d511d10bfe93c520.pip install --upgrade 'vyper>=02339dfda0f3caabad142060d511d10bfe93c520.'References
- https://github.com/vyperlang/vyper/security/advisories/GHSA-vxmm-cwh2-q762[EVIDENCE]
- https://github.com/vyperlang/vyper/security/advisories/GHSA-vxmm-cwh2-q762[FIX]
- https://github.com/vyperlang/vyper/security/advisories/GHSA-vxmm-cwh2-q762[ADVISORY]
- https://github.com/vyperlang/vyper/commit/02339dfda0f3caabad142060d511d10bfe93c520.[FIX]
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"]}'