CVE-2024-10955 ReDoS (Regular Expression Denial of Service) in gaizhenbiao/chuanhuchatgpt
MediumCVSS 6.5
EPSS 0.74%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| gaizhenbiao/chuanhuchatgpt | <= latest | after latest | Fixed |
| pypi chuanhuchatgpt(PyPI) | <= 2024-09-19 | after 2024-09-19 | Fixed |
| GaiZhenbiao ChuanhuChatGPT | = 2024-09-19 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi chuanhuchatgpt(PyPI) | <= 2024-09-19 | No fix listed |
| gaizhenbiao/chuanhuchatgpt | <= latest | No fix listed |
| GaiZhenbiao ChuanhuChatGPT | = 2024-09-19 | No fix listed |
References
- huntr.com exploit third-party-advisory