Vulnerability · Published Jun 27, 2024 · Assigned by @huntr_ai

CVE-2024-6038ReDoS Vulnerability in gaizhenbiao/chuanhuchatgpt

High 7.5

In plain English

A high-severity regular-expression denial of service in gaizhenbiao/chuanhuchatgpt from gaizhenbiao. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities).

Severity (CVSS 3.0)7.5High
Exploit odds (30 days)0.7%top 48.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIchuanhuchatgptno fix listedPYSEC-2024-318

Affected products (as reported)

VendorProductVersions
gaizhenbiao gaizhenbiao/chuanhuchatgpt unspecified – before 20240918

Weakness: CWE-1333 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References