CVE-2024-5982

CriticalCVSS 9.8/10Last modified Jun 17, 2026

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.

Metrics

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

Weakness enumeration

Affected software

No affected versions have been published.

Timeline

Published
Oct 29, 2024
Last modified
Jun 17, 2026
NVD status
Analyzed

Related CVEs from 2024

CVE-2024-59839.8A vulnerability was found in itsourcecode Online Bookstore 1.0. It has been declared as critical. Affected by this vulnerability is an unknoCVE-2024-59849.8A vulnerability was found in itsourcecode Online Bookstore 1.0. It has been rated as critical. Affected by this issue is some unknown functiCVE-2024-59858.8A vulnerability classified as critical has been found in SourceCodester Best Online News Portal 1.0. This affects an unknown part of the filCVE-2024-59869.1A vulnerability in h2oai/h2o-3 version 3.46.0.1 allows remote attackers to write arbitrary data to any file on the server. This is achieved CVE-2024-59874.3The WP Accessibility Helper (WAH) plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check CVE-2024-59889.8Due to an improper input validation, an unauthenticated threat actor can send a malicious message to invoke a local or remote executable andCVE-2024-59899.8Due to an improper input validation, an unauthenticated threat actor can send a malicious message to invoke SQL injection into the program aCVE-2024-59907.5Due to an improper input validation, an unauthenticated threat actor can send a malicious message to a monitor thread within Rockwell AutomaCVE-2024-59917.5In function MatchDomainName(), input param str is treated as a NULL terminated string despite being user provided and unchecked. SpecificallCVE-2024-59926.5The Cliengo – Chatbot plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check on the 'updaCVE-2024-59935.4The Cliengo – Chatbot plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check on the 'updaCVE-2024-59945.4The WP Go Maps (formerly WP Google Maps) plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Custom JS option in versions
CVE-2024-5982: Critical severity, CVSS 9.8 | Vulnix