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
Share

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

Lifecycle Timeline

2
Analysis Generated
Oct 07, 2026 - 21:41 vuln.today
CVE Published
Oct 31, 2025 - 00:15 nvd
HIGH 7.5

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.

AnalysisAI

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.

Technical ContextAI

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.

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.

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-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

CVE-2024-41704 CRITICAL
9.8 Jul 22

LibreChat through 0.7.4-rc1 does not validate the normalized pathnames of images. Rated critical severity (CVSS 9.8), th

Share

CVE-2025-8849 vulnerability details – vuln.today

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