Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. vyper
  4. ›
  5. CVE-2021-41122

CVE-2021-41122: missing clamps for decimal args in external functions

October 6, 2021 (updated November 18, 2024)

The following code does not properly validate that its input is in bounds.

@external
def foo(x: decimal) -> decimal:
return x

References

  • github.com/advisories/GHSA-c7pr-343r-5c46
  • github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2021-366.yaml
  • github.com/vyperlang/vyper
  • github.com/vyperlang/vyper/pull/2447
  • github.com/vyperlang/vyper/security/advisories/GHSA-c7pr-343r-5c46
  • nvd.nist.gov/vuln/detail/CVE-2021-41122

Code Behaviors & Features

Detect and mitigate CVE-2021-41122 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.3.0

Fixed versions

  • 0.3.0

Solution

Upgrade to version 0.3.0 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-682: Incorrect Calculation

Source file

pypi/vyper/CVE-2021-41122.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:05 +0000.