Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/QuantumNous/new-api
  4. ›
  5. CVE-2026-64865

CVE-2026-64865: New API: Redis user quota cache overwrite via PUT /api/user/self allows quota bypass

August 17, 2026

Authenticated users can repeatedly call PUT /api/user/self with language or sidebar_modules while relay requests are consuming quota. The settings path reads a full User snapshot and writes it back through User.Update(), which refreshes Redis with RedisHSetObj and overwrites the Quota field. This can erase concurrent HINCRBY quota deductions and keep cached balance artificially high, allowing calls far beyond the paid quota.

References

  • github.com/QuantumNous/new-api/commit/dfc0d6324b40c1d6c2972e524409f933541bfb0f
  • github.com/QuantumNous/new-api/releases/tag/v1.0.0-rc.16
  • github.com/QuantumNous/new-api/security/advisories/GHSA-j6gc-4893-qwmp
  • github.com/advisories/GHSA-j6gc-4893-qwmp
  • nvd.nist.gov/vuln/detail/CVE-2026-64865

Code Behaviors & Features

Detect and mitigate CVE-2026-64865 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.0.0-rc.16

Fixed versions

  • 1.0.0-rc.16

Solution

Upgrade to version 1.0.0-rc.16 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Source file

go/github.com/QuantumNous/new-api/CVE-2026-64865.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 06 Sep 2026 12:17:05 +0000.