Read the docs
TI-2024-05543 Aliases CVE-2024-5982GHSA-p6jm-98c6-m9x8

Path Traversal in gaizhenbiao/chuanhuchatgpt

Priority HIGH 81CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA.

Summary

A path traversal vulnerability exists in the latest version of gaizhenbiao/chuanhuchatgpt. The vulnerability arises from unsanitized input handling in multiple features, including user upload, directory creation, and template loading. Specifically, the load_chat_history function in modules/models/base_model.py allows arbitrary file uploads, potentially leading to remote code execution (RCE). The get_history_names function in utils.py permits arbitrary directory creation. Additionally, the load_template function in utils.py can be exploited to leak the first column of CSV files. These issues stem from improper sanitization of user inputs concatenated with directory paths using os.path.join.

Why it matters now

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

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
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 2024091820240918Patch availableCNA
  • gaizhenbiao/chuanhuchatgpt Vendorgaizhenbiao Affected before 20240918 Fixed in 20240918 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:gaizhenbiao:chuanhuchatgpt:*:*:*:*:*:*:*:*before 20240918Vulnerablegaizhenbiao
  • cpe:2.3:a:gaizhenbiao:chuanhuchatgpt:*:*:*:*:*:*:*:* Versions before 20240918 Vulnerable ·gaizhenbiao

Remediation

  • Fix · CNA gaizhenbiao/chuanhuchatgpt (gaizhenbiao) Fixed in 20240918

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    gaizhenbiao/chuanhuchatgpt 20240918

    3 records Highest priority Priority HIGH 3 HIGH

    Other records, highest priority first

    • TI-2024-07381 Arbitrary File Read via Insufficient Validation in gaizhenbiao/chuanhuchatgptPriority HIGH 72
    • TI-2024-07234 Denial of Service (DOS) in gaizhenbiao/chuanhuchatgptPriority HIGH 72

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-5982
  2. 2026-10-03 Alias added: GHSA-p6jm-98c6-m9x8

References

  • TI-2024-03032 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
  • TI-2024-05400 File Overwrite Vulnerability in gaizhenbiao/chuanhuchatgpt CVSS 3.1CRITICAL 9.1
See all 30 →

Sources