CVE-2024-10955 ReDoS (Regular Expression Denial of Service) in gaizhenbiao/chuanhuchatgpt

Medium 6.5 Published Updated

An attacker can cause a Denial of Service by uploading a malicious JSON payload that triggers excessive CPU usage via inefficient regex parsing.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-10955?

CVE-2024-10955 is a medium-severity denial of service vulnerability in gaizhenbiao/chuanhuchatgpt, published on 20 Mar 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-1333

Which versions are affected by CVE-2024-10955?

1 open source package ship an affected version, including chuanhuchatgpt. It affects 1 product.

PackageAffectedFixed in
chuanhuchatgpt PyPIAll versions to 2024-09-19None

Products include Gaizhenbiao Chuanhuchatgpt.

How do I fix CVE-2024-10955?

No fix has been published for CVE-2024-10955 yet. Limit exposure of the affected software until one is available.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-10955 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-10955 exists.

Sources

Also known as GHSA-vhfq-gpqw-p5cw, PYSEC-2025-94.

Is CVE-2024-10955 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free