Skip to content
OpenAdvisories
High · 7.5 CVE-2023-32059 EUVD-2023-0272GHSA-ph9x-4vc9-m39gPYSEC-2023-79

Vyper vulnerable to incorrect ordering of arguments for kwargs passed to internal calls

Published May 11, 2023 · Updated Jan 24, 2025 · Assigned by GitHub_M

Description

Vyper is a Pythonic smart contract language for the Ethereum virtual machine. Prior to version 0.3.8, internal calls with default arguments are compiled incorrectly. Depending on the number of arguments provided in the call, the defaults are added not right-to-left, but left-to-right. If the types are incompatible, typechecking is bypassed. The ability to pass kwargs to internal functions is an undocumented feature that is not well known about. The issue is patched in version 0.3.8.

Affected products

VendorProductAffectedFixed
vyperlang vyper < 0.3.8 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI vyper < 0.3.8 0.3.8 GHSA-ph9x-4vc9-m39g

References