CVE-2021-41122
mediumpriority · track · 16EPSS 0.008 · 56 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-c7pr-343r-5c46missing clamps for decimal args in external functions2021-10-06ghsa · osvUS
### 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
- PYSEC-2021-3662021-10-05vendor · osvUS
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.
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://github.com/vyperlang/vyper/pull/2447cnnvd
- https://github.com/vyperlang/vyper/security/advisories/GHSA-c7pr-343r-5c46cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-41122cnnvd
- https://github.com/vyperlang/vyper/pull/2447enisa_euvd
- https://github.com/vyperlang/vyper/security/advisories/GHSA-c7pr-343r-5c46enisa_euvd
- https://github.com/vyperlang/vyper/pull/2447Third Party Advisorynvd
- https://github.com/vyperlang/vyper/security/advisories/GHSA-c7pr-343r-5c46ExploitThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan