CVE-2024-5982: A path traversal vulnerability exists in the latest version of gaizhenbiao/chuanhuchatgpt
CVE-2024-5982 is a critical-severity flaw (CVSS 9.8) affecting chuanhuchatgpt. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 arbi
Why this priority
- Critical severity
- EPSS top 2%: very likely to be exploited
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 31.3% (top 2%) |
| CISA exploited list | No |
| Weakness | CWE-22 |
| Published | 2024-10-29 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-5982?
chuanhuchatgpt: upgrade to 20240918. Exact commands for each OS are on this page.
Is CVE-2024-5982 being exploited?
CVE-2024-5982 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-5982 affect?
CVE-2024-5982 affects chuanhuchatgpt. Severity is critical (CVSS 9.8). 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. Speci
How urgent is CVE-2024-5982?
Priority 69/100. Critical severity; EPSS top 2%: very likely to be exploited; Public exploit reference; Remotely exploitable, no login, no user action
Related CVEs
- CVE-2025-0191 MEDIUM 6.5 DOWNGRADE A Denial of Service (DoS) vulnerability exists in the file upload feature of gaizhenbiao/chuanhuchatgpt versio
- CVE-2025-0188 MEDIUM 6.5 DOWNGRADE A Server-Side Request Forgery (SSRF) vulnerability was discovered in gaizhenbiao/chuanhuchatgpt version 202409
- CVE-2024-9216 HIGH 8.1 DOWNGRADE An authentication bypass vulnerability exists in gaizhenbiao/ChuanhuChatGPT, as of commit 3856d4f, allowing an
- CVE-2024-9159 MEDIUM 6.5 DOWNGRADE An incorrect authorization vulnerability exists in gaizhenbiao/chuanhuchatgpt version git c91dbfc
- CVE-2024-9107 MEDIUM 5.4 DOWNGRADE A stored cross-site scripting (XSS) vulnerability exists in the gaizhenbiao/chuanhuchatgpt repository, affecti