CVE-2021-41122 json
Bounds check missing for decimal args in Vyper
published 2021-10-05 5 y ago modified 2026-07-08 4 mo ago also GHSA-c7pr-343r-5c46 , PYSEC-2021-366 , EUVD-2021-0460
- cvss
- 4.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 56%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
Exploit prediction
0.80% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/vyperlang/vyper/security/advisories/GHSA-c7pr-343r-5c46 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| NVD | 2.0 | 4.0 | AV:N/AC:L/Au:S/C:N/I:P/A:N |
| GitHub | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | vyper | <0.3.0 |
0.3.0 |
Affected products
- vyperlang vyper
Classification
- Weakness
-
- CWE-682 Incorrect Calculation
References
-
github.com
/vyperlang/vyper/pull/2447
web, third-party-advisory
-
github.com
/vyperlang/vyper/security/advisories/GHSA-c7pr-343r-5c46
web, exploit, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-41122
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2021-366.yaml
web
-
github.com
/vyperlang/vyper
package
Sources
- CVE List CVE-2021-41122
- GitHub Advisory GHSA-c7pr-343r-5c46
- NVD CVE-2021-41122
- OSV PYSEC-2021-366
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.