{"id":"GHSA-878m-3g6q-594q","summary":"OpenZeppelin Contracts contains Incorrect Calculation","details":"### 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\u003c!-- ### References --\u003e\n\n","aliases":["CVE-2023-26488"],"modified":"2023-11-08T04:12:02.209796Z","published":"2023-03-03T20:02:16Z","database_specific":{"github_reviewed_at":"2023-03-03T20:02:16Z","nvd_published_at":"2023-03-03T22:15:00Z","cwe_ids":["CWE-682"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-878m-3g6q-594q"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26488"},{"type":"WEB","url":"https://github.com/OpenZeppelin/openzeppelin-contracts/commit/167bf67ed3907f4a674043496019fa346cee7705"},{"type":"PACKAGE","url":"https://github.com/OpenZeppelin/openzeppelin-contracts"},{"type":"WEB","url":"https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.8.2"}],"affected":[{"package":{"name":"@openzeppelin/contracts","ecosystem":"npm","purl":"pkg:npm/%40openzeppelin/contracts"},"ranges":[{"type":"SEMVER","events":[{"introduced":"4.8.0"},{"fixed":"4.8.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/03/GHSA-878m-3g6q-594q/GHSA-878m-3g6q-594q.json"}},{"package":{"name":"@openzeppelin/contracts-upgradeable","ecosystem":"npm","purl":"pkg:npm/%40openzeppelin/contracts-upgradeable"},"ranges":[{"type":"SEMVER","events":[{"introduced":"4.8.0"},{"fixed":"4.8.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/03/GHSA-878m-3g6q-594q/GHSA-878m-3g6q-594q.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"}]}