{"id":"CVE-2024-6038","aliases":["EUVD-2024-47196","GHSA-6w57-8p2p-2r2x","PYSEC-2024-318"],"status":"published","title":"ReDoS Vulnerability in gaizhenbiao/chuanhuchatgpt","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.","severity":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-08","score":0.00657,"percentile":0.51721,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-1333","CWE-625"],"published":"2024-06-27T18:41:45Z","modified":"2026-10-28T02:30:50Z","affected":[{"source":"osv","ecosystem":"PyPI","package":"chuanhuchatgpt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"20240410"}]}],"versions":["3.2.5"]}],"products":[{"vendor":"gaizhenbiao","product":"chuanhuchatgpt"},{"vendor":"gaizhenbiao","product":"gaizhenbiao/chuanhuchatgpt"}],"references":[{"url":"https://huntr.com/bounties/d41cca0a-82bc-4cbf-a52a-928d304fb42d","tags":["x_transferred","Exploit","Third Party Advisory","web","evidence"]},{"url":"https://github.com/gaizhenbiao/chuanhuchatgpt/commit/fcdd5fd6b05ef537a1db185ab115758d87e1ba3f","tags":["fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6038","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-6w57-8p2p-2r2x"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6038.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2024-6038","title":"ReDoS Vulnerability in gaizhenbiao/chuanhuchatgpt","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.","status":"published","published":"2024-06-27T18:41:45.405Z","modified":"2025-10-15T12:50:31.656Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T14:34:11.638716Z"}],"euvd":[{"id":"EUVD-2024-47196","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.","status":"published","published":"2024-06-27T18:41:45Z","modified":"2025-10-15T12:50:31Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T20:31:31.584227Z"}],"ghsa":[{"id":"GHSA-6w57-8p2p-2r2x","title":"A Regular Expression Denial of Service (ReDoS) vulnerability exists in the latest version of...","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.","status":"published","published":"2024-06-27T21:32:08Z","modified":"2025-10-15T15:31:25Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-625","CWE-1333"],"updated_at":"2026-11-02T15:03:59.559504Z"}],"nvd":[{"id":"CVE-2024-6038","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.","status":"published","published":"2024-06-27T19:15:19.04Z","modified":"2026-06-17T08:17:09.45Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T14:10:09.388795Z"}],"osv":[{"id":"CVE-2024-6038","title":"ReDoS Vulnerability in gaizhenbiao/chuanhuchatgpt","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.","status":"published","published":"2024-06-27T18:41:45.405Z","modified":"2026-10-28T02:30:50.099971029Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-1333"],"updated_at":"2026-11-02T15:44:45.107804Z"},{"id":"PYSEC-2024-318","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.","status":"published","published":"2024-06-27T19:15:19.04Z","modified":"2026-07-13T07:15:21.472155089Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:52:54.242332Z"}]}}
