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

- Severity: High 7.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/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.78%, higher than 57% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-04-10T17:08:02.787Z
- Modified: 2026-07-13T07:15:20.080Z
- Also known as: PYSEC-2024-316
- Weaknesses: CWE-284
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## Description

gaizhenbiao/chuanhuchatgpt is vulnerable to improper access control, allowing unauthorized access to the `config.json` file. This vulnerability is present in both authenticated and unauthenticated versions of the application, enabling attackers to obtain sensitive information such as API keys (`openai_api_key`, `google_palm_api_key`, `xmchat_api_key`, etc.), configuration details, and user credentials. The issue stems from the application's handling of HTTP requests for the `config.json` file, which does not properly restrict access based on user authentication.

(As written by CVE List.)

## Affected

- gaizhenbiao gaizhenbiao/chuanhuchatgpt: from unspecified before 20240310
- gaizhenbiao chuanhuchatgpt: before 20240310; 20240121
- chuanhuchatgpt (PyPI): up to 20240121

## Every score

- @huntr_ai: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://huntr.com/bounties/e4df74bf-b2ee-490f-a9c9-e5c8010b8b29> (exploit, evidence, third-party-advisory)
- <https://github.com/gaizhenbiao/chuanhuchatgpt/commit/c5ae3b5ae6b47259e0ce8730e0a47e85121f4a7d> (fix, patch)

## Sources

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

---

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