{"id":"CVE-2024-6038","aliases":["CVE-2024-6038","PYSEC-2024-318"],"related":[],"kind":"vulnerability","state":"published","title":"ReDoS Vulnerability in gaizhenbiao/chuanhuchatgpt","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Existe una vulnerabilidad de denegación de servicio de expresión regular (ReDoS) en la última versión de gaizhenbiao/chuanhuchatgpt. La vulnerabilidad se encuentra en la función filter_history dentro del módulo utils.py. Esta función toma una palabra clave proporcionada por el usuario e intenta compararla con los nombres de archivos del historial de chat mediante una búsqueda de expresión regular. Debido a la falta de sanitización o validación del parámetro de palabra clave, un atacante puede inyectar una expresión regular especialmente manipulada, lo que lleva a una condición de denegación de servicio. Esto puede provocar una degradación grave del rendimiento del servicio y una posible indisponibilidad del sistema.","source":"nvd"}],"published":"2024-06-27T18:41:45.405Z","modified":"2026-07-13T07:15:21.472Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"20240918","status":"affected"}],"vendor":"gaizhenbiao","product":"gaizhenbiao/chuanhuchatgpt","source":"cvelist"},{"ranges":[{"version":"0","status":"affected"}],"vendor":"gaizhenbiao","product":"chuanhuchatgpt","cpe":"cpe:2.3:a:gaizhenbiao:chuanhuchatgpt:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"status":"affected","version":"20240410"}],"vendor":"gaizhenbiao","product":"chuanhuchatgpt","cpe":"cpe:2.3:a:gaizhenbiao:chuanhuchatgpt:20240410:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"20240410"}],"ecosystem":"PyPI","package":"chuanhuchatgpt","purl":"pkg:pypi/chuanhuchatgpt","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/d41cca0a-82bc-4cbf-a52a-928d304fb42d","tags":["evidence","exploit","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://github.com/gaizhenbiao/chuanhuchatgpt/commit/fcdd5fd6b05ef537a1db185ab115758d87e1ba3f","tags":["fix"],"sources":["cvelist","nvd","pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-06-28T15:11:23.458Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-6038","url":"https://www.cve.org/CVERecord?id=CVE-2024-6038","licence":"CVE Terms of Use","modified":"2025-10-15T12:50:31.656Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-6038","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6038","licence":"Public domain","modified":"2026-06-17T08:17:09.450Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-318","url":"https://osv.dev/vulnerability/PYSEC-2024-318","licence":"CC-BY-4.0","modified":"2026-07-13T07:15:21.472Z"}],"updatedAt":"2026-11-25T22:58:42.296Z","epss":{"score":0.00657,"percentile":0.52733,"date":"2026-12-01T12:00:22.000Z"}}