{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-6038","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 key","descriptionLong":"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.","published":"2024-06-27T18:41:45.405Z","updated":"2026-10-28T02:30:50.099971029Z","reserved":"2024-06-15T08:15:24.324Z","status":"Modified","rejected":false,"assigner":"@huntr_ai","metric":{"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","rating":"high","source":"@huntr_ai"},"metrics":[{"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","rating":"high","source":"@huntr_ai"},{"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","rating":"high","source":"huntr.dev"},{"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","rating":"high","source":"OSV"}],"rating":"high","products":["gaizhenbiao/chuanhuchatgpt"],"affectedProducts":[{"vendor":"gaizhenbiao","product":"gaizhenbiao/chuanhuchatgpt","defaultStatus":null,"versions":[{"version":"unspecified","lessThan":"20240918","status":"affected","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"chuanhuchatgpt","purl":"pkg:pypi/chuanhuchatgpt","ranges":["<=20240410"],"fixed":[],"advisory":"PYSEC-2024-318"}],"cwes":["CWE-1333"],"aliases":["PYSEC-2024-318"],"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://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6038.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6038","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00657,"epssPercentile":0.52186,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-6038","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6038","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-6038","ok":true,"note":"1 package"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-6038","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}