CVE-2024-5278

6.1 MEDIUM
Published: June 06, 2024 Modified: October 15, 2025

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://huntr.com/bounties/ea821d86-941b-40f3-a857-91f758848e05
Source: security@huntr.dev
Exploit Third Party Advisory
https://huntr.com/bounties/ea821d86-941b-40f3-a857-91f758848e05
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Third Party Advisory

3 reference(s) from NVD

Quick Stats

CVSS v3 Score
6.1 / 10.0
EPSS (Exploit Probability)
0.5%
66th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

gaizhenbiao