Skip to main content

New API CVE-2026-64865

| EUVDEUVD-2026-60263 MEDIUM
Race Condition (CWE-362)
2026-08-17 security-advisories@github.com GHSA-j6gc-4893-qwmp
6.0
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with low-privilege user account
  2. Delivery
    Send rapid repeated PUT /api/user/self preference updates
  3. Exploit
    Simultaneously trigger quota-consuming LLM relay requests
  4. Execution
    Stale full User snapshot write via RedisHSetObj overwrites concurrent HINCRBY billing deductions
  5. Persist
    Cached quota balance remains artificially high
  6. Impact
    Continue making API calls beyond paid quota limit

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Concurrency control, locking
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires three concurrent conditions: (1) a valid authenticated account with at minimum low privileges (PR:L confirmed by CVSS 4.0 vector) - anonymous access is insufficient; (2) Redis quota caching must be enabled in the deployment (AT:P in CVSS 4.0 explicitly encodes this as an attack requirement - deployments relying solely on database-backed quota checks are not affected by this race path); and (3) the attacker must successfully time PUT /api/user/self settings updates to race concurrently executing billing HINCRBY operations (AC:H), requiring sustained concurrent request volume rather than a single crafted packet. Exploitation is limited to New API versions ≤ 1.0.0-rc.15 with Redis enabled. Deployments where Redis caching is disabled, or where PUT /api/user/self is rate-limited aggressively, have a substantially reduced but not eliminated risk window.

Impact

The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:L) scores 6.0 (Medium), which accurately reflects real-world priority. High attack complexity (AC:H) is warranted because successful exploitation requires winning a race between two concurrent Redis write paths - attackers must sustain rapid PUT /api/user/self requests while simultaneously triggering quota-consuming relay calls, making reliable exploitation non-trivial. The AT:P metric confirms Redis caching must be enabled, limiting the attack surface to deployments that have opted into Redis-backed quota enforcement. Authentication is required (PR:L confirmed by CVSS). Integrity impact is High (VI:H) because quota bypass directly translates to untracked financial costs for operators. There is no KEV listing and no public POC, and no EPSS data was provided in the input. The gap between authentication consumption using cached quota and DB/log usage accumulating unchecked is the core financial risk signal. Overall: a real, exploitable issue for multi-tenant Redis-enabled deployments, but not a broad emergency - upgrade priority should be high for any operator charging users based on quota.

Exploit ScenarioDerived

An authenticated user opens two concurrent execution paths: one thread sends high-frequency PUT /api/user/self requests cycling language or sidebar_modules settings, while a second thread issues LLM relay requests that trigger HINCRBY quota deductions. Each settings update reads a stale User snapshot with the original (high) quota value and writes it back via RedisHSetObj, overwriting the HINCRBY deductions applied between the DB read and Redis write. By sustaining this pattern, the attacker keeps their cached quota near the original value and continues making API calls far beyond their paid allocation until a DB reconciliation exposes the discrepancy.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 17, 2026

Quota bypass via Redis cache race condition in New API (QuantumNous LLM gateway) allows any authenticated low-privilege user to keep their cached quota balance artificially inflated by flooding PUT /api/user/self with settings updates while concurrently consuming quota. The settings update path reads a stale full User snapshot and writes it back via RedisHSetObj, atomically overwriting HINCRBY billing deductions applied by concurrent relay requests to the same Redis hash key. No public exploit has been identified and the vulnerability is not listed in CISA KEV; however, the financial integrity impact on operators is concrete, as affected users can make LLM API calls well beyond their paid allocation without detection until a database reconciliation occurs.

RemediationAI

Upgrade to New API v1.0.0-rc.16 or later, available at https://github.com/QuantumNous/new-api/releases/tag/v1.0.0-rc.16; the patch commit is dfc0d6324b40c1d6c2972e524409f933541bfb0f. After upgrading, the GHSA advisory explicitly recommends restarting all application instances to eliminate stale in-process code paths. If immediate upgrade is not possible, operators should rate-limit or temporarily block PUT /api/user/self to reduce the race window; note this is a mitigation only and does not close the race - it merely reduces exploitation frequency. A more aggressive workaround is disabling Redis quota caching entirely, which eliminates the vulnerable code path but degrades request latency and shifts quota enforcement to database queries, impacting throughput under load. Neither workaround is a substitute for patching.

Affected VersionsENISA

new-api < 1.0.0-rc.16

Affected Packages

go github.com/quantumnous/new-api fix: 1.0.0-rc.16
euvd new_api fix: 1.0.0-rc.16

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

New API is a Go-based LLM API gateway that caches user state - including quota balances - in Redis hashes keyed as user:<id>. Billing deductions use atomic Redis HINCRBY operations on the Quota field, preserving transactional integrity under concurrent requests. The vulnerable code path in controller/user.go (UpdateSelf) reads the full User struct from the database, sets new preference fields (language, sidebar_modules), then calls User.Update() which ultimately invokes updateUserCache() using RedisHSetObj - a full hash overwrite. This creates a classic TOCTOU race (CWE-362): the stale Quota value embedded in the snapshot silently clobbers HINCRBY deductions applied between the DB read and the Redis write. The fix (commit dfc0d63) replaces full-snapshot updates with field-scoped model.UpdateUserSetting(), and refactors updateUserCache() to explicitly omit quota, used_quota, and request_count fields so atomic billing paths retain sole ownership of those Redis fields.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 6.0 MEDIUM
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
vuln.today AI 5.9 MEDIUM

Network-reachable endpoint requires authenticated low-privilege user (PR:L) and successful race timing (AC:H); quota overwrite is high integrity impact, minor availability impact from quota exhaustion side effects, no confidentiality loss.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L
4.0 AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
SUSE MEDIUM

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Aug 17, 2026 - 17:02 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 84% exploitable
Prevalence
Low
pre-1.0 niche LLM gateway, limited production footprint
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Race conditions occur when multiple concurrent requests exploit the brief time gap between checking a condition and acting upon it (TOCTOU - Time of Check, Time of Use).

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy