{"id":"CVE-2024-2217","aliases":["PYSEC-2024-316"],"title":"gaizhenbiao/chuanhuchatgpt is vulnerable to improper access control, allowing unauthorized access to the `config.json` file. This vulnera…","summary":"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 at…","severity":"high","cvss":7.5,"cvssVector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","vendor":"chuanhuchatgpt","product":"chuanhuchatgpt","ecosystem":"pip","affected":["chuanhuchatgpt <= 20240121"],"published":"2024-04-10","updated":"2026-07-13","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/PYSEC-2024-316","references":[{"url":"https://github.com/gaizhenbiao/chuanhuchatgpt/commit/c5ae3b5ae6b47259e0ce8730e0a47e85121f4a7d"},{"url":"https://huntr.com/bounties/e4df74bf-b2ee-490f-a9c9-e5c8010b8b29"}],"tags":["osv","pip"],"epss":0.00785,"epssPercentile":0.54592,"ingestedAt":"2026-07-13T18:58:06.352Z","slug":"CVE-2024-2217","body":"## Overview\n\ngaizhenbiao/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.\n\n## Affected packages\n\n- `chuanhuchatgpt <= 20240121`\n\n## Remediation\n\nRefer to the advisory for the patched release.","depth":"twilight","depthScore":41,"depthScoreParts":{"impact":41.3,"likelihood":0.2,"exploitation":0,"ransomware":0},"changes":[]}