Unrestricted File Upload leading to RCE in gaizhenbiao/chuanhuchatgpt
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-434.
Summary
gaizhenbiao/chuanhuchatgpt is vulnerable to an unrestricted file upload vulnerability due to insufficient validation of uploaded file types in its `/upload` endpoint. Specifically, the `handle_file_upload` function does not sanitize or validate the file extension or content type of uploaded files, allowing attackers to upload files with arbitrary extensions, including HTML files containing XSS payloads and Python files. This vulnerability, present in the latest version as of 20240310, could lead to stored XSS attacks and potentially result in remote code execution (RCE) on the server hosting the application.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- 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 20240919 | 20240919 | Patch available | CNA |
- gaizhenbiao/chuanhuchatgpt Vendorgaizhenbiao Affected before 20240919 Fixed in 20240919 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:gaizhenbiao:chuanhuchatgpt:*:*:*:*:*:*:*:* | before 20240919 | Vulnerable | gaizhenbiao |
- cpe:2.3:a:gaizhenbiao:chuanhuchatgpt:*:*:*:*:*:*:*:* Versions before 20240919 Vulnerable ·gaizhenbiao
Remediation
- Fix · CNA gaizhenbiao/chuanhuchatgpt (gaizhenbiao) Fixed in 20240919
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
gaizhenbiao/chuanhuchatgpt 20240919
2 records Highest priority Priority MEDIUM 2 MEDIUM
Other records, highest priority first
- TI-2024-03175 Improper Access Control in gaizhenbiao/chuanhuchatgptPriority MEDIUM 62
Timeline
- 2026-10-02 Threatist record created from CVE-2024-5278
- 2026-10-03 Alias added: GHSA-8v63-8v7j-hvg8
References
More gaizhenbiao Chuanhuchatgpt vulnerabilities
- TI-2024-03032 Path Traversal in gaizhenbiao/chuanhuchatgpt CVSS 3.1CRITICAL 9.8
- TI-2024-05543 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
Sources
- CVE-2024-5278 · CVE Program
- CVE-2024-5278 · NVD
- FIRST EPSS
- GHSA-8v63-8v7j-hvg8 · 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