CVE-2023-25823 Gradio contains Use of Hard-coded Credentials
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.
| Package | Affected | Fixed in |
|---|---|---|
gradio PyPI | All versions | 3.13.1 |
gradio PyPI | All versions | 3.13.1 |
gradio PyPI | All versions | 3.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.
Other vulnerabilities in Gradio Project Gradio
- CVE-2024-39236 Withdrawn Advisory: Gradio was discovered to contain a code injection vulnerability via the component /gradio/component_meta.py
- CVE-2023-6572 Command Injection in gradio-app/gradio
- CVE-2022-24770 Improper Neutralization of Formula Elements in a CSV File in Gradio Flagging
- CVE-2026-49119 Gradio < 6.16.0 Path Traversal via FileExplorer.preprocess()
- CVE-2025-23042 Gradio Blocked Path ACL Bypass Vulnerability
Sources
Also known as GHSA-3x5j-9vwr-8rr5, PYSEC-2023-16.