First published: Fri Mar 03 2023(Updated: )
OpenZeppelin Contracts is a library for secure smart contract development. The ERC721Consecutive contract designed for minting NFTs in batches does not update balances when a batch has size 1 and consists of a single token. Subsequent transfers from the receiver of that token may overflow the balance as reported by `balanceOf`. The issue exclusively presents with batches of size 1. The issue has been patched in 4.8.2.
Credit: security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
OpenZeppelin Contracts | >=4.8.0<4.8.2 | |
OpenZeppelin Contracts Upgradeable | >=4.8.0<4.8.2 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2023-26488 is a vulnerability in the OpenZeppelin Contracts library that affects the ERC721Consecutive contract.
CVE-2023-26488 affects OpenZeppelin Contracts by not updating balances when a batch has size 1 and consists of a single token, which can lead to balance overflow during subsequent transfers.
The severity of CVE-2023-26488 is medium, with a severity value of 6.5.
To fix CVE-2023-26488 in OpenZeppelin Contracts, upgrade to version 4.8.2 or higher.
More information about CVE-2023-26488 can be found in the OpenZeppelin Contracts repository and the associated security advisories.