{"id":"CVE-2026-71479","state":"PUBLISHED","title":"New API: Integer overflow in quota billing yields negative charges (self-crediting)","description":"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.","publishedAt":"2026-08-17T16:11:28.485Z","updatedAt":"2026-08-17T18:59:30.302Z","severity":{"score":9.1,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["QuantumNous new-api"],"affected":[{"vendor":"QuantumNous","product":"new-api","versions":[{"version":"< 1.0.0-rc.18","status":"affected"}]}],"references":["https://github.com/QuantumNous/new-api/security/advisories/GHSA-8r8v-xf7q-rcpr","https://github.com/QuantumNous/new-api/commit/c9943d37ad93477dd937fc4901cc3c4e0fd8aaab","https://github.com/QuantumNous/new-api/commit/d0bd8aac742d1e160a5ca61743fe35f4fff880e8","https://github.com/QuantumNous/new-api/releases/tag/v1.0.0-rc.18"],"weaknesses":["CWE-190","CWE-682"],"ingestedAt":"2026-10-29T20:12:49.727Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/71xxx/CVE-2026-71479.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-71479","state":"PUBLISHED","datePublished":"2026-08-17T16:11:28.485Z","dateUpdated":"2026-08-17T18:59:30.302Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-08-06T19:56:23.724Z"},"containers":{"cna":{"title":"New API: Integer overflow in quota billing yields negative charges (self-crediting)","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"QuantumNous","product":"new-api","versions":[{"version":"< 1.0.0-rc.18","status":"affected"}]}],"references":[{"url":"https://github.com/QuantumNous/new-api/security/advisories/GHSA-8r8v-xf7q-rcpr","name":"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","name":"https://github.com/QuantumNous/new-api/commit/c9943d37ad93477dd937fc4901cc3c4e0fd8aaab","tags":["x_refsource_MISC"]},{"url":"https://github.com/QuantumNous/new-api/commit/d0bd8aac742d1e160a5ca61743fe35f4fff880e8","name":"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","name":"https://github.com/QuantumNous/new-api/releases/tag/v1.0.0-rc.18","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.1,"baseSeverity":"CRITICAL","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-190","lang":"en","description":"CWE-190: Integer Overflow or Wraparound","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-682","lang":"en","description":"CWE-682: Incorrect Calculation","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-08-17T16:11:28.485Z"},"source":{"advisory":"GHSA-8r8v-xf7q-rcpr","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-17T18:59:17.674957Z","id":"CVE-2026-71479","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-17T18:59:30.302Z"}}]}}}