# GHSA-42J8-8CJV-J5R9: safemath for decimals do not check for 256-bit overflow

- Database: GitHub
- Severity: low (stated by ghsa, no CVSS score)
- Published: 2022-05-05
- Modified: 2026-10-05

## Tracked as

- [CVE-2022-29175](https://cve.now/CVE-2022-29175.md): CVE-2022-29175

## Affected versions

- vyper (PyPI): from 0.3.2, fixed in 0.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 https://github.com/vyperlang/vyper/issues/2845

### For more information
If you have any questions or comments about this advisory:
* Open an issue in [example link to repo](http://example.com)
* Email us at [example email address](mailto:example@example.com)

## References

- https://github.com/vyperlang/vyper/security/advisories/GHSA-42j8-8cjv-j5r9

Page: https://cve.now/GHSA-42J8-8CJV-J5R9

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
