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

- Severity: Low 2.1 (CVSS:4.0, scored by VulDB) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-02)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-05-05T15:45:12.138Z
- Modified: 2026-07-24T08:10:00.150Z
- Also known as: GHSA-wmvv-fhm6-w34x, PYSEC-2026-2558
- Weaknesses: CWE-327, CWE-328
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

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

(As written by CVE List.)

## Affected

- chatchat-space Langchain-Chatchat: 0.3.1.0; 0.3.1.1; 0.3.1.2; 0.3.1.3
- langchain-chatchat (PyPI): up to 0.3.1.3

## Every score

- VulDB: CVSS:4.0 2.1 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`
- VulDB: CVSS:3.1 2.6 Low `CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N/E:P/RL:X/RC:R`
- VulDB: CVSS:3.0 2.6 Low `CVSS:3.0/AV:A/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N/E:P/RL:X/RC:R`
- VulDB: CVSS:2.0 1.4 Low `AV:A/AC:H/Au:S/C:N/I:P/A:N/E:POC/RL:ND/RC:UR`
- GitHub: CVSS:3.1 2.6 Low `CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:4.0 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`
- PyPA Advisory Database: CVSS:3.1 2.6 Low `CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/chatchat-space/Langchain-Chatchat/issues/5462> (exploit, issue-tracking, web)
- <https://github.com/3em0/cve_repo/blob/main/Langchain-Chatchat/Vuln-1-tobytes-Hash-Collision.md> (exploit, web)
- <https://vuldb.com/vuln/361124> (technical-description, vdb-entry, web)
- <https://vuldb.com/vuln/361124/cti> (permissions-required, signature, web)
- <https://vuldb.com/submit/807794> (third-party-advisory, web)
- <https://github.com/chatchat-space/Langchain-Chatchat/> (product)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-7845> (advisory)
- <https://github.com/chatchat-space/Langchain-Chatchat> (package)
- <https://pypi.org/project/langchain-chatchat> (package)
- <https://github.com/advisories/GHSA-wmvv-fhm6-w34x> (advisory)

## Sources

- CVE List: [CVE-2026-7845](https://www.cve.org/CVERecord?id=CVE-2026-7845), CVE Terms of Use, modified 2026-05-05
- GitHub Advisory Database: [GHSA-wmvv-fhm6-w34x](https://github.com/advisories/GHSA-wmvv-fhm6-w34x), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-7845](https://nvd.nist.gov/vuln/detail/CVE-2026-7845), Public domain, modified 2026-07-24
- PyPA Advisory Database: [PYSEC-2026-2558](https://osv.dev/vulnerability/PYSEC-2026-2558), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-7845 · Whole record: https://cve.day/CVE-2026-7845.json · Rebuilt by cve.day 2026-11-25T22:59:20.621Z
