{"id":"CVE-2024-2217","aliases":["CVE-2024-2217","PYSEC-2024-316"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Access Control in gaizhenbiao/chuanhuchatgpt","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 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"gaizhenbiao/chuanhuchatgpt es vulnerable a un control de acceso inadecuado, lo que permite el acceso no autorizado al archivo `config.json`. Esta vulnerabilidad está presente tanto en las versiones autenticadas como en las no autenticadas de la aplicación, lo que permite a los atacantes obtener información confidencial, como claves de API (`openai_api_key`, `google_palm_api_key`, `xmchat_api_key`, etc.), detalles de configuración y credenciales de usuario. El problema se origina en el manejo de solicitudes HTTP para el archivo `config.json` por parte de la aplicación, que no restringe el acceso de forma adecuada en función de la autenticación del usuario.","source":"nvd"}],"published":"2024-04-10T17:08:02.787Z","modified":"2026-07-13T07:15:20.080Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-284"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"20240310","status":"affected"}],"vendor":"gaizhenbiao","product":"gaizhenbiao/chuanhuchatgpt","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"20240310","status":"affected"}],"vendor":"gaizhenbiao","product":"chuanhuchatgpt","cpe":"cpe:2.3:a:gaizhenbiao:chuanhuchatgpt:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"status":"affected","version":"20240121"}],"vendor":"gaizhenbiao","product":"chuanhuchatgpt","cpe":"cpe:2.3:a:gaizhenbiao:chuanhuchatgpt:20240121:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"20240121"}],"ecosystem":"PyPI","package":"chuanhuchatgpt","purl":"pkg:pypi/chuanhuchatgpt","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/e4df74bf-b2ee-490f-a9c9-e5c8010b8b29","tags":["evidence","exploit","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://github.com/gaizhenbiao/chuanhuchatgpt/commit/c5ae3b5ae6b47259e0ce8730e0a47e85121f4a7d","tags":["fix","patch","x-transferred"],"sources":["cvelist","nvd","pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-04-15T17:50:49.987Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-2217","url":"https://www.cve.org/CVERecord?id=CVE-2024-2217","licence":"CVE Terms of Use","modified":"2024-08-22T18:08:10.258Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-2217","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-2217","licence":"Public domain","modified":"2026-06-17T07:23:57.330Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-316","url":"https://osv.dev/vulnerability/PYSEC-2024-316","licence":"CC-BY-4.0","modified":"2026-07-13T07:15:20.080Z"}],"updatedAt":"2026-11-25T22:58:39.058Z","epss":{"score":0.00785,"percentile":0.57278,"date":"2026-12-01T12:00:22.000Z"}}