CVE-2023-26488 json
OpenZeppelin Contracts contains Incorrect Calculation
published 3y ago modified 4mo ago also EUVD-2023-0941 , GHSA-878m-3g6q-594q
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 54%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm @openzeppelin/contracts 4.8.2
- npm @openzeppelin/contracts-upgradeable 4.8.2
- openzeppelin contracts 4.8.2
- openzeppelin contracts_upgradeable 4.8.2
Is CVE-2023-26488 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.71% chance of exploitation in the next 30 days, higher than 54% of all scored CVEs (FIRST EPSS, 2026-11-15).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @openzeppelin/contracts | >=4.8.0, <4.8.2 |
4.8.2 |
| npm | @openzeppelin/contracts-upgradeable | >=4.8.0, <4.8.2 |
4.8.2 |
Affected products
- OpenZeppelin openzeppelin-contracts
Classification
- Weakness
-
- CWE-682 Incorrect Calculation
References
-
github.com
/OpenZeppelin/openzeppelin-contracts/commit/167bf67ed3907f4a674043496019fa346cee7705
web, patch
-
github.com
/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-878m-3g6q-594q
web, third-party-advisory, advisory
-
github.com
/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.8.2
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2023-26488
advisory
-
github.com
/OpenZeppelin/openzeppelin-contracts
package
Sources
- CVE List CVE-2023-26488
- GitHub Advisory GHSA-878m-3g6q-594q
- NVD CVE-2023-26488
- Maintainer advisory GHSA-878m-3g6q-594q
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of OpenZeppelin/openzeppelin-contracts published their own advisory on GitHub. Reviewed sources take precedence over it.