Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLocal network access
-
DeliveryObtain low privileges
-
ExploitCraft image hash collision
-
ExecutionSubmit via Vision Chat Paste Handler
-
PersistTrigger weak hash collision
-
ImpactDisclose 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
Lifecycle Timeline
1DescriptionCVE.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
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Langchain Chatchat
View allUnauthenticated remote command execution in Langchain-Chatchat through version 0.3.1.3 allows any network-reachable atta
Unauthenticated path traversal in Langchain-Chatchat 0.3.1 lets a remote attacker write files to arbitrary filesystem lo
Unauthenticated path traversal in the OpenAI-compatible /v1/files upload endpoint of Langchain-Chatchat 0.3.0 allows rem
Path traversal in Langchain-Chatchat 0.3.0 and 0.3.1 allows unauthenticated remote attackers to write knowledge base con
Path traversal in Langchain-Chatchat's backend file upload endpoint allows remote attackers to manipulate file paths via
Path traversal in Langchain-Chatchat version 0.3.1 and earlier allows authenticated low-privilege users to read arbitrar
Missing authentication in Langchain-Chatchat up to version 0.3.1.3 allows unauthenticated local network attackers to acc
Path traversal vulnerability in Langchain-Chatchat up to 0.3.1 allows authenticated attackers with low privileges to rea
Insufficiently random file ID generation in Langchain-Chatchat up to version 0.3.1.3 allows authenticated local network
Time-of-check time-of-use (TOCTOU) vulnerability in Langchain-Chatchat up to 0.3.1.3 allows authenticated local network
EUVD-2026-27390
GHSA-wmvv-fhm6-w34x
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB