Skip to main content

LibreChat CVE-2025-8849

HIGH
Uncontrolled Resource Consumption (CWE-400)
2025-10-31 security@huntr.dev
7.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to LibreChat API
  2. Exploit
    POST oversized key/value to /api/memories
  3. Execution
    Trigger null pointer error in backend
  4. Impact
    Deny memory-creation service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

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

Exploitation Conditions

Requires the memory feature to be enabled (a valid memory agent configured) and a request to the POST /api/memories (or PATCH /api/memories/:key) endpoint carrying an oversized key or value parameter. Exploitation is LIMITED by the endpoint's authorization middleware (checkMemoryCreate/checkMemoryUpdate), so a valid authenticated session is needed in practice despite the NVD PR:N rating; it also only applies to LibreChat 0.7.9 with memory enabled, and is neutralized once the 100kb payload limit and 1000-char key / 10000-char value checks from the fix are applied.

Impact

The signals are moderately consistent but one is questionable. The NVD CVSS vector (AV:N/AC:L/PR:N/UI:N, A:H = 7.5) describes a trivially reachable network DoS, and a public POC exists via huntr, raising practical exploitability. However, the /api/memories endpoint is gated by authorization middleware (checkMemoryCreate in the patched code), so the PR:N (unauthenticated) metric is likely wrong - exploitation almost certainly requires an authenticated session, making this PR:L in practice. There is no CISA KEV listing and no EPSS score was provided, so there is no evidence of active or widespread exploitation; this should be treated as a POC-backed but not actively-exploited availability bug. Net: a real, confirmed, easy-to-trigger DoS against the memory feature, but scoped to authenticated users and non-critical functionality (memory creation), so it is a medium-priority patch rather than an emergency - downgrade from the headline 7.5 once the authentication requirement is accounted for.

Exploit ScenarioDerived

An authenticated LibreChat user (or an attacker who has obtained any valid account) sends a POST to /api/memories with an arbitrarily large key or value field. The oversized input triggers a null pointer error in the backend memory-processing path, which prevents new memories from being created and degrades service stability. A public proof-of-concept is available via the huntr bounty report, lowering the effort required to reproduce the attack.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Oct 07, 2026

Unbounded key and value parameters on the LibreChat 0.7.9 memory API (POST /api/memories and PATCH /api/memories/:key) allow an attacker to submit arbitrarily large inputs that cause a null pointer error in the Rust-based memory backend, leaving the service unable to create new memories and degrading overall stability. Exploitation is limited in practice to deployments where the memory feature is enabled with a valid memory agent and, because the routes sit behind the checkMemoryCreate/checkMemoryUpdate middleware, to a valid authenticated session - our assessment rates this CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (7.5), correcting NVD's PR:N rating. Publicly available exploit code exists, published through the huntr bounty program, but there is no confirmation of active exploitation and the issue is not in CISA KEV; it is neutralized once the 100kb payload limit and 1000-character key / 10000-character value checks from the upstream fix are applied.

RemediationAI

