CVE-2024-10955
JSON

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 packageVersionsReported by
gaizhenbiao gaizhenbiao/chuanhuchatgptfrom unspecified up to latestCVE List
gaizhenbiao chuanhuchatgpt2024-09-19NVD
chuanhuchatgpt (PyPI)up to 2024-09-19PyPA Advisory Database

All scores

@huntr_ai6.5medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
PyPA Advisory Database6.5medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-1333

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'&lt;[^&gt;]+&gt;''` 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

Sources

SourceRecordLicence
CVE ListCVE-2024-10955 changed 2025-10-15CVE Terms of Use
NVDCVE-2024-10955 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2025-94 changed 2026-05-21CC-BY-4.0