CVE-2024-5982 - CVE House
Back to Database
Status published Critical CVE-2024-5982

Path Traversal in gaizhenbiao/chuanhuchatgpt

Vulnerability 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2024-5982

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

gaizhenbiao

View all reports →

Affected Software

gaizhenbiao/chuanhuchatgpt
Vulnerable Versions:
unspecified

Timeline

Official Publish: October 29th, 2024
Last Modified: October 29th, 2024
Added to House: July 22nd, 2026

CVSS Vectors

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

Weaknesses (CWE)