CVE-2021-43831Gradio Project Gradio
High 7.7
Follow: this CVE · Gradio Project · Gradio Project Gradio We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.7
- EPSS
- 3.8% probability of exploitation in 30 days · percentile 91
- Auth required
- Yes
- Published
- Dec 15, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
What happens
Gradio is an open source framework for building interactive machine learning models and demos. In versions prior to 2.5.0 there is a vulnerability that affects anyone who creates and publicly shares Gradio interfaces. File paths are not restricted and users who receive a Gradio link can access any files on the host computer if they know the file names or file paths. This is limited only by the host operating system. Paths are opened in read only mode. The problem has been patched in gradio 2.5.0.
What to do
- Apply the vendor's security update for Gradio.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | gradio |
< 2.5.0 |
2.5.0 |
pip install "gradio>=2.5.0" |
| PyPI | gradio |
< 2.5.0 |
2.5.0 |
pip install "gradio>=2.5.0" |
Per OSV / GitHub Advisories (GHSA-rhq2-3vr9-6mcr, PYSEC-2021-873). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gradio_project | gradio | < 2.5.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Exploit Third Party Advisory