Description
New API is a large language mode (LLM) gateway and artificial intelligence (AI) asset management system. Prior to 1.0.0-rc.16, repeated PUT /api/user/self requests that update language or sidebar_modules can race relay billing because controller/user.go calls User.Update and updateUserCache performs a full RedisHSetObj write to user:.Quota, overwriting concurrent HINCRBY deductions and allowing an authenticated user to keep cached quota artificially high. This issue is fixed in version 1.0.0-rc.16.
Published: 2026-08-17
Score: 6 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Repeated authenticated PUT /api/user/self requests that modify language or sidebar_modules trigger a race condition in the New API's quota caching logic. The controller calls User.Update and then performs a full RedisHSetObj write to the user’s cache, overwriting concurrent HINCRBY updates that reduce the quota. This allows an authenticated user to keep a cached quota artificially high, enabling resource usage beyond the intended limits.

Affected Systems

QuantumNous’s New API before version 1.0.0‑rc.16 is affected. The issue exists in any deployment of the pre‑rc.16 releases that allows repeated PUT requests to /api/user/self.

Risk and Exploitability

The CVSS base score of 6 indicates moderate severity. EPSS data are not available, and the vulnerability is not listed in CISA’s KEV catalog, suggesting no confirmed large‑scale public exploitation. The exploit requires an authenticated user with privileges to send PUT requests to /api/user/self, which is typically any registered user. Because the flaw is a race condition, the attacker must time concurrent requests to overwrite the cache, which is possible with simple automation. Therefore, the risk is moderate but remains significant for accounts with high resource consumption limits.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade QuantumNous New API to version 1.0.0‑rc.16 or later. This release removes the race condition by ensuring quota updates are not overwritten by cache writes.
  • If upgrading is delayed, implement rate limiting or lock‑out mechanisms on the /api/user/self endpoint to reduce concurrent updates that could trigger the race condition.
  • Audit and refactor the Redis cache update logic to use atomic increment/decrement operations instead of full overwrite writes, ensuring that concurrent updates cannot overwrite each other.

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

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-j6gc-4893-qwmp New API: Redis user quota cache overwrite via PUT /api/user/self allows quota bypass
History

Mon, 17 Aug 2026 18: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.16, repeated PUT /api/user/self requests that update language or sidebar_modules can race relay billing because controller/user.go calls User.Update and updateUserCache performs a full RedisHSetObj write to user:.Quota, overwriting concurrent HINCRBY deductions and allowing an authenticated user to keep cached quota artificially high. This issue is fixed in version 1.0.0-rc.16.
Title New API: Redis user quota cache overwrite via PUT /api/user/self allows quota bypass
Weaknesses CWE-362
References
Metrics cvssV4_0

{'score': 6, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N'}


Subscriptions

Quantumnous New-api
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-17T16:13:37.664Z

Reserved: 2026-07-20T18:31:39.292Z

Link: CVE-2026-64865

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-17T16:17:22.427

Modified: 2026-08-17T16:17:22.427

Link: CVE-2026-64865

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-17T18:30:04Z

Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')