CVE-2024-5982

published 29 Oct 2024 · updated 29 Oct 2024

Path Traversal in gaizhenbiao/chuanhuchatgpt

9.6CriticalCVSS 9.1EPSS 31%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 31%. Fixed in 20240918.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
gaizhenbiao<2024091820240918

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-5982 severity on Zeptric[![CVE-2024-5982](https://zeptric.io/badge/cve/CVE-2024-5982.svg)](https://zeptric.io/cve/CVE-2024-5982)