QuantumNous new-api
New API: Integer overflow in quota billing yields negative charges (self-crediting)
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.0.0-rc.18
Fixed in 1.0.0-rc.18
Mitigation
Upgrade new-api to 1.0.0-rc.18 or later.
References
- Vendor advisory github.com/QuantumNous/new-api/security/adviso…
- Patch github.com/QuantumNous/new-api/commit/c9943d37…
- Patch github.com/QuantumNous/new-api/commit/d0bd8aac…
1 more
- Release notes github.com/QuantumNous/new-api/releases/tag/v1…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.