CVE-2026-7845 chatchat-space Langchain-Chatchat Vision Chat Paste Image dialogue.py PIL.Image.tobytes weak hash

Low 2.1 Published Updated

An attacker on the local network can exploit weak hashing in image processing to bypass security checks in Langchain-Chatchat.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-7845?

CVE-2026-7845 is a low-severity vulnerability in chatchat-space Langchain-Chatchat, published on 5 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.

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.

Weakness: CWE-328, CWE-327

Which versions are affected by CVE-2026-7845?

3 open source packages ship an affected version, including langchain-chatchat.

PackageAffectedFixed in
langchain-chatchat PyPIAll versions to 0.3.1.3None
langchain-chatchat PyPIAll versions to 0.3.1.3None
langchain-chatchat PyPIAll versions to 0.3.1.3None

How do I fix CVE-2026-7845?

No fix has been published for CVE-2026-7845 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-7845 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-7845 exists.

Sources

Also known as GHSA-wmvv-fhm6-w34x, PYSEC-2026-2558.

Is CVE-2026-7845 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free