Insufficient verification of data authenticity in OpenZeppelin Contracts - CVE-2023-34459

 

Insufficient verification of data authenticity in OpenZeppelin Contracts - CVE-2023-34459

Published: June 17, 2023 / Updated: November 25, 2026


Vulnerability identifier: #VU170128
CSH Severity: Low
CVSS v4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-34459
CWE-ID: CWE-345
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to make a contract accept arbitrary leaves as members of a Merkle tree.

The vulnerability exists due to insufficient verification of leaf membership in the MerkleProof multiproof functions when the tree contains a zero-valued node directly below the root. A remote attacker can submit a forged multiproof for an affected tree to pass membership checks for leaves that are not in the tree.


Affected software

OpenZeppelin Contracts

How to mitigate CVE-2023-34459

Install security update from vendor's website.

OpenZeppelin Contracts - update to 4.9.2

External References

Related Security Bulletins