Skip to main content

Langchain-Chatchat CVE-2026-7845

| EUVDEUVD-2026-27390 LOW
Use of Weak Hash (CWE-328)
2026-05-05 VulDB GHSA-wmvv-fhm6-w34x
1.2
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Local network access
  2. Delivery
    Obtain low privileges
  3. Exploit
    Craft image hash collision
  4. Execution
    Submit via Vision Chat Paste Handler
  5. Persist
    Trigger weak hash collision
  6. Impact
    Disclose image metadata or cached data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Irreversible hash functions
Exploitation Conditions

Exploitation requires concurrent satisfaction of four conditions: (1) attacker must be present on the same local network as the Langchain-Chatchat deployment (AV:A - no remote exploitation possible), (2) attacker must possess low-level user privileges on the system (PR:L), (3) the Vision Chat Paste Image Handler feature must be enabled and accessible (non-default configuration unknown; assume enabled in standard deployments), and (4) the attacker must craft image data payloads specifically designed to trigger hash collisions in the PIL.Image.tobytes function, which requires understanding of the internal hash algorithm-this is the source of high attack complexity (AC:H). Remote attackers cannot exploit this vulnerability; internet-based attacks are not viable. Systems with strict network access controls limiting local network connectivity or with disabled image paste functionality are not vulnerable.

Impact

This vulnerability presents minimal real-world risk despite public exploit availability. The CVSS 4.0 vector (AV:A/AC:H/PR:L) severely restricts exploitation: attackers must be on the local network (AV:A), possess low privileges (PR:L), and overcome high attack complexity (AC:H). The resulting impact is limited to information disclosure (VI:L with VC:N/VA:N), not confidentiality or availability compromise. EPSS data is unavailable, but the E:P flag (exploit published) combined with minimal impact suggests opportunistic rather than targeted exploitation risk. The vendor's non-response to early disclosure is concerning for patch availability but does not materially increase exploitation likelihood given the stringent access requirements. This is a textbook example of a 'high-CVSS-but-low-real-risk' issue: the attack surface is restricted to internal network users with existing system access, and the information disclosure impact is constrained. Risk priority should be LOW unless the organization has hostile insider threats or open local networks exposed to untrusted devices.

Exploit ScenarioDerived

An attacker with access to the same local network (e.g., shared corporate WiFi or compromised internal device) and low-level credentials on the Langchain-Chatchat system sends a crafted image payload via the Vision Chat Paste Image Handler. By exploiting hash collisions in the weak hash function, the attacker causes the application to process a malicious image as a legitimate cached or deduplicated asset, disclosing sensitive metadata or intermediate processing data associated with legitimate images stored on the system.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 05, 2026

Weak hash function in the Vision Chat Paste Image Handler of Langchain-Chatchat up to 0.3.1.3 allows local network attackers with low privileges to cause information disclosure via hash collision attacks on image data processed through PIL.Image.tobytes. The vulnerability requires high attack complexity and local network presence, resulting in minimal direct impact (CVSS 1.2); however, publicly available exploit code exists and the vendor has not responded to disclosure.

RemediationAI

No vendor-released patch identified at time of analysis; the project maintainers have not responded to early disclosure. Until a patched version is available, implement network segmentation to restrict access to the Langchain-Chatchat deployment to trusted users only-specifically, disable local network image paste functionality (Vision Chat Paste Image Handler) if not actively required. Alternatively, replace the weak hash function used in PIL.Image.tobytes processing with a cryptographically secure hash (SHA-256 or better) in the dialogue.py component; this requires code modification and testing before production deployment. Monitor https://github.com/chatchat-space/Langchain-Chatchat/issues/5462 and official project releases for vendor security patches. The trade-off of disabling image paste is usability reduction; code-level mitigation requires internal development resources but preserves feature availability.

Affected VersionsENISA

Langchain-Chatchat 0.3.1.0
Langchain-Chatchat 0.3.1.3
Langchain-Chatchat 0.3.1.1
Langchain-Chatchat 0.3.1.2

Affected Packages

pypi langchain-chatchat no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in the Vision Chat Paste Image Handler component (libs/chatchat-server/chatchat/webui_pages/dialogue/dialogue.py), specifically in the PIL.Image.tobytes function call used to process paste_image.image_data. The root cause is CWE-328 (Use of Insufficiently Random Values), manifesting as use of weak cryptographic hash functions for image data integrity. An attacker on the local network can manipulate the paste_image.image_data argument to trigger hash collisions, allowing crafted image payloads to be processed as legitimate data. The exploitation requires low-level privilege access and high technical complexity, suggesting the hash function is used in a non-critical but information-disclosure context, such as image deduplication or caching mechanisms.

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 (VulDB) PRIMARY 1.2 LOW
CVSS:4.0/AV:A/AC:H/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P

Primary rating from Vendor (VulDB) · only source for this CVE.

CVSS VectorVendor: VulDB

Attack Vector
Adjacent
Attack Complexity
High
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
May 05, 2026 - 16:22 NVD
2.6 (LOW) 1.2 (LOW)

DescriptionCVE.org

A flaw has been found in chatchat-space Langchain-Chatchat up to 0.3.1.3. This issue affects the function PIL.Image.tobytes of the file libs/chatchat-server/chatchat/webui_pages/dialogue/dialogue.py of the component Vision Chat Paste Image Handler. This manipulation of the argument paste_image.image_data causes use of weak hash. The attacker needs to be present on the local network. The attack is considered to have high complexity. The exploitability is assessed as difficult. The exploit has been published and may be used. The project was informed of the problem early through an issue report but has not responded yet.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Defer
Exploitation
Poc
System Exposure· derived
Controlled
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-75128 CRITICAL POC
9.3 Oct 20

Unauthenticated remote command execution in Langchain-Chatchat through version 0.3.1.3 allows any network-reachable atta

CVE-2026-51884 CRITICAL
9.8 Oct 01

Unauthenticated path traversal in Langchain-Chatchat 0.3.1 lets a remote attacker write files to arbitrary filesystem lo

CVE-2026-51882 CRITICAL
9.1 Oct 01

Unauthenticated path traversal in the OpenAI-compatible /v1/files upload endpoint of Langchain-Chatchat 0.3.0 allows rem

CVE-2026-51883 CRITICAL
9.1 Oct 01

Path traversal in Langchain-Chatchat 0.3.0 and 0.3.1 allows unauthenticated remote attackers to write knowledge base con

CVE-2025-6853 LOW POC
2.1 Jun 29

Path traversal in Langchain-Chatchat's backend file upload endpoint allows remote attackers to manipulate file paths via

CVE-2025-6854 LOW POC
2.1 Jun 29

Path traversal in Langchain-Chatchat version 0.3.1 and earlier allows authenticated low-privilege users to read arbitrar

CVE-2026-7844 LOW POC
2.1 May 05

Missing authentication in Langchain-Chatchat up to version 0.3.1.3 allows unauthenticated local network attackers to acc

CVE-2025-6855 LOW POC
2.0 Jun 29

Path traversal vulnerability in Langchain-Chatchat up to 0.3.1 allows authenticated attackers with low privileges to rea

CVE-2026-7847 LOW POC
1.2 May 05

Insufficiently random file ID generation in Langchain-Chatchat up to version 0.3.1.3 allows authenticated local network

CVE-2026-7846 LOW POC
1.2 May 05

Time-of-check time-of-use (TOCTOU) vulnerability in Langchain-Chatchat up to 0.3.1.3 allows authenticated local network

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