Vulnerability · Published Dec 22, 2023 · Assigned by GitHub_M

CVE-2023-51449Make the `/file` secure against file traversal attacks

Medium 5.6

In plain English

A medium-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 28.3% (higher than 98% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.6Medium
Exploit odds (30 days)28.3%top 1.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Nuclei

Official description

Gradio is an open-source Python package that allows you to quickly build a demo or web application for your machine learning model, API, or any arbitary Python function. Versions of `gradio` prior to 4.11.0 contained a vulnerability in the `/file` route which made them susceptible to file traversal attacks in which an attacker could access arbitrary files on a machine running a Gradio app with a public URL (e.g. if the demo was created with `share=True`, or on Hugging Face Spaces) if they knew the path of files to look for. This issue has been patched in version 4.11.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIgradio4.11.0GHSA-6qm2-wpxq-7qh2
PyPIgradio4.11.0PYSEC-2023-249

Affected products (as reported)

VendorProductVersions
gradio-app gradio < 4.11.0

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

References