{"id":"CVE-2024-3404","published":"2024-06-06T18:45:12Z","modified":"2025-10-15T12:49:37Z","title":"Improper Access Control in gaizhenbiao/chuanhuchatgpt","vendor":"gaizhenbiao","product":"gaizhenbiao/chuanhuchatgpt","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00503,"percentile":0.43955,"provenance":"source"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://huntr.com/bounties/ed32fc32-cb8f-4fbd-8209-cc835d279699","tags":[]},{"url":"https://github.com/gaizhenbiao/chuanhuchatgpt/commit/ccc7479ace5c9e1a1d9f4daf2e794ffd3865fc2b","tags":[]}],"priority":{"score":13.3,"factors":[{"name":"EPSS percentile","points":8.79},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"gaizhenbiao","affectedVersions":[{"vendor":"gaizhenbiao","product":"gaizhenbiao/chuanhuchatgpt","versions":[">= unspecified, < 20240919"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-06T19:40:35.850902Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-31993","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gaizhenbiao-chuanhuchatgpt-cve-2024-4520","parents":[{"from":"CVE-2024-3234","to":"CVE-2024-3404","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["ChuanhuChatbot.py"],"commits":["https://github.com/gaizhenbiao/chuanhuchatgpt/commit/6b8f7db347b390f6f8bd07ea2a4ef01a47382f00","https://github.com/gaizhenbiao/chuanhuchatgpt/commit/ccc7479ace5c9e1a1d9f4daf2e794ffd3865fc2b"],"basis":"shared function","functions":["create_new_model"]}]}],"children":[{"from":"CVE-2024-3404","to":"CVE-2024-5124","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["modules/utils.py"],"commits":["https://github.com/gaizhenbiao/chuanhuchatgpt/commit/ccc7479ace5c9e1a1d9f4daf2e794ffd3865fc2b","https://github.com/gaizhenbiao/chuanhuchatgpt/commit/e46ec4ecd896bc3c88eb9a2f44e8593f3c6761b4"],"basis":"shared function","functions":["setPlaceholder"]}]},{"from":"CVE-2024-3404","to":"CVE-2024-5278","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["ChuanhuChatbot.py","modules/models/base_model.py","modules/utils.py"],"commits":["https://github.com/gaizhenbiao/chuanhuchatgpt/commit/ccc7479ace5c9e1a1d9f4daf2e794ffd3865fc2b","https://github.com/gaizhenbiao/chuanhuchatgpt/commit/22007a77f037c0cf76180f9b73a8d19e87dad02e"],"basis":"shared function","functions":["create_new_model"]}]},{"from":"CVE-2024-3404","to":"CVE-2024-5982","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["modules/models/base_model.py"],"commits":["https://github.com/gaizhenbiao/chuanhuchatgpt/commit/ccc7479ace5c9e1a1d9f4daf2e794ffd3865fc2b","https://github.com/gaizhenbiao/chuanhuchatgpt/commit/952fc8c3cbacead858311747cddd4bedcb4721d7"],"basis":"shared function","functions":["load_chat_history"]}]},{"from":"CVE-2024-3404","to":"CVE-2024-6090","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["modules/models/base_model.py","modules/utils.py"],"commits":["https://github.com/gaizhenbiao/chuanhuchatgpt/commit/ccc7479ace5c9e1a1d9f4daf2e794ffd3865fc2b","https://github.com/gaizhenbiao/chuanhuchatgpt/commit/526c615c437377ee9c71f866fd0f19011910f705"],"basis":"shared function","functions":["save_file"]}]},{"from":"CVE-2024-3404","to":"CVE-2024-8613","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["modules/models/base_model.py","modules/utils.py"],"commits":["https://github.com/gaizhenbiao/chuanhuchatgpt/commit/ccc7479ace5c9e1a1d9f4daf2e794ffd3865fc2b","https://github.com/gaizhenbiao/chuanhuchatgpt/commit/526c615c437377ee9c71f866fd0f19011910f705"],"basis":"shared function","functions":["save_file"]}]}]}}