CVE-2021-41122
published 2021-10-05CVE-2021-41122: 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…
PriorityP419medium4.3CVSS 3.1
AVNACLPRLUINSUCNILAN
EPSS
0.78%
51.5th percentile
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 errors. This issue has been resolved in version 0.3.0.
Affected
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| vyperlang | vyper | < 0.3.0 | 0.3.0 |
| vyperlang | vyper | >= 0 < 0.3.0 | 0.3.0 |
CVSS provenance
nvdv3.14.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
nvdv2.04.0MEDIUMAV:N/AC:L/Au:S/C:N/I:P/A:N
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
missing clamps for decimal args in external functions
ghsa·2021-10-06
CVE-2021-41122 [MEDIUM] CWE-682 missing clamps for decimal args in external functions
missing clamps for decimal args in external functions
### 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
OSV
missing clamps for decimal args in external functions
osv·2021-10-06
CVE-2021-41122 [MEDIUM] missing clamps for decimal args in external functions
missing clamps for decimal args in external functions
### 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
OSV
CVE-2021-41122: Vyper is a Pythonic Smart Contract Language for the EVM
osv·2021-10-05
CVE-2021-41122 CVE-2021-41122: Vyper is a Pythonic Smart Contract Language for the EVM
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 errors. This issue has been resolved in version 0.3.0.
No detection rules found.
No public exploits indexed.
2021-10-05
Published