Apply the upstream fix commit edf33bedcbb08c33e59df76f06454ed7efd896f9 (see https://github.com/danny-avila/librechat/commit/edf33bedcbb08c33e59df76f06454ed7efd896f9) or upgrade to a LibreChat release that includes it; note that patch availability is confirmed at the commit level, so an independently verified tagged release should be checked before assuming the fix is shipped (upstream fix available via PR/commit; released patched version not independently confirmed). The fix enforces a 100kb JSON body limit on the memory routes, rejects keys longer than 1000 characters and values longer than the configured charLimit (default 10000) with HTTP 400, and defaults charLimit to 10000 through the zod memorySchema. If you cannot patch immediately, the most effective compensating control is to disable the memory feature outright (set memory.disabled to true or remove the valid memory agent configuration) - the trade-off is loss of persistent memory functionality for all users. Alternatively, front the application with a reverse proxy or ingress that enforces a client body size limit near 100kb and rejects oversized JSON on /api/memories - this is coarse, may need to be scoped carefully so it does not break other endpoints, and does not validate individual field lengths. Additionally, ensure the application is not exposed unauthenticated and restrict memory-creation permissions, since the affected routes are already gated by checkMemoryCreate/checkMemoryUpdate middleware and require a valid session in practice. Reporting and bounty details are available at https://huntr.com/bounties/e9d9404c-cd19-4226-a580-9cba14b7d7d6.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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/Express self-hosted chat application that persists user memories through a native (Rust-based) backend component. The memory creation and update routes in api/server/routes/memories.js accepted the key and value fields without length validation and without a route-scoped body size limit, so the default Express JSON parser would pass through arbitrarily large payloads to the memory service. The oversized data is not handled safely by the Rust component, producing a null pointer error that breaks memory creation. This is CWE-400 (Uncontrolled Resource Consumption): the root cause is the absence of bounds on attacker-controlled input plus a missing size constraint upstream of the parsing layer. The upstream fix adds express.json({ limit: '100kb' }) as route-level middleware on both the POST and PATCH memory routes, adds explicit guards that return HTTP 400 when a key exceeds 1000 characters or a value exceeds the configured charLimit, and centralizes memory configuration handling in @librechat/api (loadMemoryConfig/isMemoryEnabled) with charLimit defaulting to 10000 via the zod memorySchema. The only CPE recorded is cpe:2.3:a:librechat:librechat:0.7.9:-:*:*:*:*:*:*, indicating a version-specific defect rather than a design flaw affecting all releases.

Know when Librechat gets its next vulnerability

  • 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

NVD PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 6.5 MEDIUM

Memory endpoints are behind auth middleware so PR:L not PR:N; network-reachable with trivial oversized input (AV:N/AC:L), availability-only impact (A:H), no confidentiality or integrity loss.

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

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionNVD

LibreChat version 0.7.9 is vulnerable to a Denial of Service (DoS) attack due to unbounded parameter values in the /api/memories endpoint. The key and value parameters accept arbitrarily large inputs without proper validation, leading to a null pointer error in the Rust-based backend when excessively large values are submitted. This results in the inability to create new memories, impacting the stability of the service.

Executive ViewAI

Why It Matters

LibreChat 0.7.9 memory API can be disrupted by an authenticated user who submits oversized key or value inputs, causing the Rust memory backend to fail and preventing new memories from being created for affected deployments. Impact is limited to environments where the memory feature and a valid memory agent are enabled, but publicly available exploit code exists, so remediation should be prioritized even though the issue is not listed in CISA KEV. Leadership should care because this availability issue can degrade service stability for users relying on memory features and may require coordinated upgrade and monitoring across affected instances.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 74% exploitable
Prevalence
Medium
popular self-hosted open-source AI chat app, not enterprise-ubiquitous
Exploit
POC
Public exploit code exists
Data Quality
3 sources
Confidence: Low

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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Medium

Priority Score

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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)NVD

cpe:2.3:a:librechat:librechat:0.7.9:-:*:*:*:*:*:*
CVE-2024-11170 HIGH POC
8.8 Mar 20

A vulnerability in danny-avila/librechat version git 81f2936 allows for path traversal due to improper sanitization of f

CVE-2024-10361 CRITICAL POC
9.1 Mar 20

An arbitrary file deletion vulnerability exists in danny-avila/librechat version v0.7.5-rc2, specifically within the /ap

CVE-2026-22252 CRITICAL POC
9.1 Jan 12

LibreChat before v0.8.2-rc2 allows any authenticated user to execute shell commands as root inside the container through

CVE-2025-8850 HIGH POC
8.8 Oct 30

LibreChat 0.7.9 lets an authenticated user turn off two-factor authentication on their own account without supplying a v

CVE-2025-66450 HIGH POC
8.6 Dec 11

Stored cross-site scripting and tracker injection in LibreChat 0.8.0 and earlier allow a user who can create a chat to c

CVE-2025-66201 HIGH POC
8.6 Nov 29

LibreChat is a ChatGPT clone with additional features. Rated high severity (CVSS 8.6), this vulnerability is remotely ex

CVE-2025-69222 HIGH POC
8.1 Jan 07

LibreChat 0.8.1-rc2 has SSRF in the Actions feature that allows authenticated users to make the server perform requests

CVE-2024-11171 HIGH POC
7.5 Mar 20

In danny-avila/librechat version git 0c2a583, there is an improper input validation vulnerability. Rated high severity (

CVE-2025-7104 HIGH POC
7.5 Sep 29

A mass assignment vulnerability exists in danny-avila/librechat, affecting all versions. Rated high severity (CVSS 7.5),

CVE-2024-11173 MEDIUM POC
6.5 Mar 20

An unhandled exception in the danny-avila/librechat repository, version git 600d217, can cause the server to crash, lead

CVE-2024-10366 MEDIUM POC
6.5 Mar 20

An improper access control vulnerability (IDOR) exists in the delete attachments functionality of danny-avila/librechat

CVE-2025-69220 MEDIUM POC
5.9 Jan 07

LibreChat is a ChatGPT clone with additional features. Version 0.8.1-rc2 does not enforce proper access control for file

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