Path Traversal in Gaizhenbiao Chuanhuchatgpt
CVE-2024-5982
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.
Vulnerability class: Path Traversal (Directory Traversal)
EPSS: 0.310 (98.1th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Gaizhenbiao Chuanhuchatgpt
- Gaizhenbiao Gaizhenbiao/chuanhuchatgpt — versions unspecified
Weakness classification (CWE)
References
- security@huntr.dev (Exploit)
- security@huntr.dev (Patch)
Frequently asked questions
- What is CVE-2024-5982?
- CVE-2024-5982 is a critical-severity vulnerability in Gaizhenbiao Chuanhuchatgpt, classified under Path Traversal. CVSS score: 9.8/10. Published 2024-10-29.
- How severe is CVE-2024-5982?
- Critical severity. CVSS v3 base score is 9.8 out of 10.