Impact
The ERC7984ERC20Wrapper contract contains a silent overflow bug in its internal mint function, causing wrapped token issuance to fail without reverting the transaction. This overflow leads to a discrepancy between the underlying token balance and the confidential wrapped token balance, handing a loss of funds to the user who initiates the wrap.
Affected Systems
All releases of OpenZeppelin Confidential Contracts prior to version 0.3.1 are affected, specifically the ERC7984ERC20Wrapper implementation in the confidential contracts library.
Risk and Exploitability
The flaw carries a CVSS score of 6.6, which is medium severity. Although the EPSS score is not available, the issue is not listed in the CISA KEV catalog. The likely attack vector is any user calling the wrapper’s wrap or onTransferReceived functions; after the wrapper is filled, honest users could unknowingly lose tokens.
OpenCVE Enrichment
Github GHSA