{"id":"CVE-2024-6038","published":"2024-06-27T18:41:45Z","modified":"2025-10-15T12:50:31Z","title":"ReDoS Vulnerability in gaizhenbiao/chuanhuchatgpt","vendor":"gaizhenbiao","product":"gaizhenbiao/chuanhuchatgpt","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00657,"percentile":0.52388,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://huntr.com/bounties/d41cca0a-82bc-4cbf-a52a-928d304fb42d","tags":[]},{"url":"https://github.com/gaizhenbiao/chuanhuchatgpt/commit/fcdd5fd6b05ef537a1db185ab115758d87e1ba3f","tags":[]}],"priority":{"score":15.7,"factors":[{"name":"EPSS percentile","points":10.48},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"gaizhenbiao","affectedVersions":[{"vendor":"gaizhenbiao","product":"gaizhenbiao/chuanhuchatgpt","versions":[">= unspecified, < 20240918"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-06-28T15:11:23.458775Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"chuanhuchatgpt","vulnerableRanges":["<=20240410"],"patched":[],"from":["PYSEC-2024-318"],"provenance":"source"}],"euvd":{"id":"EUVD-2024-47196","exploited":false,"provenance":"source"}}