CVE-2024-6255 Path Traversal in gaizhenbiao/chuanhuchatgpt
Attackers can delete arbitrary JSON files on the server via path traversal, causing system disruption or data loss in ChuanhuChatGPT.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-6255?
CVE-2024-6255 is a high-severity path traversal vulnerability in gaizhenbiao/chuanhuchatgpt, published on 31 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A vulnerability in the JSON file handling of gaizhenbiao/chuanhuchatgpt version 20240410 allows any user to delete any JSON file on the server, including critical configuration files such as `config.json` and `ds_config_chatbot.json`. This issue arises due to improper validation of file paths, enabling directory traversal attacks. An attacker can exploit this vulnerability to disrupt the functioning of the system, manipulate settings, or potentially cause data loss or corruption.
Weakness: CWE-22
Which versions are affected by CVE-2024-6255?
1 open source package ship an affected version, including chuanhuchatgpt. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
chuanhuchatgpt PyPI | All versions | None |
Products include Gaizhenbiao Chuanhuchatgpt.
How do I fix CVE-2024-6255?
No fix has been published for CVE-2024-6255 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-6255 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6255 exists.
Other vulnerabilities in gaizhenbiao/chuanhuchatgpt
- CVE-2024-3234 Path Traversal in gaizhenbiao/chuanhuchatgpt
- CVE-2024-5982 Path Traversal in gaizhenbiao/chuanhuchatgpt
- CVE-2024-8613 Improper Access Control in gaizhenbiao/chuanhuchatgpt
- CVE-2024-9216 Authentication Bypass in gaizhenbiao/ChuanhuChatGPT
- CVE-2024-10650 Denial of Service (DoS) in gaizhenbiao/chuanhuchatgpt
Sources
Also known as GHSA-53mw-8pff-677j, PYSEC-2024-73.