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)

Published · last modified .

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.

EPSS exploit prediction

EPSS: 0.313 (98.2th percentile), scored .

Moderate probability of exploitation in the next 30 days — watch for active exploitation reports. 98th percentile — 98.2% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2024-5982: held from 0.310 to 0.313.

EPSS over last 30 days · oldest: 0.310 · newest: 0.313 · change: +0.003

Affected products

Weakness classification (CWE)

References

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.