Intel

AIKIDO-2025-10035

gradio is vulnerable to Regular Expression Denial of Service (ReDoS)

Regular Expression Denial of Service (ReDoS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jan 23, 2025

20

Low Risk

This Affects:

pythongradio
3.41.0 - 5.12.0
Fixed in 5.13.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to a Regular Expression Denial of Service (ReDoS) in the remove_html_tags util function. A crafted input with patterns designed to trigger excessive backtracking in the regular expression can cause the function to consume excessive CPU resources, potentially leading to a denial of service.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

gradio is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 3.41.0 - 5.12.0.

How to fix this

Upgrade the gradio library to the patch version.