OpenZeppelin Confidential Contracts `VestingWalletConfidential`: a malicious ERC-7984 token is able to extract private data from the vesting wallet
### Impact Two locations consume an encrypted handle returned by an untrusted external party and use it without verifying that the party is ACL-authorized on it. #### `VestingWalletConfidential` Malicious 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. Effectively, 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. #### ERC7984 On a transfer with callback, `ERC7984` uses the `ebool` returned by the recipient's `IERC7984Receiver.onConfidentialTransferReceived` to drive the refund logic, without checking that the recipient has ACL access to it. A malicious recipient can return any `ebool` the token has access to and recover its plaintext from the refund result, which the token grants the caller access to. The leak is limited to `ebool` handles (the value is only used as an `FHE.select` condition), and there is no loss of funds. ### Patches Both issues were fixed in the same patch releases: v0.5.2, v0.4.2, v0.3.2 - `VestingWalletConfidential`: 93e75ceed2b9648f53f9d133f431064353456805 (#423). - `ERC7984
GHSA-29h2-jr22-frmh
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:GHSA-29h2-jr22-frmh
@openzeppelin/confidential-contracts
Source reference: /affected/0/package/name
- Affected versions
- Not stated in this record
- Fixed versions
- 0.3.2
Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
@openzeppelin/confidential-contracts
Source reference: /affected/1/package/name
- Affected versions
- Not stated in this record
- Fixed versions
- 0.4.2
Source reference:
/affected/1/ranges - Prerequisites
- Not stated in this record
@openzeppelin/confidential-contracts
Source reference: /affected/2/package/name
- Affected versions
- Not stated in this record
- Fixed versions
- 0.5.2
Source reference:
/affected/2/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.3.2"
}
]
}
],
"package": {
"name": "@openzeppelin/confidential-contracts",
"purl": "pkg:npm/%40openzeppelin/confidential-contracts",
"ecosystem": "npm"
},
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-29h2-jr22-frmh/GHSA-29h2-jr22-frmh.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.4.0-rc.0"
},
{
"fixed": "0.4.2"
}
]
}
],
"package": {
"name": "@openzeppelin/confidential-contracts",
"purl": "pkg:npm/%40openzeppelin/confidential-contracts",
"ecosystem": "npm"
},
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-29h2-jr22-frmh/GHSA-29h2-jr22-frmh.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.5.0-rc.0"
},
{
"fixed": "0.5.2"
}
]
}
],
"package": {
"name": "@openzeppelin/confidential-contracts",
"purl": "pkg:npm/%40openzeppelin/confidential-contracts",
"ecosystem": "npm"
},
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-29h2-jr22-frmh/GHSA-29h2-jr22-frmh.json"
}
}
]Publisher severity
high
Source reference: /database_specific/severity
- Event
- #17851 · Revision 1
- Added to Heist Feed
- Publisher date