Unauthorized Access to User Chat History in gaizhenbiao/chuanhuchatgpt
In the latest version (20240628) of gaizhenbiao/chuanhuchatgpt, an issue exists in the /file endpoint that allows authenticated users to access the chat history of other users. When a user logs in, a directory is created in the history folder with the user's name. By manipulating the /file endpoint, an authenticated user can enumerate and access files in other users' directories, leading to unauthorized access to private chat histories. This vulnerability can be exploited to read any user's private chat history.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-8143
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 08:51 UTC · Revision 1
Source evidence
Unauthorized Access to User Chat History in gaizhenbiao/chuanhuchatgpt
core-osv · Original sourcePublished 29 Oct 2024, 12:49 UTC
In the latest version (20240628) of gaizhenbiao/chuanhuchatgpt, an issue exists in the /file endpoint that allows authenticated users to access the chat history of other users. When a user logs in, a directory is created in the history folder with the user's name. By manipulating the /file endpoint, an authenticated user can enumerate and access files in other users' directories, leading to unauthorized access to private chat histories. This vulnerability can be exploited to read any user's private chat history.
osv:CVE-2024-8143
Complete source record
{
"id": "9d4b8d7f1fe8ba93cc58934092f5f68204dcbb2a3b69bd91e4788b3439dc9fc3",
"url": "https://osv.dev/vulnerability/CVE-2024-8143",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Unauthorized Access to User Chat History in gaizhenbiao/chuanhuchatgpt",
"summary": "In the latest version (20240628) of gaizhenbiao/chuanhuchatgpt, an issue exists in the /file endpoint that allows authenticated users to access the chat history of other users. When a user logs in, a directory is created in the history folder with the user's name. By manipulating the /file endpoint, an authenticated user can enumerate and access files in other users' directories, leading to unauthorized access to private chat histories. This vulnerability can be exploited to read any user's private chat history.",
"evidence": "osv:CVE-2024-8143",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2024-8143",
"aliases": [
"CVE-2024-8143",
"PYSEC-2024-113"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/gaizhenbiao/chuanhuchatgpt",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "d4451bbde5b7ca6b32af28aac7c56024062a4f12"
},
{
"fixed": "ccc7479ace5c9e1a1d9f4daf2e794ffd3865fc2b"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "20240919"
}
],
"source": "AFFECTED_FIELD",
"strategy": "SplitRange"
},
{
"range": [
{
"fixed": "ccc7479ace5c9e1a1d9f4daf2e794ffd3865fc2b"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"20240918",
"20240914",
"20240802",
"20240628",
"20240410",
"20240310",
"20240305",
"20240121",
"20231223",
"20231215",
"20231110",
"20231020",
"20231006",
"20230926",
"20230916",
"20230911",
"20230830",
"20230820",
"20230809",
"20230728",
"20230719",
"20230709",
"20230628",
"20230619",
"20230614",
"20230601",
"20230526",
"20230513",
"20230507",
"20230502",
"20230427",
"20230422",
"20230417",
"20230413",
"20230409",
"20230330",
"20230327",
"20230323",
"20230320",
"20230317",
"20230305",
"20230303"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-8143.json"
}
}
],
"modified": "2026-10-28T02:30:50.377692297Z",
"provider": "osv",
"references": [
"https://huntr.com/bounties/71c5ea4b-524a-4173-8fd4-2fbabd69502e",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/8xxx/CVE-2024-8143.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-8143",
"https://github.com/gaizhenbiao/chuanhuchatgpt/commit/ccc7479ace5c9e1a1d9f4daf2e794ffd3865fc2b"
],
"provider_metadata": {
"cwe_ids": [
"CWE-1057"
],
"cna_assigner": "@huntr_ai",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/8xxx/CVE-2024-8143.json"
}
},
"related_cves": [
{
"value": "CVE-2024-8143",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 518811,
"published_at": "2024-10-29T12:49:09.525+00:00"
}