Skip to content

safemath for decimals do not check for 256-bit overflow

Low
charles-cooper published GHSA-42j8-8cjv-j5r9 May 5, 2022

Package

pip vyper (pip)

Affected versions

>=v0.3.2

Patched versions

v0.3.4

Description

Impact

since v0.3.2, decimals use the full range of the underlying int168 type. multiplication of 168 bit integers can wrap in 256-bit arithmetic, but safemul does not check for that.

Patches

Workarounds

References

see #2845

For more information

If you have any questions or comments about this advisory:

Severity

Low

CVE ID

CVE-2022-29175

Weaknesses

No CWEs