{"id":"CVE-2023-26488","aliases":["CVE-2023-26488","GHSA-878m-3g6q-594q"],"related":[],"kind":"vulnerability","state":"published","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe 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`.\n\nThe issue exclusively presents with batches of size 1.\n\n### Patches\n\nThe issue has been patched in 4.8.2.\n\n<!-- ### References -->","format":"markdown","source":"ghsa"}],"published":"2023-03-03T20:02:16.000Z","modified":"2026-06-17T05:43:26.843Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-682"],"affected":[{"ranges":[{"version":">= 4.8.0, < 4.8.2","status":"affected"}],"vendor":"OpenZeppelin","product":"openzeppelin-contracts","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.8.0","status":"affected","fixed":"4.8.2"}],"ecosystem":"npm","package":"@openzeppelin/contracts","purl":"pkg:npm/%40openzeppelin/contracts","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.8.0","status":"affected","fixed":"4.8.2"}],"ecosystem":"npm","package":"@openzeppelin/contracts-upgradeable","purl":"pkg:npm/%40openzeppelin/contracts-upgradeable","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.8.0","fixed":"4.8.2"}],"vendor":"openzeppelin","product":"contracts","cpe":"cpe:2.3:a:openzeppelin:contracts:*:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"4.8.0","fixed":"4.8.2"}],"vendor":"openzeppelin","product":"contracts_upgradeable","cpe":"cpe:2.3:a:openzeppelin:contracts_upgradeable:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-878m-3g6q-594q","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/commit/167bf67ed3907f4a674043496019fa346cee7705","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.8.2","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26488","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-02-25T14:30:41.355Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-26488","url":"https://www.cve.org/CVERecord?id=CVE-2023-26488","licence":"CVE Terms of Use","modified":"2025-02-25T15:02:45.293Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-878m-3g6q-594q","url":"https://github.com/advisories/GHSA-878m-3g6q-594q","licence":"CC-BY-4.0","modified":"2023-11-08T04:12:02.209Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-26488","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26488","licence":"Public domain","modified":"2026-06-17T05:43:26.843Z"}],"updatedAt":"2026-11-25T22:58:22.266Z","epss":{"score":0.00713,"percentile":0.54862,"date":"2026-12-01T12:00:22.000Z"}}