logo

CVE-2023-26488 @openzeppelin/contracts

Package

Manager: npm
Name: @openzeppelin/contracts
Vulnerable Version: >=4.8.0 <4.8.2

Severity

Level: Medium

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

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

EPSS: 0.00075 pctl0.23185

Details

OpenZeppelin Contracts contains Incorrect Calculation ### 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 -->

Metadata

Created: 2023-03-03T20:02:16Z
Modified: 2023-03-10T15:30:54Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/03/GHSA-878m-3g6q-594q/GHSA-878m-3g6q-594q.json
CWE IDs: ["CWE-682"]
Alternative ID: GHSA-878m-3g6q-594q
Finding: F138
Auto approve: 1