Skip to content
Fencer Vulns
critical 9.1

CVE-2024-5982 in the critical feed json

Path Traversal in gaizhenbiao/chuanhuchatgpt

published 2024-10-29 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-47099

cvss
9.1
version 3.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
31.3%
EPSS 31.3% chance of exploitation in 30 days, percentile 98%
public exploits
0
none known

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.

Patch / fix

  • gaizhenbiao gaizhenbiao/chuanhuchatgpt 20240918
  • gaizhenbiao gaizhenbiao\/chuanhuchatgpt 20240918

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
partial
Assessed
2 y ago

Exploit prediction

31.30% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • huntr.com https://huntr.com/bounties/5d5c5356-e893-44d1-b5ca-642aa05d96bb referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.0 9.1 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
CISA ADP 3.1 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CNA 3.1 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Affected products

  • gaizhenbiao gaizhenbiao/chuanhuchatgpt
  • gaizhenbiao gaizhenbiao\/chuanhuchatgpt

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.