CVE-2024-5278: gaizhenbiao/chuanhuchatgpt is vulnerable to an unrestricted file upload vulnerability due to insufficient vali
CVE-2024-5278 is a medium-severity flaw (CVSS 6.1) affecting chuanhuchatgpt. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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, presen
Why this priority
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 6.1 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.6% (top 52%) |
| CISA exploited list | No |
| Weakness | CWE-434 |
| Published | 2024-06-06 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-5278?
chuanhuchatgpt: upgrade to 20240919. Exact commands for each OS are on this page.
Is CVE-2024-5278 being exploited?
CVE-2024-5278 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-5278 affect?
CVE-2024-5278 affects chuanhuchatgpt. Severity is medium (CVSS 6.1). 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 vali
How urgent is CVE-2024-5278?
Priority 38/100. Public exploit reference
Software pages
Related CVEs
- CVE-2025-0191 MEDIUM 6.5 DOWNGRADE A Denial of Service (DoS) vulnerability exists in the file upload feature of gaizhenbiao/chuanhuchatgpt versio
- CVE-2025-0188 MEDIUM 6.5 DOWNGRADE A Server-Side Request Forgery (SSRF) vulnerability was discovered in gaizhenbiao/chuanhuchatgpt version 202409
- CVE-2024-9216 HIGH 8.1 DOWNGRADE An authentication bypass vulnerability exists in gaizhenbiao/ChuanhuChatGPT, as of commit 3856d4f, allowing an
- CVE-2024-9159 MEDIUM 6.5 DOWNGRADE An incorrect authorization vulnerability exists in gaizhenbiao/chuanhuchatgpt version git c91dbfc
- CVE-2024-9107 MEDIUM 5.4 DOWNGRADE A stored cross-site scripting (XSS) vulnerability exists in the gaizhenbiao/chuanhuchatgpt repository, affecti