Vulnerability · Published Dec 15, 2021 · Assigned by GitHub_M

CVE-2021-43831Files on the host computer can be accessed from the Gradio interface

High 7.7

In plain English

A high-severity path traversal in gradio from gradio-app. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.9% (higher than 90% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.7High
Exploit odds (30 days)3.9%top 9.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Nuclei

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIgradio2.5.0GHSA-rhq2-3vr9-6mcr
PyPIgradio2.5.0PYSEC-2021-873

Affected products (as reported)

VendorProductVersions
gradio-app gradio < 2.5.0

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

References