PT-2026-76689 · Go+3 · Github.Com/Quantumnous/New-Api+2
CVE-2026-64865
·
Published
2026-08-17
·
Updated
2026-09-04
CVSS v4.0
6.0
Medium
| Vector | AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Name of the Vulnerable Software and Affected Versions
New API versions prior to 1.0.0-rc.16
Description
An authenticated user can bypass quota enforcement, potentially causing financial loss to operators. The issue occurs when repeated requests to the 'PUT /api/user/self' endpoint are used to update
language or sidebar modules while relay requests are simultaneously consuming quota. The UpdateSelf function in controller/user.go calls User.Update(), which triggers updateUserCache to perform a full RedisHSetObj write to the user:.Quota cache. This process overwrites concurrent HINCRBY deductions (atomic increments/decrements used for billing), allowing the cached quota to remain artificially high.Recommendations
Upgrade to version 1.0.0-rc.16 or later and restart application instances to remove stale in-process code paths.
As a temporary workaround, restrict or rate-limit the 'PUT /api/user/self' endpoint to prevent frequent user setting updates while the Redis-backed quota cache is enabled.
Exploit
Fix
Race Condition
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Github.Com/Quantumnous/New-Api
Govulncheck-Vulndb
New Api