SecurityContext

CVE-2024-47868: Gradio - Path Traversal

  • Cve: CVE-2024-47868
  • Name: Gradio - Path Traversal
  • Description: Gradio is an open-source Python package designed for quick prototyping. This is a **data validation vulnerability** affecting several Gradio components, which allows arbitrary file leaks through the post-processing step. Attackers can exploit these components by crafting requests that bypass expected input constraints. This issue could lead to sensitive files being exposed to unauthorized users, especially when combined with other vulnerabilities, such as issue TOB-GRADIO-15. The components most at risk are those that return or handle file data. Vulnerable Components: 1. **String to FileData:** DownloadButton, Audio, ImageEditor, Video, Model3D, File, UploadButton. 2. **Complex data to FileData:** Chatbot, MultimodalTextbox. 3. **Direct file read in preprocess:** Code. 4. **Dictionary converted to FileData:** ParamViewer, Dataset. Exploit Scenarios: 1. A developer creates a Dropdown list that passes values to a DownloadButton. An attacker bypasses the allowed inputs, sends an arbitrary file path (like `/etc/passwd`), and downloads sensitive files. 2. An attacker crafts a malicious payload in a ParamViewer component, leaking sensitive files from a server through the arbitrary file leak. This issue has been resolved in `gradio>5.0`. Upgrading to the latest version will mitigate this vulnerability. There are no known workarounds for this vulnerability.
  • Impact: Attackers can access and download sensitive files from the server, leading to data breaches and privacy violations.
  • Remediation: Upgrade to Gradio version 5.0 or later.
  • Vulnerability type: path_traversal
  • Vulnerability impact: information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Epss score: 0.00822
  • Epss percentile: 0.58244
  • Assignee: [email protected]
  • Published at: 2024-10-10T23:15:02Z
  • Age in days: 775
  • Modified at: 2026-06-17T07:57:53Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-47868
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-200Exposure of Sensitive Information to an Unauthorized Actor
CWE-22Improper Limitation of a Pathname to a Restricted Directory

Public exploits

UrlSourceAdded date
https://github.com/gradio-app/gradio/security/advisories/GHSA-4q3c-cj7g-jcwfnvd2024-10-10

References

UrlSourceTags
https://github.com/gradio-app/gradio/security/advisories/GHSA-4q3c-cj7g-jcwfnvdExploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
gradio_project:gradio< 5.0.0nonvd/v1/products/gradio_project/gradio

Projects

RepositoryLink kindsIndexedUrl
gradio-app/gradiopackage, security_advisoryyes/v1/repositories/gradio-app/gradio

Index

  • Repositories: 475
  • Repositories high signal: 283
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2024-10-10
  • Remote: yes
  • Exposed hosts: 2932
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports