{"id":"CVE-2026-73645","aliases":["CVE-2026-73645","GHSA-hqf9-8xv5-x8xw"],"related":[],"kind":"vulnerability","state":"published","title":"OpenZeppelin Confidential Contracts ERC7984ERC20Wrapper: once a wrapper is filled, subsequent wrap requests do not revert and result in loss of funds.","summary":"OpenZeppelin Confidential Contracts is an experimental library for developing applications on the Zama fhEVM. Prior to 0.3.1, the ERC7984 contract tracked confidential total supply with an euint64 value, and an overflowing internal _mint operation could fail silently. The wrap and onTransferReceived functions in contracts/token/ERC7984/extensions/ERC7984ERC20Wrapper.sol did not handle that failure, so a user could transfer the underlying token without receiving the corresponding confidential wrapped token. With the default rate(), the wrapper fills after approximately 18.4 trillion tokens, and subsequent wrapping requests can cause loss of funds. This issue is fixed in version 0.3.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OpenZeppelin Confidential Contracts is an experimental library for developing applications on the Zama fhEVM. Prior to 0.3.1, the ERC7984 contract tracked confidential total supply with an euint64 value, and an overflowing internal _mint operation could fail silently. The wrap and onTransferReceived functions in contracts/token/ERC7984/extensions/ERC7984ERC20Wrapper.sol did not handle that failure, so a user could transfer the underlying token without receiving the corresponding confidential wrapped token. With the default rate(), the wrapper fills after approximately 18.4 trillion tokens, and subsequent wrapping requests can cause loss of funds. This issue is fixed in version 0.3.1.","source":"cvelist"},{"lang":"en","text":"### Impact\nThe `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.\n\nBy default (without overriding `rate()`, the wrapper fills up after wrapping ~18.4 trillion tokens. There are very few tokens of value with sufficient total supply to result in the filling of the wrapper. That said, we recommend upgrading to `0.3.1` to remove this issue. \n\n### Patches\nThis issue has been patched in the `0.3.1` release.","format":"markdown","source":"ghsa"},{"lang":"es","text":"OpenZeppelin Confidential Contracts es una biblioteca experimental para desarrollar aplicaciones en la Zama fhEVM. Antes de la versión 0.3.1, el contrato ERC7984 rastreaba el suministro total confidencial con un valor euint64, y una operación interna _mint desbordante podría fallar silenciosamente. Las funciones wrap y onTransferReceived en contracts/token/ERC7984/extensions/ERC7984ERC20Wrapper.sol no manejaban ese fallo, por lo que un usuario podría transferir el token subyacente sin recibir el token envuelto confidencial correspondiente. Con la tasa predeterminada rate(), el ’wrapper’ se llena después de aproximadamente 18.4 billones de tokens, y las solicitudes de envoltura posteriores pueden causar la pérdida de fondos. Este problema está solucionado en la versión 0.3.1.","source":"nvd"}],"published":"2026-01-05T19:57:46.000Z","modified":"2026-10-24T15:10:00.190Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U","score":6.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U","score":6.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U","rating":"MEDIUM"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"version":"< 0.3.1","status":"affected"}],"vendor":"OpenZeppelin","product":"openzeppelin-confidential-contracts","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.3.1"}],"ecosystem":"npm","package":"@openzeppelin/confidential-contracts","purl":"pkg:npm/%40openzeppelin/confidential-contracts","source":"ghsa"}],"references":[{"url":"https://github.com/OpenZeppelin/openzeppelin-confidential-contracts/security/advisories/GHSA-hqf9-8xv5-x8xw","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/OpenZeppelin/openzeppelin-confidential-contracts/pull/271","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/OpenZeppelin/openzeppelin-confidential-contracts/commit/c620d4386021dde63ae3ea1507dee8543791134a","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/OpenZeppelin/openzeppelin-confidential-contracts/releases/tag/v0.3.1","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/OpenZeppelin/openzeppelin-confidential-contracts","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-08-14T17:41:19.442Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-73645","url":"https://www.cve.org/CVERecord?id=CVE-2026-73645","licence":"CVE Terms of Use","modified":"2026-08-14T18:09:13.903Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hqf9-8xv5-x8xw","url":"https://github.com/advisories/GHSA-hqf9-8xv5-x8xw","licence":"CC-BY-4.0","modified":"2026-08-13T18:51:16.040Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-73645","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-73645","licence":"Public domain","modified":"2026-10-24T15:10:00.190Z"}],"updatedAt":"2026-11-25T22:59:32.819Z","epss":{"score":0.00384,"percentile":0.34541,"date":"2026-12-02T12:00:21.000Z"}}