CVE-2026-71479: New API: Integer overflow in quota billing yields negative charges (self-crediting)
Multiple billing paths multiplied user-controlled quantity parameters into the quota calculation without an upper bound or overflow-safe integer conversion. A crafted extreme value (e.g. image n = 18446744073686646784, a wrapped-negative accepted by a *uint field) makes conversions like int(float64(quota) * n) wrap past the int64/int32 range into a large negative quota. The negative quota takes effect at settlement (not at pre-consume), where it is equivalent to crediting the user’s balance — turning a small positive balance into an enormous one.
References
- github.com/QuantumNous/new-api/commit/c9943d37ad93477dd937fc4901cc3c4e0fd8aaab
- github.com/QuantumNous/new-api/commit/d0bd8aac742d1e160a5ca61743fe35f4fff880e8
- github.com/QuantumNous/new-api/releases/tag/v1.0.0-rc.18
- github.com/QuantumNous/new-api/security/advisories/GHSA-8r8v-xf7q-rcpr
- github.com/advisories/GHSA-8r8v-xf7q-rcpr
- nvd.nist.gov/vuln/detail/CVE-2026-71479
Code Behaviors & Features
Detect and mitigate CVE-2026-71479 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →