CVE-2024-5278
published medium CVSS 3.0 · 6.5Unrestricted File Upload leading to RCE in gaizhenbiao/chuanhuchatgpt
Package status and fixes
Description
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.
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
- 6.5 / 10
- Severity
- medium
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gaizhenbiao | gaizhenbiao/chuanhuchatgpt | unspecified to < 20240919 (affected · custom) | @huntr_ai · cna |
| gaizhenbiao | chuanhuchatgpt | all (affected)Default: affected | CISA-ADP · adp |
Weaknesses
1- CWE-434 CWE-434 Unrestricted Upload of File with Dangerous Type
References
2Provider assertions
3@huntr_ai · cna
Unrestricted File Upload leading to RCE in gaizhenbiao/chuanhuchatgpt
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- a716dd2535e7d98dc54c1415e698349e4c06b6813a7eaf16b02b41d72e38a059
- Ingested
- 23 Sep 2026, 08:32:31 UTC
- Source record
- Official CVE record