{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-5982","published":"2024-10-29T13:15:07.637000Z","last_modified":"2026-06-17T08:17:02.023000Z","status":"Analyzed","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-22"],"cpes":[{"criteria":"cpe:2.3:a:gaizhenbiao:chuanhuchatgpt:*:*:*:*:*:*:*:*","part":"a","vendor":"gaizhenbiao","product":"chuanhuchatgpt","version_end_excluding":"20240918"}],"cpes_truncated":false,"vendors":["gaizhenbiao"],"products":["gaizhenbiao/chuanhuchatgpt"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"partial"},"epss":{"score":0.01871,"percentile":0.79939,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2024-5982/","html_en":"/en/cve/CVE-2024-5982/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-5982","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-5982"},"untrusted":{"vendor_name":"Gaizhenbiao","product_name":"Chuanhuchatgpt","desc_en":"A path traversal vulnerability exists in the latest version of gaizhenbiao/chuanhuchatgpt. The vulnerability arises from unsanitized input handling in multiple features, including user upload, directory creation, and template loading. Specifically, the load_chat_history function in modules/models/base_model.py allows arbitrary file uploads, potentially leading to remote code execution (RCE). The get_history_names function in utils.py permits arbitrary directory creation. Additionally, the load_template function in utils.py can be exploited to leak the first column of CSV files. These issues stem from improper sanitization of user inputs concatenated with directory paths using os.path.join.","affected":[{"untrusted_vendor":"gaizhenbiao","untrusted_product":"gaizhenbiao/chuanhuchatgpt","versions":[]},{"untrusted_vendor":"gaizhenbiao","untrusted_product":"gaizhenbiao\\/chuanhuchatgpt","versions":[]}],"references":[{"url":"https://github.com/gaizhenbiao/chuanhuchatgpt/commit/952fc8c3cbacead858311747cddd4bedcb4721d7","tags":["Patch"]},{"url":"https://huntr.com/bounties/5d5c5356-e893-44d1-b5ca-642aa05d96bb","tags":["Exploit"]}]}}