{"id":"CVE-2023-26488","published":"2023-03-03T21:08:34Z","modified":"2025-02-25T15:02:45Z","title":"OpenZeppelin Contracts contains Incorrect Calculation","vendor":"OpenZeppelin","product":"openzeppelin-contracts","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00713,"percentile":0.54549,"provenance":"source"},"cwes":[{"id":"CWE-682","name":"Incorrect Calculation"}],"references":[{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-878m-3g6q-594q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/commit/167bf67ed3907f4a674043496019fa346cee7705","tags":["x_refsource_MISC"]},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.8.2","tags":["x_refsource_MISC"]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":10.91},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"openzeppelin","affectedVersions":[{"vendor":"OpenZeppelin","product":"openzeppelin-contracts","versions":[">= 4.8.0, < 4.8.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-02-25T14:30:41.355475Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@openzeppelin/contracts","vulnerableRanges":[">=4.8.0, <4.8.2"],"patched":["4.8.2"],"from":["GHSA-878m-3g6q-594q"],"provenance":"source"},{"ecosystem":"npm","package":"@openzeppelin/contracts-upgradeable","vulnerableRanges":[">=4.8.0, <4.8.2"],"patched":["4.8.2"],"from":["GHSA-878m-3g6q-594q"],"provenance":"source"}],"summary":{"text":"The flaw is an incorrect calculation in the ERC721Consecutive contract of OpenZeppelin Contracts, a smart contract library, in which balances are not updated when a batch mint has size 1 and consists of a single token. An attacker who has a low-privilege account and can call transfers from the receiver of that single-token batch can cause the balance reported by balanceOf to overflow, and this only occurs for batches of size 1.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:29Z"},"euvd":{"id":"EUVD-2023-0941","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-35915","published":"2022-08-01","fixed":"4.7.2","kev":false},{"cve":"CVE-2022-35916","published":"2022-08-01","fixed":"4.7.2","kev":false},{"cve":"CVE-2022-35961","published":"2022-08-14","fixed":"4.7.3","kev":false},{"cve":"CVE-2023-26488","published":"2023-03-03","fixed":"4.8.2","kev":false},{"cve":"CVE-2023-30541","published":"2023-04-17","fixed":"4.8.3","kev":false,"link":{"from":"CVE-2023-26488","to":"CVE-2023-30541","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@openzeppelin/contracts","fromFixed":"4.8.2","toFixed":"4.8.3","daysApart":45},{"kind":"version-step","provenance":"source","package":"npm:@openzeppelin/contracts-upgradeable","fromFixed":"4.8.2","toFixed":"4.8.3","daysApart":45}]}},{"cve":"CVE-2023-30542","published":"2023-04-16","fixed":"4.8.3","kev":false,"link":{"from":"CVE-2023-26488","to":"CVE-2023-30542","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@openzeppelin/contracts","fromFixed":"4.8.2","toFixed":"4.8.3","daysApart":44},{"kind":"version-step","provenance":"source","package":"npm:@openzeppelin/contracts-upgradeable","fromFixed":"4.8.2","toFixed":"4.8.3","daysApart":44}]}},{"cve":"CVE-2023-34234","published":"2023-06-07","fixed":"4.9.1","kev":false}],"package":"npm:@openzeppelin/contracts"}}