CVE & CISA-KEV Catalog

CVE-2023-34459

MEDIUM
5.3
CVSS v3
NVD

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.

How to fix

Remediation Available
contractsNVD
Affected:>= 4.7.0, < 4.9.2Fixed in:4.9.2CVE-2023-34459derived from NVD
contracts upgradeableNVD
Affected:>= 4.7.0, < 4.9.2Fixed in:4.9.2CVE-2023-34459derived from NVD

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityHigh
AvailabilityNone

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N

Exploit Intelligence

0.37%probability of exploitation in 30 days
30thpercentile

Low risk: more likely to be exploited than 30% of all known CVEs.

References

Vendor Advisory1
Release Notes1

Related Vulnerabilities

Other CWE-354 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2023-48795Medium5.993%-Fix
CVE-2019-1166Medium5.968%--
CVE-2024-3596Critical9.015%-Fix
CVE-2020-26141Medium6.53.1%-Fix
CVE-2020-25862High7.52.4%-Fix
CVE-2020-8838Medium6.41.6%--

Common questions

How do I fix CVE-2023-34459?

Published advisories record a fix for 2 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2023-34459 being actively exploited?

Not that we know of. CVE-2023-34459 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.37% is the estimated probability that it will be exploited in the next 30 days. That is higher than 30% of all scored CVEs.

How severe is CVE-2023-34459?

CVE-2023-34459 has a CVSS v3 base score of 5.3, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2023-34459 affect?

Published advisories record a fix for contracts (NVD), contracts upgradeable (NVD). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2023-34459
CVE-2023-34459 severity badge

Markdown

[![CVE-2023-34459](https://tridentstack.com/cve/badge/CVE-2023-34459.svg)](https://tridentstack.com/cve/CVE-2023-34459)

HTML

<a href="https://tridentstack.com/cve/CVE-2023-34459"><img src="https://tridentstack.com/cve/badge/CVE-2023-34459.svg" alt="CVE-2023-34459"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.