{"id":"CVE-2024-3234","published":"2024-06-06T18:20:45Z","modified":"2024-08-01T20:05:08Z","title":"Path Traversal in gaizhenbiao/chuanhuchatgpt","vendor":"gaizhenbiao","product":"gaizhenbiao/chuanhuchatgpt","tier":"tail","description":{"text":"The gaizhenbiao/chuanhuchatgpt application is vulnerable to a path traversal attack due to its use of an outdated gradio component. The application is designed to restrict user access to resources within the `web_assets` folder. However, the outdated version of gradio it employs is susceptible to path traversal, as identified in CVE-2023-51449. This vulnerability allows unauthorized users to bypass the intended restrictions and access sensitive files, such as `config.json`, which contains API keys. The issue affects the latest version of chuanhuchatgpt prior to the fixed version released on 20240305.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03757,"percentile":0.90156,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://huntr.com/bounties/277e3ff0-5878-4809-a4b9-73cdbb70dc9f","tags":[]},{"url":"https://github.com/gaizhenbiao/chuanhuchatgpt/commit/6b8f7db347b390f6f8bd07ea2a4ef01a47382f00","tags":[]}],"priority":{"score":29.9,"factors":[{"name":"EPSS percentile","points":18.03},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.86}]},"exploitSources":{"nuclei":[{"id":"CVE-2024-3234","name":"Chuanhu Chat - Directory Traversal","severity":"critical","path":"http/cves/2024/CVE-2024-3234.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-3234.yaml"}],"provenance":"source"},"vendorSlug":"gaizhenbiao","affectedVersions":[{"vendor":"gaizhenbiao","product":"gaizhenbiao/chuanhuchatgpt","versions":[">= unspecified, <  20240305"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-06-07T12:43:21.455888Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"A path traversal flaw in the gaizhenbiao/chuanhuchatgpt application stems from its use of an outdated gradio component, which lets requests escape the intended web_assets folder. An unauthenticated attacker with network access can exploit it without user interaction to read sensitive files such as config.json, which contains API keys.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T04:02:22Z"},"euvd":{"id":"EUVD-2024-31826","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gaizhenbiao-chuanhuchatgpt-cve-2024-4520","parents":[{"from":"CVE-2024-4520","to":"CVE-2024-3234","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-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"]}]},{"from":"CVE-2024-3234","to":"CVE-2024-5278","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/22007a77f037c0cf76180f9b73a8d19e87dad02e"],"basis":"shared function","functions":["create_new_model"]}]},{"from":"CVE-2024-3234","to":"CVE-2024-8143","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"]}]}]}}