CVE-2024-5982
published critical CVSS 3.0 · 9.1Path Traversal in gaizhenbiao/chuanhuchatgpt
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 9.1 / 10
- Severity
- critical
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 9.1 | critical | CISA-ADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gaizhenbiao | gaizhenbiao/chuanhuchatgpt | unspecified to < 20240918 (affected · custom) | @huntr_ai · cna |
| gaizhenbiao | gaizhenbiao\/chuanhuchatgpt | 0 to < 20240918 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-22 CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
2Provider assertions
2@huntr_ai · cna
Path Traversal in gaizhenbiao/chuanhuchatgpt
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 11db05bb73b6eeec52e9769a2107fdd62c32cef8c61260d229e09ce8586fcadc
- Ingested
- 23 Sep 2026, 08:33:03 UTC
- Source record
- Official CVE record