# CVE-2023-26488: OpenZeppelin Contracts contains Incorrect Calculation

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.71%, higher than 54% of CVEs (2026-12-01)
- Published: 2023-03-03T20:02:16.000Z
- Modified: 2026-06-17T05:43:26.843Z
- Also known as: GHSA-878m-3g6q-594q
- Weaknesses: CWE-682
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- OpenZeppelin openzeppelin-contracts: >= 4.8.0, < 4.8.2
- @openzeppelin/contracts (npm): from 4.8.0 before 4.8.2
- @openzeppelin/contracts-upgradeable (npm): from 4.8.0 before 4.8.2
- openzeppelin contracts: from 4.8.0 before 4.8.2
- openzeppelin contracts_upgradeable: from 4.8.0 before 4.8.2

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-878m-3g6q-594q> (third-party-advisory, web)
- <https://github.com/OpenZeppelin/openzeppelin-contracts/commit/167bf67ed3907f4a674043496019fa346cee7705> (patch, web)
- <https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.8.2> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-26488> (advisory)
- <https://github.com/OpenZeppelin/openzeppelin-contracts> (package)

## Sources

- CVE List: [CVE-2023-26488](https://www.cve.org/CVERecord?id=CVE-2023-26488), CVE Terms of Use, modified 2025-02-25
- GitHub Advisory Database: [GHSA-878m-3g6q-594q](https://github.com/advisories/GHSA-878m-3g6q-594q), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2023-26488](https://nvd.nist.gov/vuln/detail/CVE-2023-26488), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-26488 · Whole record: https://cve.day/CVE-2023-26488.json · Rebuilt by cve.day 2026-11-25T22:58:22.266Z
