# CVE-2024-8143: Unauthorized Access to User Chat History in gaizhenbiao/chuanhuchatgpt

- Severity: Medium 6.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- 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.49%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-10-29T12:49:09.525Z
- Modified: 2026-06-17T08:21:59.170Z
- Also known as: PYSEC-2024-113
- Weaknesses: CWE-1057
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## Description

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.

(As written by CVE List.)

## Affected

- gaizhenbiao gaizhenbiao/chuanhuchatgpt: from unspecified before 20240919
- gaizhenbiao chuanhuchatgpt: 20240628; 2024-06-28
- chuanhuchatgpt (PyPI): before ccc7479ace5c9e1a1d9f4daf2e794ffd3865fc2b; all versions

## Every score

- @huntr_ai: CVSS:3.0 6.5 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://huntr.com/bounties/71c5ea4b-524a-4173-8fd4-2fbabd69502e> (exploit, third-party-advisory, web)
- <https://github.com/gaizhenbiao/chuanhuchatgpt/commit/ccc7479ace5c9e1a1d9f4daf2e794ffd3865fc2b> (fix, patch)

## Sources

- CVE List: [CVE-2024-8143](https://www.cve.org/CVERecord?id=CVE-2024-8143), CVE Terms of Use, modified 2024-10-29
- NVD: [CVE-2024-8143](https://nvd.nist.gov/vuln/detail/CVE-2024-8143), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-113](https://osv.dev/vulnerability/PYSEC-2024-113), CC-BY-4.0, modified 2024-10-31

---

Page: https://cve.day/CVE-2024-8143 · Whole record: https://cve.day/CVE-2024-8143.json · Rebuilt by cve.day 2026-11-25T22:58:47.487Z
