CVE-2026-64865

New API: Redis user quota cache overwrite via PUT /api/user/self allows quota bypass

Published Aug 17, 2026 CVSS 4.0 · 6 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Quantumnous
Quantumnous new-api
Vendors & Products Quantumnous
Quantumnous new-api
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'}

Weaknesses
  • CWE-362

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 18, 2026, 2:47 PM
Reserved
Jul 20, 2026, 6:31 PM
Status
Deferred
Published
Aug 17, 2026, 4:17 PM
Modified
Sep 18, 2026, 8:09 PM