CVE-2023-25823 Gradio contains Use of Hard-coded Credentials

Medium 5.4 Published Updated

Attackers can access other users' shared Gradio demos using a hard-coded SSH key when share links are enabled, potentially leading to unauthorized access.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-25823?

CVE-2023-25823 is a medium-severity vulnerability in Gradio Project Gradio, published on 23 Feb 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Gradio is an open-source Python library to build machine learning and data science demos and web applications. Versions prior to 3.13.1 contain Use of Hard-coded Credentials. When using Gradio's share links (i.e. creating a Gradio app and then setting `share=True`), a private SSH key is sent to any user that connects to the Gradio machine, which means that a user could access other users' shared Gradio demos. From there, other exploits are possible depending on the level of access/exposure the Gradio app provides. This issue is patched in version 3.13.1, however, users are recommended to update to 3.19.1 or later where the FRP solution has been properly tested.

Weakness: CWE-798

Which versions are affected by CVE-2023-25823?

3 open source packages ship an affected version, including gradio. It affects 1 product.

PackageAffectedFixed in
gradio PyPIAll versions3.13.1
gradio PyPIAll versions3.13.1
gradio PyPIAll versions3.13.1

Products include Gradio Project Gradio.

How do I fix CVE-2023-25823?

Upgrade gradio to 3.13.1 or later.

Is CVE-2023-25823 being exploited?

There is no known exploitation of CVE-2023-25823 in the wild and no public exploit code.

All Gradio Project Gradio vulnerabilities

Sources

Also known as GHSA-3x5j-9vwr-8rr5, PYSEC-2023-16.

Is CVE-2023-25823 in your software?

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

Check your SBOMs for free