Skip to main content

Langchain-Chatchat EUVDEUVD-2026-27390

| CVE-2026-7845 LOW
Use of Weak Hash (CWE-328)
2026-05-05 VulDB GHSA-wmvv-fhm6-w34x
1.2
CVSS 4.0 · NVD

Severity by source

NVD 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector
Adjacent
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
X

Lifecycle Timeline

2
Analysis Generated
May 05, 2026 - 16:32 vuln.today
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.

AnalysisAI

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.

Technical ContextAI

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.

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.

Share

EUVD-2026-27390 vulnerability details – vuln.today

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