Files on the host computer can be accessed from the Gradio interface
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| gradio-app | gradio | before 2.5.0 | 2.5.0 | Patch available | CNA |
| — | gradio (PyPI) | before 2.5.0 | 2.5.0 | Patch available | GHSA-rhq2-3vr9-6mcr |
- gradio Vendorgradio-app Affected before 2.5.0 Fixed in 2.5.0 Patch available CNA
- gradio (PyPI) Vendor— Affected before 2.5.0 Fixed in 2.5.0 Patch available GHSA-rhq2-3vr9-6mcr
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:* | before 2.5.0 | Vulnerable | gradio-app |
- cpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:* Versions before 2.5.0 Vulnerable ·gradio-app
Remediation
- Fix · CNA gradio (gradio-app) Fixed in 2.5.0
- Fix · GHSA-rhq2-3vr9-6mcr gradio (PyPI) Fixed in 2.5.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-43831
- 2026-10-03 Alias added: GHSA-rhq2-3vr9-6mcr
- 2026-10-16 EPSS moved to the 90th–95th percentile
References
More gradio-app Gradio vulnerabilities
- TI-2024-26222 Gradio v4.36.1 was discovered to contain a code injection vulnerability via the component… CVSS 3.1CRITICAL 9.8
- TI-2024-01607 Local File Inclusion in gradio-app/gradio CVSS 3.1HIGH 7.5
- TI-2024-00889 LFI in Gradio CVSS 3.1CRITICAL 9.4
- TI-2025-16852 Gradio Blocked Path ACL Bypass Vulnerability CVSS 4.0HIGH 8.7
- TI-2026-22690 Gradio has SSRF via Malicious `proxy_url` Injection in `gr.load()` Config Processing CVSS 3.1HIGH 8.6
- TI-2024-09866 Path Traversal in gradio-app/gradio CVSS 3.0HIGH 8.2
Sources
- CVE-2021-43831 · CVE Program
- CVE-2021-43831 · NVD
- FIRST EPSS
- GHSA-rhq2-3vr9-6mcr · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences