Live threats

All CVEs / Gradio Project

CVE-2021-43831Gradio Project Gradio

High 7.7

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Gradio.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
gradio_projectgradio< 2.5.0

Official sources

References

Links published by the sources. Open them with care.