Skip to content
Heist/ feed
Back to feed
Medium

OpenZeppelin Confidential Contracts ERC7984ERC20Wrapper: once a wrapper is filled, subsequent wrap requests do not revert and result in loss of funds.

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-73645
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 02:05 UTC · Revision 1

Source evidence

OpenZeppelin Confidential Contracts ERC7984ERC20Wrapper: once a wrapper is filled, subsequent wrap requests do not revert and result in loss of funds.

core-osv · Original source

Published 13 Aug 2026, 17:54 UTC

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.

osv:CVE-2026-73645
Complete source record
{
  "id": "70c1e70c66287666788edc4dc83bb66af1632b06c7b4eafe2e78a57716b1532a",
  "url": "https://osv.dev/vulnerability/CVE-2026-73645",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "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.",
    "evidence": "osv:CVE-2026-73645",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-73645",
      "aliases": [
        "CVE-2026-73645",
        "GHSA-hqf9-8xv5-x8xw"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/openzeppelin/openzeppelin-confidential-contracts",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "14f20de697573d815c1bf7cd7e67f386de08707f"
                },
                {
                  "fixed": "c620d4386021dde63ae3ea1507dee8543791134a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.3.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "c620d4386021dde63ae3ea1507dee8543791134a"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "14f20de697573d815c1bf7cd7e67f386de08707f"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v0.3.1"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.3.0",
            "v0.3.0-rc.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-73645.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:48.960720385Z",
      "provider": "osv",
      "references": [
        "https://github.com/OpenZeppelin/openzeppelin-confidential-contracts/releases/tag/v0.3.1",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/73xxx/CVE-2026-73645.json",
        "https://github.com/OpenZeppelin/openzeppelin-confidential-contracts/security/advisories/GHSA-hqf9-8xv5-x8xw",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-73645",
        "https://github.com/OpenZeppelin/openzeppelin-confidential-contracts/commit/c620d4386021dde63ae3ea1507dee8543791134a",
        "https://github.com/OpenZeppelin/openzeppelin-confidential-contracts/pull/271"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-190"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/73xxx/CVE-2026-73645.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-73645",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 517220,
  "published_at": "2026-08-13T17:54:42.793+00:00"
}