Skip to content
HighVulnerability

CVE-2024-6038: gaizhenbiao/chuanhuchatgpt ReDoS in filter_history via crafted keyword

Identifier
CVE-2024-6038
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.7%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

CVE-2024-6038 is a Regular Expression Denial of Service (ReDoS) flaw in the latest version of gaizhenbiao/chuanhuchatgpt. The vulnerable filter_history function in utils.py passes a user-provided keyword directly into a regex search over chat history filenames without sanitization or validation. An attacker can supply a crafted regular expression to cause a denial of service, degrading performance and potentially making the system unavailable.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.