Skip to content

CVE-2024-6038 ReDoS Vulnerability in gaizhenbiao/chuanhuchatgpt

HighCVSS 7.5 EPSS 0.66%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
gaizhenbiao/chuanhuchatgpt < 20240918 20240918 Fixed
pypi chuanhuchatgpt(PyPI) <= 20240410; = 3.2.5 after 20240410 Fixed
GaiZhenbiao ChuanhuChatGPT = 0; = 20240410 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi chuanhuchatgpt(PyPI) <= 20240410 No fix listed
pypi chuanhuchatgpt(PyPI) = 3.2.5 No fix listed
gaizhenbiao/chuanhuchatgpt < 20240918 20240918
GaiZhenbiao ChuanhuChatGPT = 0 No fix listed
GaiZhenbiao ChuanhuChatGPT = 20240410 No fix listed

References