# CVE-2021-41122: Bounds check missing for decimal args in Vyper

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.80%, higher than 57% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-10-05T23:00:11.000Z
- Modified: 2026-07-08T06:29:21.993Z
- Also known as: GHSA-c7pr-343r-5c46, PYSEC-2021-366
- Weaknesses: CWE-682
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- vyperlang vyper: < 0.3.0; before 0.3.0
- vyper (PyPI): before 0.3.0

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:P/A:N`

## References

- <https://github.com/vyperlang/vyper/security/advisories/GHSA-c7pr-343r-5c46> (exploit, advisory, third-party-advisory, web)
- <https://github.com/vyperlang/vyper/pull/2447> (third-party-advisory, web)
- <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)

## Sources

- CVE List: [CVE-2021-41122](https://www.cve.org/CVERecord?id=CVE-2021-41122), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-c7pr-343r-5c46](https://github.com/advisories/GHSA-c7pr-343r-5c46), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-41122](https://nvd.nist.gov/vuln/detail/CVE-2021-41122), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-366](https://osv.dev/vulnerability/PYSEC-2021-366), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-41122 · Whole record: https://cve.day/CVE-2021-41122.json · Rebuilt by cve.day 2026-11-25T22:58:04.318Z
