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.
Published: 2026-08-17
Score: 9.1 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw is an integer overflow in the quota‑billing calculations of the new‑api, where user supplied values for image size, video length, audio duration, token counts and billing expressions are converted without proper range checks. An attacker with a low‑privileged account that still holds a positive balance or an active subscription can craft requests that cause the server to generate a negative charge. Instead of a charge, the system credits the account, effectively turning negative billing into free credit and potentially draining upstream funds.

Affected Systems

QuantumNous’s new‑api gateway remains vulnerable in all releases prior to 1.0.0-rc.18. The issue lives in the common/quota_math.go module and related settlement paths. Updating to version 1.0.0‑rc.18 or later patches the integer‑overflow bug and prevents the self‑crediting behaviour.

Risk and Exploitability

With a CVSS score of 9.1 the vulnerability is considered critical. The EPSS score is not available, but the financial incentive and ease of triggering an overflow by supplying large API parameters mean exploitation is likely. The flaw is not listed in CISA’s KEV catalog yet, and the attack vector requires only API interaction, allowing remote attackers to abuse the billing system.

Generated by OpenCVE AI on August 17, 2026 at 17:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the new‑api package to version 1.0.0‑rc.18 or later to eliminate the integer‑overflow and self‑crediting behaviour.
  • Before upgrading, implement input validation to reject negative or excessively large values for image size, video duration, audio duration, token limits and billing expression operands to prevent overflow during calculation.
  • Regularly audit billing logs and monitor account balances for sudden negative charges that are converted into credits, and investigate any anomalies immediately.

Generated by OpenCVE AI on August 17, 2026 at 17:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-8r8v-xf7q-rcpr New API: Integer overflow in quota billing yields negative charges (self-crediting)
History

Mon, 17 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 17 Aug 2026 17:45:00 +0000

Type Values Removed Values Added
First Time appeared Quantumnous
Quantumnous new-api
Vendors & Products Quantumnous
Quantumnous new-api

Mon, 17 Aug 2026 16:15:00 +0000

Type Values Removed Values Added
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.
Title New API: Integer overflow in quota billing yields negative charges (self-crediting)
Weaknesses CWE-190
CWE-682
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H'}


Subscriptions

Quantumnous New-api
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-17T18:59:30.302Z

Reserved: 2026-08-06T19:56:23.724Z

Link: CVE-2026-71479

cve-icon Vulnrichment

Updated: 2026-08-17T18:59:25.755Z

cve-icon NVD

Status : Received

Published: 2026-08-17T16:17:44.307

Modified: 2026-08-17T19:16:35.383

Link: CVE-2026-71479

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-17T17:30:18Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

  • CWE-682

    Incorrect Calculation