{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2023-34459","published":"2023-06-16T23:15:08.817000Z","last_modified":"2026-06-17T06:03:41.713000Z","status":"Modified","cvss":{"version":"3.1","score":5.9,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-354"],"cpes":[{"criteria":"cpe:2.3:a:openzeppelin:contracts:*:*:*:*:*:node.js:*:*","part":"a","vendor":"openzeppelin","product":"contracts","version_start_including":"4.7.0","version_end_excluding":"4.9.2"},{"criteria":"cpe:2.3:a:openzeppelin:contracts_upgradeable:*:*:*:*:*:node.js:*:*","part":"a","vendor":"openzeppelin","product":"contracts_upgradeable","version_start_including":"4.7.0","version_end_excluding":"4.9.2"}],"cpes_truncated":false,"vendors":["openzeppelin"],"products":["openzeppelin/contracts","openzeppelin/contracts_upgradeable"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00362,"percentile":0.22197,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-wprv-93r4-jj2p","ecosystem":"npm","name":"@openzeppelin/contracts","purl":"pkg:npm/%40openzeppelin/contracts","ranges":[{"introduced":"4.7.0","fixed":"4.9.2"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-wprv-93r4-jj2p","ecosystem":"npm","name":"@openzeppelin/contracts-upgradeable","purl":"pkg:npm/%40openzeppelin/contracts-upgradeable","ranges":[{"introduced":"4.7.0","fixed":"4.9.2"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":50,"links":{"html_es":"/es/cve/CVE-2023-34459/","html_en":"/en/cve/CVE-2023-34459/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-34459","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-34459"},"untrusted":{"vendor_name":"Openzeppelin","product_name":"Contracts","desc_en":"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.\n\nA 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.\n\nA 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.\n\nThe problem has been patched in version 4.9.2.\n\nSome 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.","affected":[{"untrusted_vendor":"OpenZeppelin","untrusted_product":"openzeppelin-contracts","versions":[]}],"references":[{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/commit/4d2383e17186be3e8ccf5a442e9686ecc7de1c55","tags":["Patch"]},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.9.2","tags":["Release Notes"]},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-wprv-93r4-jj2p","tags":["Vendor Advisory"]}]}}