{"schema":"threatline.record/2","record":{"id":"GHSA-29h2-jr22-frmh","aliases":["GHSA-29h2-jr22-frmh"],"summary":"OpenZeppelin Confidential Contracts `VestingWalletConfidential`: a malicious ERC-7984 token is able to extract private data from the vesting wallet","details":"### Impact\n\nTwo locations consume an encrypted handle returned by an untrusted external party and use it without verifying that the party is ACL-authorized on it.\n\n#### `VestingWalletConfidential`\n\nMalicious users can call `release` with a malicious token. This token could return an alternative handle on `confidentialBalanceOf`, which represents the balance of the vesting wallet on an alternative ERC-7984 token (or any other handle that the vesting wallet has access to). The vesting wallet does not check that the token has ACL access and grants access to a new handle derived from the returned handle.\n\nEffectively, this bug allows a malicious user to gain information about any private `euint64` handle that the vesting wallet has access to via a malicious ERC-7984 token. There is no loss of funds.\n\n#### ERC7984\n\nOn a transfer with callback, `ERC7984` uses the `ebool` returned by the\nrecipient's `IERC7984Receiver.onConfidentialTransferReceived` to drive the refund\nlogic, without checking that the recipient has ACL access to it. A malicious recipient\ncan return any `ebool` the token has access to and recover its plaintext from the\nrefund result, which the token grants the caller access to. The leak is limited\nto `ebool` handles (the value is only used as an `FHE.select` condition), and\nthere is no loss of funds.\n\n### Patches\n\nBoth issues were fixed in the same patch releases: v0.5.2, v0.4.2, v0.3.2\n\n- `VestingWalletConfidential`: 93e75ceed2b9648f53f9d133f431064353456805 (#423).\n- `ERC7984` transfer callback: fe0863af2c9dce7614acce98720a913bf6a767a5 (#428), with follow-up ee47edf189ab681cebdad18bfb53dee541987be2 (#431) permitting an uninitialized returned handle.","categories":["Libraries & packages"],"product":"@openzeppelin/confidential-contracts","vendor":"","ecosystem":"npm","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-29h2-jr22-frmh","source_modified_at":"2026-09-25T19:31:09Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@openzeppelin/confidential-contracts"},"range":"< 0.3.2"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-29h2-jr22-frmh","source_modified_at":"2026-09-25T19:31:09Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@openzeppelin/confidential-contracts"},"range":">= 0.4.0-rc.0, < 0.4.2"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-29h2-jr22-frmh","source_modified_at":"2026-09-25T19:31:09Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@openzeppelin/confidential-contracts"},"range":">= 0.5.0-rc.0, < 0.5.2"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-29h2-jr22-frmh","source_modified_at":"2026-09-25T19:45:09.704948941Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"@openzeppelin/confidential-contracts","ecosystem":"npm","purl":"pkg:npm/%40openzeppelin/confidential-contracts"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.3.2"}]}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-29h2-jr22-frmh","source_modified_at":"2026-09-25T19:45:09.704948941Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"@openzeppelin/confidential-contracts","ecosystem":"npm","purl":"pkg:npm/%40openzeppelin/confidential-contracts"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.4.0-rc.0"},{"fixed":"0.4.2"}]}],"versions":[]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-29h2-jr22-frmh","source_modified_at":"2026-09-25T19:45:09.704948941Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"@openzeppelin/confidential-contracts","ecosystem":"npm","purl":"pkg:npm/%40openzeppelin/confidential-contracts"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.5.0-rc.0"},{"fixed":"0.5.2"}]}],"versions":[]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-29h2-jr22-frmh","source_modified_at":"2026-09-25T19:31:09Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@openzeppelin/confidential-contracts"},"version":"0.3.2"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-29h2-jr22-frmh","source_modified_at":"2026-09-25T19:31:09Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@openzeppelin/confidential-contracts"},"version":"0.4.2"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-29h2-jr22-frmh","source_modified_at":"2026-09-25T19:31:09Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"@openzeppelin/confidential-contracts"},"version":"0.5.2"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-29h2-jr22-frmh","source_modified_at":"2026-09-25T19:45:09.704948941Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"@openzeppelin/confidential-contracts","ecosystem":"npm","purl":"pkg:npm/%40openzeppelin/confidential-contracts"},"version":"0.3.2"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-29h2-jr22-frmh","source_modified_at":"2026-09-25T19:45:09.704948941Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"@openzeppelin/confidential-contracts","ecosystem":"npm","purl":"pkg:npm/%40openzeppelin/confidential-contracts"},"version":"0.4.2"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-29h2-jr22-frmh","source_modified_at":"2026-09-25T19:45:09.704948941Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"@openzeppelin/confidential-contracts","ecosystem":"npm","purl":"pkg:npm/%40openzeppelin/confidential-contracts"},"version":"0.5.2"}],"cvss":7.1,"severity":"High","kev":{"listed":false},"epss":{"probability":null,"percentile":null,"score_date":null},"published_at":"2026-09-25T19:31:08Z","modified_at":"2026-09-25T19:45:09.704948941Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-29h2-jr22-frmh","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-09-25T19:31:09Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-29h2-jr22-frmh","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-09-25T19:45:09.704948941Z"}],"sources":["GitHub Advisory Database","OSV"],"references":[{"url":"https://github.com/OpenZeppelin/openzeppelin-confidential-contracts/security/advisories/GHSA-29h2-jr22-frmh","source":"GitHub Advisory Database"},{"url":"https://github.com/OpenZeppelin/openzeppelin-confidential-contracts/pull/423","source":"GitHub Advisory Database"},{"url":"https://github.com/OpenZeppelin/openzeppelin-confidential-contracts/pull/428","source":"GitHub Advisory Database"},{"url":"https://github.com/OpenZeppelin/openzeppelin-confidential-contracts/pull/431","source":"GitHub Advisory Database"},{"url":"https://github.com/OpenZeppelin/openzeppelin-confidential-contracts/commit/93e75ceed2b9648f53f9d133f431064353456805","source":"GitHub Advisory Database"},{"url":"https://github.com/OpenZeppelin/openzeppelin-confidential-contracts/commit/ee47edf189ab681cebdad18bfb53dee541987be2","source":"GitHub Advisory Database"},{"url":"https://github.com/OpenZeppelin/openzeppelin-confidential-contracts/commit/fe0863af2c9dce7614acce98720a913bf6a767a5","source":"GitHub Advisory Database"},{"url":"https://github.com/OpenZeppelin/openzeppelin-confidential-contracts/releases/tag/v0.3.2","source":"GitHub Advisory Database"},{"url":"https://github.com/OpenZeppelin/openzeppelin-confidential-contracts/releases/tag/v0.4.2","source":"GitHub Advisory Database"},{"url":"https://github.com/OpenZeppelin/openzeppelin-confidential-contracts/releases/tag/v0.5.2","source":"GitHub Advisory Database"},{"url":"https://github.com/advisories/GHSA-29h2-jr22-frmh","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-09-25T19:45:09.704948941Z","content_hash":"a1e92767d5d77efa893b5051e7fb7035d742213044002a9acad4362acaa1cb8e"}}
