Skip to main content

Integer Overflow or Wraparound

CVE-2026-73645

Severity High
Score 8.7/10

Summary

The ERC7984 contract tracks total supply using a confidential euint64 value. If a call to the internal "_mint()" function would result in the total supply overflowing, the call fails silently. The "wrap()" and "onTransferReceived()" functions in "ERC7984ERC20Wrapper" assume that "_mint()" won't fail silently and do not check the return value. If the mint function fails silently, users do not receive the confidential wrapped token but still send the underlying token, resulting in a loss of funds. By default without overriding rate(), the wrapper fills up after wrapping approximately 18.4 trillion tokens. There are very few tokens of value with sufficient total supply to result in the filling of the wrapper. This affects @openzeppelin/confidential-contracts versions prior to 0.3.1.

  • LOW
  • NETWORK
  • NONE
  • NONE

CWE-190 - Integer Overflow or Wraparound

The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.

Advisory Timeline

  • Published