← Vulnerability feed

Vulnerability record · CVE-2024-5982 · published 29 October 2024

CVE-2024-5982: Gaizhenbiao chuanhuchatgpt path traversal vulnerability

GGaizhenbiao · Chuanhuchatgpt

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.

9.8 CVSS 3.1 Critical EPSS 31% · top 1.8% CWE-22 · Path traversal
9.8CVSS 3.1 base score
31%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
2References, 1 tagged exploit
17 Jun 2026Last modified by NVD

Description

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2024-5982 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2024-5822Gaizhenbiao chuanhuchatgpt server-side request forgery (ssrf) vulnerabilityA Server-Side Request Forgery (SSRF) vulnerability exists in the upload processing interface of gaizhenbiao/ChuanhuChatGPT versions <= ChuanhuChatGPT…EPSS 0.53%9.8CVE-2024-3234Gaizhenbiao chuanhuchatgpt path traversal vulnerabilityThe gaizhenbiao/chuanhuchatgpt application is vulnerable to a path traversal attack due to its use of an outdated gradio component. The application i…EPSS 3.8%9.1CVE-2024-5823Gaizhenbiao chuanhuchatgpt vulnerabilityA file overwrite vulnerability exists in gaizhenbiao/chuanhuchatgpt versions <= 20240410. This vulnerability allows an attacker to gain unauthorized …EPSS 0.55%9.1CVE-2024-6255Gaizhenbiao chuanhuchatgpt path traversal vulnerabilityA vulnerability in the JSON file handling of gaizhenbiao/chuanhuchatgpt version 20240410 allows any user to delete any JSON file on the server, inclu…EPSS 13%9.1CVE-2024-6036Gaizhenbiao chuanhuchatgpt uncontrolled resource consumption vulnerabilityA vulnerability in gaizhenbiao/chuanhuchatgpt version 20240410 allows any user to restart the server at will by sending a specific request to the `/q…EPSS 11%9.1CVE-2024-6037Gaizhenbiao chuanhuchatgpt allocation without limits vulnerabilityA vulnerability in gaizhenbiao/chuanhuchatgpt version 20240410 allows an attacker to create arbitrary folders at any location on the server, includin…EPSS 11%8.8CVE-2024-8613Gaizhenbiao chuanhuchatgpt insecure direct object reference vulnerabilityA vulnerability in gaizhenbiao/chuanhuchatgpt version 20240802 allows attackers to access, copy, and delete other users' chat histories. This issue a…EPSS 0.59%8.1CVE-2024-9216Gaizhenbiao chuanhuchatgpt vulnerabilityAn authentication bypass vulnerability exists in gaizhenbiao/ChuanhuChatGPT, as of commit 3856d4f, allowing any user to read and delete other users' …EPSS 0.62%

Source: NIST National Vulnerability Database (record CVE-2024-5982), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.