PYSEC-2026-2557
Vulnerability from pysec - Published: 2026-07-13 15:15 - Updated: 2026-07-13 16:04A vulnerability was found in chatchat-space Langchain-Chatchat up to 0.3.1.3. The affected element is the function _get_file_id of the file libs/chatchat-server/chatchat/server/api_server/openai_routes.py of the component Uploaded File Handler. Performing a manipulation results in insufficiently random values. Access to the local network is required for this attack. The attack's complexity is rated as high. The exploitability is described as difficult. The exploit has been made public and could be used. The project was informed of the problem early through an issue report but has not responded yet.
| Name | purl | langchain-chatchat | pkg:pypi/langchain-chatchat |
|---|
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "langchain-chatchat",
"purl": "pkg:pypi/langchain-chatchat"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "0.3.1.3"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.3.0",
"0.3.0.20240506",
"0.3.0.20240606",
"0.3.0.20240610",
"0.3.0.20240610.1",
"0.3.0.20240611",
"0.3.0.20240612",
"0.3.0.20240612.1",
"0.3.0.20240612.2",
"0.3.0.20240612.3",
"0.3.0.20240612.4",
"0.3.0.20240616",
"0.3.0.20240618",
"0.3.0.20240619",
"0.3.0.20240621",
"0.3.0.20240621.3",
"0.3.0.20240625",
"0.3.0.20240625.1",
"0.3.1",
"0.3.1.1",
"0.3.1.2",
"0.3.1.3"
]
}
],
"aliases": [
"CVE-2026-7847",
"GHSA-jv4p-mhmp-69vw"
],
"details": "A vulnerability was found in chatchat-space Langchain-Chatchat up to 0.3.1.3. The affected element is the function _get_file_id of the file libs/chatchat-server/chatchat/server/api_server/openai_routes.py of the component Uploaded File Handler. Performing a manipulation results in insufficiently random values. Access to the local network is required for this attack. The attack\u0027s complexity is rated as high. The exploitability is described as difficult. The exploit has been made public and could be used. The project was informed of the problem early through an issue report but has not responded yet.",
"id": "PYSEC-2026-2557",
"modified": "2026-07-13T16:04:29.140833Z",
"published": "2026-07-13T15:15:37.148349Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-7847"
},
{
"type": "WEB",
"url": "https://github.com/chatchat-space/Langchain-Chatchat/issues/5464"
},
{
"type": "WEB",
"url": "https://github.com/3em0/cve_repo/blob/main/Langchain-Chatchat/Vuln-3-Predictable-File-ID.md"
},
{
"type": "PACKAGE",
"url": "https://github.com/chatchat-space/Langchain-Chatchat"
},
{
"type": "WEB",
"url": "https://vuldb.com/submit/807796"
},
{
"type": "WEB",
"url": "https://vuldb.com/vuln/361126"
},
{
"type": "WEB",
"url": "https://vuldb.com/vuln/361126/cti"
},
{
"type": "PACKAGE",
"url": "https://pypi.org/project/langchain-chatchat"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-jv4p-mhmp-69vw"
}
],
"severity": [
{
"score": "CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N",
"type": "CVSS_V3"
},
{
"score": "CVSS:4.0/AV:A/AC:H/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P",
"type": "CVSS_V4"
}
],
"summary": "Langchain-Chatchat Uses Insufficiently Random Values"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.