Advisory

GHSA-c7pr-343r-5c46

Also known as: CVE-2021-41122, PYSEC-2021-366

Summary

missing clamps for decimal args in external functions

Details

Impact

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

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

Patches
0.3.0 / #2447

Workarounds
Don't use decimal args

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-10-06 17:48 UTC
Modified
2026-07-08 06:29 UTC

Affected packages and fixes

vyper

PyPI · All systems

Affected

  • introduced 0, fixed 0.3.0 (ecosystem)

Fixed versions

0.3.0

Fix

  • Fixed version 0.3.0
    pip install --upgrade vyper==0.3.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences