CVE-2021-41122
MEDIUM 4.3CVSS 3.1missing clamps for decimal args in external functions
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.
- Published
- 5 Oct 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-682
- Also known as
- GHSA-c7pr-343r-5c46PYSEC-2021-366
- Sources
- NVDJSONOSV GHSA-c7pr-343r-5c46JSONOSV PYSEC-2021-366JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.0 | AV:N/AC:L/Au:S/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vyperlang | vypercpe:2.3:a:vyperlang:vyper:*:*:*:*:*:*:*:* |
< 0.3.0 | 0.3.0 |
| OSV | PyPI | vyper | < 0.3.0 | 0.3.0 |
References
- https://github.com/vyperlang/vyper/pull/2447 · Third Party Advisory, WEB
- https://github.com/vyperlang/vyper/security/advisories/GHSA-c7pr-343r-5c46 · Exploit, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-41122 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2021-366.yaml · WEB
- https://github.com/vyperlang/vyper · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 5 Oct 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 5 Oct 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 Oct 2021)