OpenZeppelin Contracts contains Incorrect Calculation
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-26488
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 19:46 UTC · Revision 1
Source evidence
OpenZeppelin Contracts contains Incorrect Calculation
core-osv · Original sourcePublished 3 Mar 2023, 21:08 UTC
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.
osv:CVE-2023-26488
Complete source record
{
"id": "c450a0de3d12392a240818aad68803d68989a94638a263fcc518b47c9ce205f0",
"url": "https://osv.dev/vulnerability/CVE-2023-26488",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "OpenZeppelin Contracts contains Incorrect Calculation",
"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.",
"evidence": "osv:CVE-2023-26488",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2023-26488",
"aliases": [
"CVE-2023-26488",
"GHSA-878m-3g6q-594q"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/openzeppelin/openzeppelin-contracts",
"type": "GIT",
"events": [
{
"introduced": "49c0e4370d0cc50ea6090709e3835a3091e33ee2"
},
{
"fixed": "d00acef4059807535af0bd0dd0ddf619747a044b"
},
{
"fixed": "167bf67ed3907f4a674043496019fa346cee7705"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:openzeppelin:contracts:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "4.8.0"
},
{
"fixed": "4.8.2"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:openzeppelin:contracts_upgradeable:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "4.8.0"
},
{
"fixed": "4.8.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "167bf67ed3907f4a674043496019fa346cee7705"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "d00acef4059807535af0bd0dd0ddf619747a044b"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v4.8.2"
}
]
}
},
{
"repo": "https://github.com/openzeppelin/openzeppelin-contracts-upgradeable",
"type": "GIT",
"events": [
{
"introduced": "65420cb9c943c32eb7e8c9da60183a413d90067a"
},
{
"fixed": "f6c4c9c4ec601665ca74d2c9dddf547fc425658c"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:openzeppelin:contracts_upgradeable:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "4.8.0"
},
{
"fixed": "4.8.2"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v4.8.1",
"v4.8.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-26488.json"
}
}
],
"modified": "2026-10-28T02:30:31.806568323Z",
"provider": "osv",
"references": [
"https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.8.2",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/26xxx/CVE-2023-26488.json",
"https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-878m-3g6q-594q",
"https://nvd.nist.gov/vuln/detail/CVE-2023-26488",
"https://github.com/OpenZeppelin/openzeppelin-contracts/commit/167bf67ed3907f4a674043496019fa346cee7705"
],
"provider_metadata": {
"cwe_ids": [
"CWE-682"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/26xxx/CVE-2023-26488.json"
}
},
"related_cves": [
{
"value": "CVE-2023-26488",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 498798,
"published_at": "2023-03-03T21:08:34.886+00:00"
}