Read the docs
TI-2024-04902 Aliases CVE-2024-5278GHSA-8v63-8v7j-hvg8

Unrestricted File Upload leading to RCE in gaizhenbiao/chuanhuchatgpt

Priority MEDIUM 60CWE-434Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00591 48th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed gaizhenbiao/chuanhuchatgpt (gaizhenbiao): 20240919

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

VendorProductAffected versionsFixed inStatusSource
gaizhenbiaogaizhenbiao/chuanhuchatgptbefore 2024091920240919Patch availableCNA
  • gaizhenbiao/chuanhuchatgpt Vendorgaizhenbiao Affected before 20240919 Fixed in 20240919 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:gaizhenbiao:chuanhuchatgpt:*:*:*:*:*:*:*:*before 20240919Vulnerablegaizhenbiao
  • 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

  1. 2026-10-02 Threatist record created from CVE-2024-5278
  2. 2026-10-03 Alias added: GHSA-8v63-8v7j-hvg8

References

  • 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
See all 30 →

Sources