CVE-2023-34459 in Openzeppelin Contracts and 1 more product
OpenZeppelin Contracts is a library for smart contract development. Starting in version 4.7.0 and prior to version 4.9.2, when the `verifyMultiProof`, `verifyMultiProofCalldata`, `procesprocessMultiProof`, or `processMultiProofCalldat` functions are in use, it is possible to construct merkle trees that allow forging...
Affects 2 products from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, high complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Openzeppelin | Contracts | ≥ 4.7.0, < 4.9.2 |
| Openzeppelin | Contracts Upgradeable | ≥ 4.7.0, < 4.9.2 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
OpenZeppelin Contracts is a library for smart contract development. Starting in version 4.7.0 and prior to version 4.9.2, when the `verifyMultiProof`, `verifyMultiProofCalldata`, `procesprocessMultiProof`, or `processMultiProofCalldat` functions are in use, it is possible to construct merkle trees that allow forging a valid multiproof for an arbitrary set of leaves. A contract may be vulnerable if it uses multiproofs for verification and the merkle tree that is processed includes a node with value 0 at depth 1 (just under the root). This could happen inadvertedly for balanced trees with 3 leaves or less, if the leaves are not hashed. This could happen deliberately if a malicious tree builder includes such a node in the tree. A contract is not vulnerable if it uses single-leaf proving (`verify`, `verifyCalldata`, `processProof`, or `processProofCalldata`), or if it uses multiproofs with a known tree that has hashed leaves. Standard merkle trees produced or validated with the @openzeppelin/merkle-tree library are safe. The problem has been patched in version 4.9.2. Some workarounds are available. For those using multiproofs: When constructing merkle trees hash the leaves and do not insert empty nodes in your trees. Using the @openzeppelin/merkle-tree package eliminates this issue. Do not accept user-provided merkle roots without reconstructing at least the first level of the tree. Verify the merkle tree structure by reconstructing it from the leaves.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2023-34459 |
|---|---|
| BreachSpider ID | BS-2023-GLOBAL-058112-M |
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| Published | 2023-06-16 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-354: CWE-354
Related attack patterns (CAPEC)
CAPEC-145 Checksum Spoofing via CWE-354
CAPEC-463 Padding Oracle Crypto Attack via CWE-354
CAPEC-75 Manipulating Writeable Configuration Files via CWE-354
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
OpenZeppelin Contracts versions 4.7.0 to 4.9.1 are vulnerable to a merkle tree forgery issue in the `verifyMultiProof`, `verifyMultiProofCalldata`, `processMultiProof`, and `processMultiProofCalldata` functions, allowing attackers to forge valid multiproofs for arbitrary sets of leaves.
An attacker can exploit the vulnerability by constructing malicious merkle trees that pass the verification checks in the affected functions, potentially leading to unauthorized access or manipulation of contract data.
Questions
What is CVE-2023-34459?
OpenZeppelin Contracts versions 4.7.0 to 4.9.1 are vulnerable to a merkle tree forgery issue in the `verifyMultiProof`, `verifyMultiProofCalldata`, `processMultiProof`, and `processMultiProofCalldata` functions, allowing attackers to forge valid multiproofs for arbitrary sets of leaves.
What is the CVSS score for CVE-2023-34459?
CVE-2023-34459 has CVSS 5.9 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N. EPSS: 0.4%.
Is CVE-2023-34459 actively exploited?
No confirmed active exploitation of CVE-2023-34459 as of 2026-09-25.
How do I remediate CVE-2023-34459?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2023-34459?
CVE-2023-34459 affects Openzeppelin Contracts, Contracts Upgradeable.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Openzeppelin","product":"Contracts","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.