6.5medium
ReDoS (Regular Expression Denial of Service) in gaizhenbiao/chuanhuchatgpt
- Severity
- 6.5medium CVSS:3.0 by @huntr_ai
- Exploit likelihood
- 0.74% (higher than 55% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- @huntr_ai
- Also known as
- PYSEC-2025-94
Description
A Regular Expression Denial of Service (ReDoS) vulnerability exists in gaizhenbiao/chuanhuchatgpt, as of commit 20b2e02. The server uses the regex pattern `r'<[^>]+>'` to parse user input. In Python's default regex engine, this pattern can take polynomial time to match certain crafted inputs. An attacker can exploit this by uploading a malicious JSON payload, causing the server to consume 100% CPU for an extended period. This can lead to a Denial of Service (DoS) condition, potentially affecting the entire server.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| gaizhenbiao gaizhenbiao/chuanhuchatgpt | from unspecified up to latest | CVE List |
| gaizhenbiao chuanhuchatgpt | 2024-09-19 | NVD |
| chuanhuchatgpt (PyPI) | up to 2024-09-19 | PyPA Advisory Database |
All scores
| @huntr_ai | 6.5medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| PyPA Advisory Database | 6.5medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
A Regular Expression Denial of Service (ReDoS) vulnerability exists in gaizhenbiao/chuanhuchatgpt, as of commit 20b2e02. The server uses the regex pattern `r'<[^>]+>'` to parse user input. In Python's default regex engine, this pattern can take polynomial time to match certain crafted inputs. An attacker can exploit this by uploading a malicious JSON payload, causing the server to consume 100% CPU for an extended period. This can lead to a Denial of Service (DoS) condition, potentially affecting the entire server.
NVD (es)
Existe una vulnerabilidad de denegación de servicio de expresiones regulares (ReDoS) en gaizhenbiao/chuanhuchatgpt, a partir del commit 20b2e02. El servidor utiliza el patrón de expresiones regulares `r'<[^>]+>''` para analizar la entrada del usuario. En el motor de expresiones regulares predeterminado de Python, este patrón puede tardar un tiempo polinomial en coincidir con ciertas entradas manipuladas. Un atacante puede explotar esto cargando un payload JSON maliciosa, lo que provoca que el servidor consuma el 100 % de la CPU durante un período prolongado. Esto puede provocar una denegación de servicio (DoS), que podría afectar a todo el servidor.
References
| https://huntr.com/bounties/8291f8d0-5060-47e7-9986-1f411310fb7b | evidence, exploit, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-10955 changed 2025-10-15 | CVE Terms of Use |
| NVD | CVE-2024-10955 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2025-94 changed 2026-05-21 | CC-BY-4.0 |