Update share links to use FRP instead of SSH tunneling
Medium5.4CVE-2023-25823 · Published Feb 23, 2023 · updated Sep 10, 2026
### Impact This is a vulnerability which affects anyone using Gradio's share links (i.e. creating a Gradio app and then setting `share=True`) with Gradio versions older than 3.13.1. In these older versions of Gradio, 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. ### Patches The problem has been patched. Ideally, users should upgrade to `gradio==3.19.1` or later where the FRP solution has been properly tested. ### Credit Credit to Greg Sadetsky and Samuel Tremblay-Cossette for alerting the team
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| gradio PyPI | < 3.13.1 | 3.13.1 |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:L
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-798
- Also known as
- CVE-2023-25823, PYSEC-2023-16
More Gradio advisories
All Gradio| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Feb 62024 | Gradio Path Traversal vulnerability | High7.5 | 4.9.0 |
| Dec 212023 | Gradio makes the `/file` secure against file traversal and server-side request forgery attacks | High8.6 | 4.11.0 |
| Dec 142023 | Gradio Exposure of Sensitive Information to an Unauthorized Actor vulnerability | Critical9.6 | 4.14.0 |
| Sep 162023 | Gradio arbitrary file upload vulnerability | Medium4.8 | No fix yet |
| Jun 92023 | Gradio vulnerable to arbitrary file read and proxying of arbitrary URLs | Medium7.3 | 3.34.0 |
| Mar 182022 | Improper Neutralization of Formula Elements in a CSV File in Gradio Flagging | High8.8 | 2.8.11 |