BreachSpiderVerified, not vibes

CVE-2026-7845 in Chatchat-Space Langchain-Chatchat

Low 2.6

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 ...

Affects 1 product from 3 vendors. Facts below cite their sources.

CVSS 3.12.6
CVSS v41.2
EPSS0.2%
EPSS percentile5th
FixUnknown

Exploitable from adjacent network, high complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Chatchat-Space Langchain-Chatchat 0.3.1.0 0.3.1.1 0.3.1.2 0.3.1.3
Langchain — —
Project — —

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-7845
BreachSpider IDBS-2026-GLOBAL-154915-L
CVSS vectorCVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
Published2026-05-05
Last modified2026-07-24
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-327: CWE-327

CWE-328: CWE-328

Related attack patterns (CAPEC)

CAPEC-459 Creating a Rogue Certification Authority Certificate via CWE-327

CAPEC-475 Signature Spoofing by Improper Validation via CWE-327

CAPEC-608 Cryptanalysis of Cellular Encryption via CWE-327

CAPEC-614 Rooting SIM Cards via CWE-327

CAPEC-20 Encryption Brute Forcing via CWE-327

Show all 9

CAPEC-68 Subvert Code-signing Facilities via CWE-328

CAPEC-97 Cryptanalysis via CWE-327

CAPEC-461 Web Services API Signature Forgery Leveraging Hash Function Extension Weakness via CWE-328

CAPEC-473 Signature Spoof via CWE-327

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A vulnerability in chatchat-space Langchain-Chatchat up to version 0.3.1.3 allows for the use of a weak hash due to improper handling of the argument paste_image.image_data in the PIL.Image.tobytes function. This could potentially allow an attacker on the local network to exploit the weakness.

The attack vector involves an attacker on the local network manipulating the paste_image.image_data argument, which is processed by the PIL.Image.tobytes function in the Vision Chat Paste Image Handler component. This manipulation can lead to the use of a weak hash, potentially compromising data integrity.

Questions

What is CVE-2026-7845?

A vulnerability in chatchat-space Langchain-Chatchat up to version 0.3.1.3 allows for the use of a weak hash due to improper handling of the argument paste_image.image_data in the PIL.Image.tobytes function. This could potentially allow an attacker on the local network to exploit the weakness.

What is the CVSS score for CVE-2026-7845?

CVE-2026-7845 has CVSS 2.6 (Low). Vector: CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N. EPSS: 0.2%.

Is CVE-2026-7845 actively exploited?

No confirmed active exploitation of CVE-2026-7845 as of 2026-07-25.

How do I remediate CVE-2026-7845?

Priority: MEDIUM.

What systems are affected by CVE-2026-7845?

CVE-2026-7845 affects Chatchat-Space Langchain-Chatchat; Langchain; Project.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Chatchat-Space","product":"Langchain-Chatchat","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-07-24.