GHSA-c7pr-343r-5c46

ghsaUSosv

missing clamps for decimal args in external functions

view advisory published 2021-10-06Licence: CC-BY-4.0

### Impact The following code does not properly validate that its input is in bounds. ```python @external def foo(x: decimal) -> decimal: return x ``` ### Patches 0.3.0 / #2447 ### Workarounds Don't use decimal args

01

describes (1)

Related CVEs.

IDseverity exploitable
CVE-2021-41122USmedium4.0—
Vyper is a Pythonic Smart Contract Language for the EVM. In affected versions external functions did not properly validate the bounds of decimal arguments. The can lead to logic er…
02

references

External citations — patches, advisories, analysis.

scry

Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.

Free scan