{"id":"CVE-2026-71479","published":"2026-08-17T16:11:28Z","modified":"2026-08-17T18:59:30Z","title":"New API: Integer overflow in quota billing yields negative charges (self-crediting)","vendor":"QuantumNous","product":"new-api","tier":"tail","description":{"text":"New API is a large language mode (LLM) gateway and artificial intelligence (AI) asset management system. Prior to 1.0.0-rc.18, user-controlled image n, video seconds and duration, max_tokens, max_completion_tokens, maxOutputTokens, audio duration, and billing-expression quantities can overflow conversions in common/quota_math.go and related settlement paths, allowing a low-privileged account with positive balance or an active subscription to turn a negative charge into account credit and potentially drain upstream funds. This issue is fixed in version 1.0.0-rc.18.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00647,"percentile":0.51951,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"},{"id":"CWE-682","name":"Incorrect Calculation"}],"references":[{"url":"https://github.com/QuantumNous/new-api/security/advisories/GHSA-8r8v-xf7q-rcpr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/QuantumNous/new-api/commit/c9943d37ad93477dd937fc4901cc3c4e0fd8aaab","tags":["x_refsource_MISC"]},{"url":"https://github.com/QuantumNous/new-api/commit/d0bd8aac742d1e160a5ca61743fe35f4fff880e8","tags":["x_refsource_MISC"]},{"url":"https://github.com/QuantumNous/new-api/releases/tag/v1.0.0-rc.18","tags":["x_refsource_MISC"]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":10.39},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"quantumnous","affectedVersions":[{"vendor":"QuantumNous","product":"new-api","versions":["< 1.0.0-rc.18"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-08-17T18:59:17.674957Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/QuantumNous/new-api","vulnerableRanges":["<1.0.0-rc.18"],"patched":["1.0.0-rc.18"],"from":["GHSA-8r8v-xf7q-rcpr","GO-2026-6242"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-60262","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-quantumnous-new-api-cve-2026-25591","children":[{"from":"CVE-2026-71479","to":"CVE-2026-64859","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/QuantumNous/new-api","fromFixed":"1.0.0-rc.18","toFixed":"1.0.0-rc.7","daysApart":0},{"kind":"same-code","provenance":"machine","files":["controller/task_video.go","relay/channel/ali/image.go","relay/helper/price.go","service/quota.go","service/token_counter.go"],"commits":["https://github.com/QuantumNous/new-api/commit/0936e2504655a5cbf7bc3c388f6d3e2bb24916d3","https://github.com/QuantumNous/new-api/commit/c9943d37ad93477dd937fc4901cc3c4e0fd8aaab","https://github.com/QuantumNous/new-api/commit/d0bd8aac742d1e160a5ca61743fe35f4fff880e8"],"basis":"shared function","functions":["ModelPriceHelper","updateVideoSingleTask"]}]},{"from":"CVE-2026-71479","to":"CVE-2026-64866","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/QuantumNous/new-api","fromFixed":"1.0.0-rc.18","toFixed":"1.0.0-rc.7","daysApart":0},{"kind":"same-code","provenance":"machine","files":["controller/task_video.go","relay/channel/ali/image.go","relay/helper/price.go","service/quota.go","service/token_counter.go"],"commits":["https://github.com/QuantumNous/new-api/commit/0936e2504655a5cbf7bc3c388f6d3e2bb24916d3","https://github.com/QuantumNous/new-api/commit/c9943d37ad93477dd937fc4901cc3c4e0fd8aaab","https://github.com/QuantumNous/new-api/commit/d0bd8aac742d1e160a5ca61743fe35f4fff880e8"],"basis":"shared function","functions":["ModelPriceHelper","updateVideoSingleTask"]}]}],"packageHistory":[{"cve":"CVE-2026-41432","published":"2026-05-08","fixed":"0.12.10","kev":false},{"cve":"CVE-2026-64868","published":"2026-08-17","fixed":"1.0.0-rc.11","kev":false},{"cve":"CVE-2026-64865","published":"2026-08-17","fixed":"1.0.0-rc.16","kev":false,"link":{"from":"CVE-2026-64865","to":"CVE-2026-71479","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/QuantumNous/new-api","fromFixed":"1.0.0-rc.16","toFixed":"1.0.0-rc.18","daysApart":0}]}},{"cve":"CVE-2026-71479","published":"2026-08-17","fixed":"1.0.0-rc.18","kev":false},{"cve":"CVE-2026-64859","published":"2026-08-17","fixed":"1.0.0-rc.7","kev":false},{"cve":"CVE-2026-64866","published":"2026-08-17","fixed":"1.0.0-rc.7","kev":false}],"package":"Go:github.com/QuantumNous/new-api"}}