{"id":"CVE-2026-7845","aliases":["CVE-2026-7845","GHSA-wmvv-fhm6-w34x","PYSEC-2026-2558"],"related":[],"kind":"vulnerability","state":"published","title":"chatchat-space Langchain-Chatchat Vision Chat Paste Image dialogue.py PIL.Image.tobytes weak hash","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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":"cvelist"},{"lang":"es","text":"Se ha encontrado un fallo en chatchat-space Langchain-Chatchat hasta la versión 0.3.1.3. Este problema afecta a la función PIL.Image.tobytes del archivo libs/chatchat-server/chatchat/webui_pages/dialogue/dialogue.py del componente Vision Chat Paste Image Gestor. Esta manipulación del argumento paste_image.image_data causa el uso de un hash débil. El atacante necesita estar presente en la red local. El ataque se considera de alta complejidad. La explotabilidad se evalúa como difícil. El exploit ha sido publicado y puede ser utilizado. El proyecto fue informado del problema tempranamente a través de un informe de problema pero aún no ha respondido.","source":"nvd"}],"published":"2026-05-05T15:45:12.138Z","modified":"2026-07-24T08:10:00.150Z","severity":{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"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","score":2.1,"rating":"LOW"},"severities":[{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"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","score":2.1,"rating":"LOW"},{"scorer":"VulDB","scheme":"CVSS:3.1","vector":"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","score":2.6,"rating":"LOW"},{"scorer":"VulDB","scheme":"CVSS:3.0","vector":"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","score":2.6,"rating":"LOW"},{"scorer":"VulDB","scheme":"CVSS:2.0","vector":"AV:A/AC:H/Au:S/C:N/I:P/A:N/E:POC/RL:ND/RC:UR","score":1.4,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","score":2.6,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"LOW"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","score":2.6,"rating":"LOW"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-327","CWE-328"],"affected":[{"ranges":[{"version":"0.3.1.0","status":"affected"},{"version":"0.3.1.1","status":"affected"},{"version":"0.3.1.2","status":"affected"},{"version":"0.3.1.3","status":"affected"}],"vendor":"chatchat-space","product":"Langchain-Chatchat","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.3.1.3"}],"ecosystem":"PyPI","package":"langchain-chatchat","purl":"pkg:pypi/langchain-chatchat","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.3.1.3"}],"ecosystem":"PyPI","package":"langchain-chatchat","purl":"pkg:pypi/langchain-chatchat","source":"pysec"}],"references":[{"url":"https://vuldb.com/vuln/361124","tags":["technical-description","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://vuldb.com/vuln/361124/cti","tags":["permissions-required","signature","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://vuldb.com/submit/807794","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/chatchat-space/Langchain-Chatchat/issues/5462","tags":["exploit","issue-tracking","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/3em0/cve_repo/blob/main/Langchain-Chatchat/Vuln-1-tobytes-Hash-Collision.md","tags":["exploit","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/chatchat-space/Langchain-Chatchat/","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7845","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/chatchat-space/Langchain-Chatchat","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/langchain-chatchat","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-wmvv-fhm6-w34x","tags":["advisory"],"sources":["pysec"]}],"credits":["Dem00 (VulDB User)","VulDB CNA Team"],"assigner":"VulDB","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-05-05T17:48:07.236Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-7845","url":"https://www.cve.org/CVERecord?id=CVE-2026-7845","licence":"CVE Terms of Use","modified":"2026-05-05T19:23:08.834Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wmvv-fhm6-w34x","url":"https://github.com/advisories/GHSA-wmvv-fhm6-w34x","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:39.540Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-7845","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7845","licence":"Public domain","modified":"2026-07-24T08:10:00.150Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2558","url":"https://osv.dev/vulnerability/PYSEC-2026-2558","licence":"CC-BY-4.0","modified":"2026-07-13T16:31:48.738Z"}],"updatedAt":"2026-11-25T22:59:20.621Z","epss":{"score":0.00147,"percentile":0.04075,"date":"2026-12-02T12:00:21.000Z"}}