Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/QuantumNous/new-api
  4. ›
  5. CVE-2026-71479

CVE-2026-71479: New API: Integer overflow in quota billing yields negative charges (self-crediting)

August 17, 2026

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. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.0.0-rc.18

Fixed versions

  • 1.0.0-rc.18

Solution

Upgrade to version 1.0.0-rc.18 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-190: Integer Overflow or Wraparound
  • CWE-682: Incorrect Calculation

Source file

go/github.com/QuantumNous/new-api/CVE-2026-71479.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:27 +0000.