Skip to main content
CVE-2024-6038VulnerabilityPublished Updated

CVE-2024-6038: gaizhenbiao/chuanhuchatgpt · ReDoS

Affects gaizhenbiao/chuanhuchatgptSource CVE Database V5

0

Not known to be exploited · CVSS 7.5 High.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.0 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.6% chance of exploitation in 30 days – higher than 51% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 Jun 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

AI-suggested

To mitigate this vulnerability, organizations should implement strict input validation and sanitization on user-supplied keywords before they are used in regular expression operations. Limiting the complexity and length of regex patterns can prevent catastrophic backtracking. Employing regex libraries or engines that support timeouts or complexity limits can also reduce risk. If possible, refactor the filter_history function to avoid dynamic regex construction from untrusted input or replace regex matching with safer string matching techniques. Monitoring application performance and setting resource usage thresholds can help detect and mitigate ongoing attacks. Until an official patch is released, consider disabling or restricting access to the vulnerable feature. Additionally, applying network-level protections such as rate limiting and web application firewalls (WAFs) can help block suspicious requests containing malicious regex patterns. Regularly update the software and track vendor advisories for patches addressing this issue.

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.

References

Community reviews

Loading reviews…