Path Traversal Vulnerability in ChuanhuChatGPT by GaizhenBiao
CVE-2024-5982

9.8CRITICAL

Key Information:

Vendor
CVE Published:
29 October 2024

What is CVE-2024-5982?

A path traversal vulnerability exists in ChuanhuChatGPT due to improper handling of unsanitized input across various functionalities, including user uploads and directory management. Specifically, the load_chat_history function in modules/models/base_model.py is susceptible to arbitrary file uploads, enabling potential remote code execution. Additionally, the get_history_names function in utils.py allows for arbitrary directory creation, while the load_template function can be exploited to reveal contents from CSV files. These vulnerabilities are primarily a result of inadequate sanitization of user inputs combined with the construction of directory paths.

References

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

.