{"id":"CVE-2026-7846","state":"PUBLISHED","title":"chatchat-space Langchain-Chatchat OpenAI-Compatible File Upload API openai_routes.py files toctou","description":"A vulnerability has been found in chatchat-space Langchain-Chatchat up to 0.3.1.3. Impacted is the function files of the file libs/chatchat-server/chatchat/server/api_server/openai_routes.py of the component OpenAI-Compatible File Upload API. Such manipulation of the argument file.filename leads to time-of-check time-of-use. Access to the local network is required for this attack to succeed. The attack requires a high level of complexity. The exploitability is considered difficult. The exploit has been disclosed to the public and may be used. The project was informed of the problem early through an issue report but has not responded yet.","publishedAt":"2026-05-05T16:00:15.199Z","updatedAt":"2026-05-05T16:11:21.230Z","severity":{"score":2.1,"label":"Low","version":"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","source":"VulDB"},"assigner":"VulDB","products":["chatchat-space Langchain-Chatchat"],"affected":[{"vendor":"chatchat-space","product":"Langchain-Chatchat","versions":[{"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"}],"modules":["OpenAI-Compatible File Upload API"]}],"references":["https://vuldb.com/vuln/361125","https://vuldb.com/vuln/361125/cti","https://vuldb.com/submit/807795","https://github.com/chatchat-space/Langchain-Chatchat/issues/5463","https://github.com/3em0/cve_repo/blob/main/Langchain-Chatchat/Vuln-2-Silent-File-Overwrite.md","https://github.com/chatchat-space/Langchain-Chatchat/"],"weaknesses":["CWE-367","CWE-362"],"ingestedAt":"2026-10-29T20:13:07.220Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/7xxx/CVE-2026-7846.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-7846","state":"PUBLISHED","datePublished":"2026-05-05T16:00:15.199Z","dateUpdated":"2026-05-05T16:11:21.230Z","assignerShortName":"VulDB","assignerOrgId":"1af790b2-7ee1-4545-860a-a788eba489b5","dateReserved":"2026-05-05T10:20:56.988Z"},"containers":{"cna":{"title":"chatchat-space Langchain-Chatchat OpenAI-Compatible File Upload API openai_routes.py files toctou","descriptions":[{"lang":"en","value":"A vulnerability has been found in chatchat-space Langchain-Chatchat up to 0.3.1.3. Impacted is the function files of the file libs/chatchat-server/chatchat/server/api_server/openai_routes.py of the component OpenAI-Compatible File Upload API. Such manipulation of the argument file.filename leads to time-of-check time-of-use. Access to the local network is required for this attack to succeed. The attack requires a high level of complexity. The exploitability is considered difficult. The exploit has been disclosed to the public and may be used. The project was informed of the problem early through an issue report but has not responded yet."}],"affected":[{"vendor":"chatchat-space","product":"Langchain-Chatchat","versions":[{"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"}],"modules":["OpenAI-Compatible File Upload API"]}],"references":[{"url":"https://vuldb.com/vuln/361125","name":"VDB-361125 | chatchat-space Langchain-Chatchat OpenAI-Compatible File Upload API openai_routes.py files toctou","tags":["vdb-entry","technical-description"]},{"url":"https://vuldb.com/vuln/361125/cti","name":"VDB-361125 | CTI Indicators (IOB, IOC, IOA)","tags":["signature","permissions-required"]},{"url":"https://vuldb.com/submit/807795","name":"Submit #807795 | chatchat-space Langchain-Chatchat 0.3.1.3 TOCTOU Race Condition / CWE-367","tags":["third-party-advisory"]},{"url":"https://github.com/chatchat-space/Langchain-Chatchat/issues/5463","tags":["issue-tracking"]},{"url":"https://github.com/3em0/cve_repo/blob/main/Langchain-Chatchat/Vuln-2-Silent-File-Overwrite.md","tags":["exploit"]},{"url":"https://github.com/chatchat-space/Langchain-Chatchat/","tags":["product"]}],"metrics":[{"cvssV4_0":{"version":"4.0","baseScore":2.1,"vectorString":"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","baseSeverity":"LOW"}},{"cvssV3_1":{"version":"3.1","baseScore":2.6,"vectorString":"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","baseSeverity":"LOW"}},{"cvssV3_0":{"version":"3.0","baseScore":2.6,"vectorString":"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","baseSeverity":"LOW"}},{"cvssV2_0":{"version":"2.0","baseScore":1.4,"vectorString":"AV:A/AC:H/Au:S/C:N/I:P/A:N/E:POC/RL:ND/RC:UR"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-367","type":"CWE","lang":"en","description":"Time-of-check Time-of-use"}]},{"descriptions":[{"cweId":"CWE-362","type":"CWE","lang":"en","description":"Race Condition"}]}],"providerMetadata":{"shortName":"VulDB","orgId":"1af790b2-7ee1-4545-860a-a788eba489b5","dateUpdated":"2026-05-05T16:00:15.199Z"},"timeline":[{"time":"2026-05-05T00:00:00.000Z","lang":"en","value":"Advisory disclosed"},{"time":"2026-05-05T02:00:00.000Z","lang":"en","value":"VulDB entry created"},{"time":"2026-05-05T12:26:17.000Z","lang":"en","value":"VulDB entry last update"}],"credits":[{"lang":"en","value":"Dem00 (VulDB User)","type":"reporter"},{"lang":"en","value":"VulDB CNA Team","type":"coordinator"}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-05-05T16:11:12.705106Z","id":"CVE-2026-7846","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-05-05T16:11:21.230Z"}}]}}}