LibreChat
CVE-2025-8849
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to LibreChat API
-
ExploitPOST oversized key/value to /api/memories
-
ExecutionTrigger null pointer error in backend
-
ImpactDeny 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 |
| 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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.
Primary rating from NVD.
CVSS VectorNVD
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
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.
Apply vendor patch.
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
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Affected Products (CPE)NVD
A vulnerability in danny-avila/librechat version git 81f2936 allows for path traversal due to improper sanitization of f
An arbitrary file deletion vulnerability exists in danny-avila/librechat version v0.7.5-rc2, specifically within the /ap
LibreChat before v0.8.2-rc2 allows any authenticated user to execute shell commands as root inside the container through
LibreChat 0.7.9 lets an authenticated user turn off two-factor authentication on their own account without supplying a v
Stored cross-site scripting and tracker injection in LibreChat 0.8.0 and earlier allow a user who can create a chat to c
LibreChat is a ChatGPT clone with additional features. Rated high severity (CVSS 8.6), this vulnerability is remotely ex
LibreChat 0.8.1-rc2 has SSRF in the Actions feature that allows authenticated users to make the server perform requests
In danny-avila/librechat version git 0c2a583, there is an improper input validation vulnerability. Rated high severity (
A mass assignment vulnerability exists in danny-avila/librechat, affecting all versions. Rated high severity (CVSS 7.5),
An unhandled exception in the danny-avila/librechat repository, version git 600d217, can cause the server to crash, lead
An improper access control vulnerability (IDOR) exists in the delete attachments functionality of danny-avila/librechat
LibreChat is a ChatGPT clone with additional features. Version 0.8.1-rc2 does not enforce proper access control for file
NVD
CVE.org
EPSS
GitHub
Exploit-DB