CVE & CISA-KEV Catalog

CVE-2024-5278

MEDIUM
6.1
CVSS v3
NVD

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.

How to fix

Remediation Available
chuanhuchatgptNVD
Affected:< 20240919Fixed in:20240919CVE-2024-5278derived from NVD

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeChanged

Impact

ConfidentialityLow
IntegrityLow
AvailabilityNone

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Exploit Intelligence

0.59%probability of exploitation in 30 days
44thpercentile

Moderate risk: more likely to be exploited than 44% of all known CVEs.

References

Exploit1
Other references1

Related Vulnerabilities

Other CWE-434 (Unrestricted File Upload) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2017-12617High8.1100%KEVFix
CVE-2018-15961Critical9.8100%KEV-
CVE-2021-31207Medium6.6100%KEV + RansomFix
CVE-2017-12615High8.1100%KEV + Ransom-
CVE-2025-31324Critical10.099%KEV + Ransom-
CVE-2024-50623Critical9.899%KEV + RansomFix
Embed a live status badge for CVE-2024-5278
CVE-2024-5278 severity badge

Markdown

[![CVE-2024-5278](https://tridentstack.com/cve/badge/CVE-2024-5278.svg)](https://tridentstack.com/cve/CVE-2024-5278)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-5278"><img src="https://tridentstack.com/cve/badge/CVE-2024-5278.svg" alt="CVE-2024-5278"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-10-15.