CVE-2024-6038 ReDoS Vulnerability in gaizhenbiao/chuanhuchatgpt
An attacker can cause denial of service by injecting malicious regular expressions into the chat history filter function.
- 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-6038?
CVE-2024-6038 is a high-severity denial of service vulnerability in gaizhenbiao/chuanhuchatgpt, published on 27 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A Regular Expression Denial of Service (ReDoS) vulnerability exists in the latest version of gaizhenbiao/chuanhuchatgpt. The vulnerability is located in the filter_history function within the utils.py module. This function takes a user-provided keyword and attempts to match it against chat history filenames using a regular expression search. Due to the lack of sanitization or validation of the keyword parameter, an attacker can inject a specially crafted regular expression, leading to a denial of service condition. This can cause severe degradation of service performance and potential system unavailability.
Weakness: CWE-1333
Which versions are affected by CVE-2024-6038?
1 open source package ship an affected version, including chuanhuchatgpt. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
chuanhuchatgpt PyPI | All versions to 20240410 | None |
Products include Gaizhenbiao Chuanhuchatgpt.
How do I fix CVE-2024-6038?
No fix has been published for CVE-2024-6038 yet. Limit exposure of the affected software until one is available.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-6038 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6038 exists.
Other vulnerabilities in gaizhenbiao/chuanhuchatgpt
- CVE-2024-3234 Path Traversal in gaizhenbiao/chuanhuchatgpt
- CVE-2024-5982 Path Traversal in gaizhenbiao/chuanhuchatgpt
- CVE-2024-6255 Path Traversal in gaizhenbiao/chuanhuchatgpt
- CVE-2024-8613 Improper Access Control in gaizhenbiao/chuanhuchatgpt
- CVE-2024-9216 Authentication Bypass in gaizhenbiao/ChuanhuChatGPT
Sources
Also known as GHSA-6w57-8p2p-2r2x, PYSEC-2024-318.