Skip to main content

Langchain-Chatchat CVE-2026-51883

| EUVDEUVD-2026-91122 CRITICAL
Path Traversal (CWE-22)
2026-10-01 mitre GHSA-c4wm-cr62-pcg5
9.1
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Reach exposed upload/KB-create API
  2. Delivery
    Send request with `..\` in knowledge_base_name
  3. Exploit
    Write content outside KB root
  4. Execution
    Place file in sensitive path
  5. Impact
    Trigger execution or overwrite config

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

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

Exploitation Conditions

Exploitation requires reachable access to Langchain-Chatchat's knowledge base creation or document upload interface and the ability to submit a crafted knowledge_base_name value containing traversal sequences such as ..\; the backslash notation points to Windows-style path handling, so a Windows host (or software not normalizing backslashes) is the most reliable target. The supplied CVSS marks PR:N/UI:N, and Langchain-Chatchat ships without built-in authentication on its API/UI by default, so an exposed instance is exploitable without credentials or user interaction. Limiting factors: the instance must be network-reachable to the attacker (these are typically internal/developer deployments, not broadly internet-exposed), only versions 0.3.0 and 0.3.1 are named, and turning the arbitrary write into code execution depends on writable high-value paths on the host.

Impact

Multiple signals are in tension here and must be weighed carefully. The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N) rates this 9.1 Critical, implying trivially remote, unauthenticated exploitation of an arbitrary-file-write path traversal (CWE-22) in Langchain-Chatchat 0.3.0 and 0.3.1. However, the EPSS score is only 0.14% (3rd percentile), indicating the predictive models see very low near-term mass-exploitation likelihood, and the CVE is NOT in CISA KEV, so there is no public evidence of active exploitation. A reference gist (github.com/Ro1ME) and the project issue tracker (#5467) strongly suggest proof-of-concept exploit material exists, so the realistic status is 'publicly available exploit code exists' rather than active exploitation. The low EPSS despite a high CVSS is consistent with a niche developer-facing RAG application having a small internet-exposed attack surface rather than the flaw being low-impact. One signal to verify: the input CVSS marks C:H/I:H/A:N, but the described primitive is a file *write* ('write knowledge base content to arbitrary locations'), which most naturally yields high integrity (and potential availability/RCE) impact rather than direct confidentiality disclosure - the C:H rating appears to assume write-to-RCE escalation and should be confirmed against the actual exploit. Net: a genuinely serious flaw for anyone running these exact versions exposed to untrusted users, but its real-world priority is tempered by low deployment footprint and no confirmed in-the-wild activity.

Exploit ScenarioDerived

An attacker with network access to a Langchain-Chatchat 0.3.0/0.3.1 instance sends a crafted knowledge-base-creation or document-upload request embedding path traversal sequences (e.g. ..\) in the knowledge_base_name parameter, causing attacker-controlled content to be written outside the knowledge base root into an arbitrary filesystem location. By targeting a startup script, configuration file, or web-accessible path, the attacker can escalate the write primitive toward code execution or service disruption. Public PoC/exploit material appears to exist (referenced gist and project issue #5467), lowering the barrier to reproduction.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Oct 05, 2026

Path traversal in Langchain-Chatchat 0.3.0 and 0.3.1 allows unauthenticated remote attackers to write knowledge base content to arbitrary filesystem locations outside the configured knowledge base root by injecting traversal sequences such as ..\ into the knowledge_base_name parameter of the knowledge base creation and document upload interfaces. The independent assessment scores this CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H (9.1), i.e. no confidentiality loss but high integrity and availability impact, since arbitrary file writes can overwrite or clobber existing files and, depending on which paths the service process can reach, may be escalated toward code execution. Not listed in CISA KEV and no public exploit identified at time of analysis; EPSS is 0.14% (roughly the 3rd percentile), so automated mass exploitation is unlikely, but the advisory references an upstream GitHub issue and a public gist that may carry additional technical detail.

RemediationAI

No vendor-released patch identified at time of analysis, and no fixed version is documented in the supplied data, so remediation must be compensating controls. The most effective immediate step is to stop exposing the knowledge base creation and document upload interfaces: bind the service to localhost or an internal-only interface, firewall the management/API ports, and place an authenticating reverse proxy in front of the UI and API - Langchain-Chatchat ships without built-in authentication by default, so unauthenticated instances are directly exposed to this PR:N/UI:N issue; the trade-off is that legitimate unauthenticated or scripted clients will break until they supply credentials. Where the endpoints must remain reachable, patch or wrap the path construction so that knowledge_base_name is strictly validated (allow-list characters, reject .., ..\, absolute paths and mixed separators) and the final target is canonicalized with something like realpath and checked to be inside the knowledge base root before any write; the trade-off is that this is custom code maintenance against an unpatched upstream, so it should be re-verified against the upstream GitHub issue for the eventual official fix. Run the service on Linux or otherwise ensure backslash sequences are normalized, since the disclosed payloads rely on Windows-style separators. Finally, run the application as a low-privileged, containerized user with a read-only root filesystem and a single writable volume for the knowledge base directory, which blocks writes to startup scripts, configuration, or web-served paths that could convert the file write into code execution; the trade-off is that read-only root filesystems can break features that expect to write caches, logs, or temporary data, so those paths must be explicitly mounted. Monitor the knowledge base and upload endpoints for traversal patterns such as ..\ and ../ in request bodies, and review the advisory at https://nvd.nist.gov/vuln/detail/CVE-2026-51883 and the upstream issue https://github.com/chatchat-space/Langchain-Chatchat/issues/5467 for patch guidance.

Affected VersionsENISA

n/a n/a

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

Langchain-Chatchat (formerly langchain-ChatGLM) is an open-source retrieval-augmented-generation application that combines a LangChain-based backend with a web UI, and it exposes knowledge base creation and document upload endpoints that take a user-supplied knowledge_base_name which is concatenated into a filesystem path beneath the configured knowledge base root (KB_ROOT). Because the parameter is not sanitized or canonicalized before path construction, sequences such as ..\ (Windows-style separators) allow the resolved write target to escape that root - the classic CWE-22 improper limitation of a pathname to a restricted directory pattern. The use of backslash traversal in the description indicates the vulnerable path handling does not normalize backslashes, making Windows hosts, or any deployment where the input reaches an OS without separator normalization, the most reliable target; POSIX deployments attempting ../ may be normalized or rejected depending on the code path. This is a write primitive rather than a read primitive, so the assessed impact is C:N/I:H/A:H: attackers cannot directly exfiltrate files, but they can plant or overwrite content anywhere the service account has write permission, and file-write-to-code-execution escalation depends on whether writable high-value paths (startup scripts, configuration, templated/loaded modules, or web-served directories) are reachable from the process. The supplied CPE record is a placeholder (cpe:2.3:a:n/a:n/a), so no authoritative CPE mapping exists in the provided data; the ENISA EUVD entry EUVD-2026-91122 mirrors the NVD advisory.

Know when Langchain Chatchat 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

Vendor (mitre) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 9.1 CRITICAL

Remote unauthenticated arbitrary file write (no default auth) gives high integrity and availability impact via overwrite/RCE potential, but no direct confidentiality disclosure, so C:N.

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

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

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

Lifecycle Timeline

3
CVSS changed
Oct 05, 2026 - 19:22 NVD
9.1 (CRITICAL)
CVE Published
Oct 01, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)
CVE Published
Oct 01, 2026 - 00:00 cve.org
CRITICAL 9.1

DescriptionCVE.org

The knowledge base creation and document upload interfaces in Langchain-Chatchat 0.3.0;0.3.1 is vulnerable to path traversal. An attacker can inject path traversal sequences (such as ..\) into the knowledge_base_name parameter to write knowledge base content to arbitrary locations outside the configured knowledge base root directory.

Executive ViewAI

Why It Matters

Langchain-Chatchat 0.3.0 and 0.3.1, an open-source LLM knowledge-base application, contain a critical unauthenticated path-traversal flaw that allows any attacker who can reach the service to write files to arbitrary locations on the host, potentially overwriting configuration, data, or executable content. Because no vendor patch exists, every deployment reachable from an untrusted network remains exposed, and any data or systems the Chatchat process can touch should be considered at risk. Leadership should weigh the cost of restricting network access or retiring these versions against the possibility of host compromise and loss of service availability.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: restrict network access to the knowledge base creation and upload endpoints (place behind authenticated reverse proxy and trusted networks only); enforce input validation or WAF rules rejecting traversal sequences and absolute paths in the knowledge_base_name and upload parameters; run the Chatchat service as a low-privilege, non-privileged account in a container with a read-only root filesystem and mounts confined to the knowledge base root; apply file integrity monitoring and alerting on unexpected writes; and consider temporarily disabling remote knowledge base creation and document upload functionality.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Low
niche open-source RAG/LLM developer tool, limited production internet exposure
Data Quality
5 sources
Confidence: Medium

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

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