GitHub Advisory Database
GHSA-c7pr-343r-5c46
missing clamps for decimal args in external functions
Details
Impact
The following code does not properly validate that its input is in bounds.
@external
def foo(x: decimal) -> decimal:
return x
Patches
0.3.0 / #2447
Workarounds
Don't use decimal args
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | vyper | All versions before 0.3.0 (fixed in 0.3.0) |