Advisory

GHSA-878m-3g6q-594q

Also known as: CVE-2023-26488

Summary

OpenZeppelin Contracts contains Incorrect Calculation

Details

Impact

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.

Patches

The issue has been patched in 4.8.2.

<!-- ### References -->

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-03-03 20:02 UTC
Modified
2023-11-08 04:12 UTC

Affected packages and fixes

@openzeppelin/contracts

npm · All systems

Affected

  • introduced 4.8.0, fixed 4.8.2 (semver)

Fixed versions

4.8.2

Fix

@openzeppelin/contracts-upgradeable

npm · All systems

Affected

  • introduced 4.8.0, fixed 4.8.2 (semver)

Fixed versions

4.8.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences