Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with valid user account
-
DeliveryDeplete balance and wait for refill interval
-
ExploitFire K concurrent chat requests through stale window
-
ExecutionEach passes unlocked lastRefill eligibility check
-
ImpactReceive K × refillAmount credits, bypass credit limits
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 a non-default deployment where auto-refill is enabled (autoRefillEnabled: true) with a configured refillAmount, the refill interval must have already elapsed so a single eligibility window is open, and the attacker must hold a valid authenticated account (PR:L) with a near-depleted balance. The attacker must also be able to issue multiple truly concurrent chat requests that overlap within that one window before any of them updates lastRefill. Limiting factors: it only works while auto-refill is configured, the attacker only inflates their own balance (no cross-tenant or unauthenticated access), the timing race (AT:P / AC:H) must be won, and impact is meaningful only where token credits translate to real monetary cost. |
| Impact | All severity signals converge on low priority. The input CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N) scores only 2.3, and the vuln.today decision label is 'monitor' - not act_now or emergency. The sole impact is a low integrity effect (VI:L): an authenticated user inflates their own token-credit balance and bypasses configured credit limits; there is no confidentiality (VC:N) or availability (VA:N) impact and no scope change to other systems. The attack is network-reachable but requires a valid authenticated account (PR:L) and winning a timing race (AT:P / AC:H), so it is not trivially automatable at scale. It is not in CISA KEV (no active-exploitation signal present in the input), and no EPSS score was supplied, so widespread exploitation probability cannot be quantified from this data. A detailed PoC with concurrent-request curl commands is published in the GHSA advisory, so working exploitation is plausible, but a PoC is not evidence of in-the-wild use. Net: this is a genuine but low-severity abuse-of-feature issue whose real-world importance scales only with how directly credits map to money in a given deployment - consistent with the maintainer's 'medium' assessment and the 'monitor' decision rather than an urgent patch emergency. |
| Exploit ScenarioDerived | An authenticated LibreChat user whose balance is near zero waits until the auto-refill interval has elapsed, then fires K simultaneous chat requests that each read the same stale lastRefill value and each pass the eligibility gate. Because the balance compare-and-swap guards only tokenCredits and not lastRefill, every request credits refillAmount, yielding K × refillAmount from a single refill window. A public PoC reference exists in the GHSA advisory demonstrating this with 10 concurrent requests; it is not verified as working end-to-end exploit code, and the maintainer audit explicitly did not rerun a full application exploit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
LibreChat releases 0.7.8 through 0.8.8-rc2 contain a race condition in the auto-refill eligibility check that lets an authenticated user multiply their own credit grant by firing concurrent chat requests inside a single elapsed refill window. The balance compare-and-swap fences on tokenCredits only, so every concurrent request reads the same stale lastRefill, passes the gate, and adds refillAmount again, producing K x refillAmount credits from one window. Exploitation requires a non-default deployment with autoRefillEnabled and a configured refillAmount, a near-depleted attacker balance, and a won timing race (AC:H / AT:P), so impact is confined to self-inflation of credits that only matters where credits map to real money; a public PoC reference exists in the GitHub advisory, but the maintainers note it is a reporter demonstration on tested builds rather than an independently re-verified end-to-end exploit. No CISA KEV entry or other active-exploitation signal was provided, and the vuln.today decision label is monitor.
RemediationAI
Vendor-released patch: upgrade to LibreChat v0.8.9 (https://github.com/LibreChat-AI/LibreChat/releases/tag/v0.8.9), which contains fix commits 696bcb6c1e29b537e7aa27ad35ea4cddd43b176c and 0fea0240d65225f4837122d12f6d364d6964b10f; both commits are ancestors of the v0.8.9 tag per the GHSA-32pj-j526-963j advisory, which also tracks PRs #15879 and #16781. Upgrading is the complete remediation and replaces the non-atomic refill check with an atomic fence on lastRefill, balance, reservation and policy values. Because the race only exists when auto-refill is enabled, deployments that cannot immediately move to v0.8.9 can eliminate exposure by setting autoRefillEnabled to false and granting credits manually; the trade-off is loss of automatic top-ups for all users on that instance. Verify that any container image or fork actually derives from the v0.8.9 source, since the advisory explicitly does not certify third-party or stale images, and treat unexpected balance inflation in environments where auto-refill remains enabled as a signal to prioritize the upgrade.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
LibreChat is a Node.js/TypeScript chat application backed by MongoDB through Mongoose data-schema methods. The middleware at packages/api/src/middleware/checkBalance.ts reads refill eligibility, and packages/data-schemas/src/methods/transaction.ts applies the credit via createAutoRefillTransaction, which calls updateBalance with a compare-and-swap filter keyed on { user, tokenCredits: currentCredits } and a 10-attempt retry loop. The root cause is CWE-362 (concurrent execution using a shared resource with improper synchronization): lastRefill is written as a set-value in the update payload but is never part of the CAS filter, so two or more concurrent requests that both observe an expired interval are not serialized on the refill marker. The advisory also classifies the behavior as CWE-841 (improper enforcement of a behavioral workflow), since the intended one-refill-per-interval policy is not enforced under concurrency. The maintainer fix replaces this with an atomic fence on lastRefill, balance, reservation and policy values before the credit is applied, and introduces a distinct reset refill mode in the balance UI and data-provider types. The trigger requires overlapping requests within one eligibility window; the sources do not describe any other trigger path.
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
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Network-reachable but requires an authenticated account (PR:L) and winning a concurrency race (AC:H); only self-balance integrity is affected (I:L), with no confidentiality or availability impact.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
1DescriptionCVE.org
LibreChat 0.7.8 before 0.8.9 contains a race condition vulnerability in checkBalance that allows authenticated users to obtain multiple auto-refill credits by sending concurrent requests. Attackers can send simultaneous chat requests that each pass the unlocked lastRefill check, receiving repeated refillAmount credits and bypassing configured token credit limits.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
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).
EUVD-2026-136867
NVD
CVE.org
EPSS
GitHub
Exploit-DB