Path Traversal in gaizhenbiao/chuanhuchatgpt
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| gaizhenbiao | gaizhenbiao/chuanhuchatgpt | before 20240918 | 20240918 | Patch available | CNA |
- gaizhenbiao/chuanhuchatgpt Vendorgaizhenbiao Affected before 20240918 Fixed in 20240918 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:gaizhenbiao:chuanhuchatgpt:*:*:*:*:*:*:*:* | before 20240918 | Vulnerable | gaizhenbiao |
- cpe:2.3:a:gaizhenbiao:chuanhuchatgpt:*:*:*:*:*:*:*:* Versions before 20240918 Vulnerable ·gaizhenbiao
Remediation
- Fix · CNA gaizhenbiao/chuanhuchatgpt (gaizhenbiao) Fixed in 20240918
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
gaizhenbiao/chuanhuchatgpt 20240918
3 records Highest priority Priority HIGH 3 HIGH
Other records, highest priority first
- TI-2024-07381 Arbitrary File Read via Insufficient Validation in gaizhenbiao/chuanhuchatgptPriority HIGH 72
- TI-2024-07234 Denial of Service (DOS) in gaizhenbiao/chuanhuchatgptPriority HIGH 72
Timeline
- 2026-10-02 Threatist record created from CVE-2024-5982
- 2026-10-03 Alias added: GHSA-p6jm-98c6-m9x8
References
More gaizhenbiao Chuanhuchatgpt vulnerabilities
- TI-2024-03032 Path Traversal in gaizhenbiao/chuanhuchatgpt CVSS 3.1CRITICAL 9.8
- TI-2024-05399 Server-Side Request Forgery (SSRF) in gaizhenbiao/ChuanhuChatGPT CVSS 3.1CRITICAL 9.8
- TI-2024-05802 Path Traversal in gaizhenbiao/chuanhuchatgpt CVSS 3.1CRITICAL 9.1
- TI-2024-05594 Arbitrary Folder Creation in gaizhenbiao/chuanhuchatgpt CVSS 3.1CRITICAL 9.1
- TI-2024-05593 Denial of Service in gaizhenbiao/chuanhuchatgpt CVSS 3.1CRITICAL 9.1
- TI-2024-05400 File Overwrite Vulnerability in gaizhenbiao/chuanhuchatgpt CVSS 3.1CRITICAL 9.1
Sources
- CVE-2024-5982 · CVE Program
- CVE-2024-5982 · NVD
- FIRST EPSS
- GHSA-p6jm-98c6-m9x8 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences