CVE-2024-5982 | Path Traversal in gaizhenbiao/chuanhuchatgpt
Exp
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.
Conclusion & alert: CVE-2024-5982 is rated High Exploit Risk (93.4/100): CVSS Critical severity, with high exploitation likelihood (EPSS 27.21%, 98th percentile).Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). EPSS rose +25.69% over the last day, indicating growing attacker interest.Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
Public exploit references (Exploit-DB) for CVE-2024-5982
Exploit prediction scoring system (EPSS) score for CVE-2024-5982
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).