SecurityContext

CVE-2023-51449: Gradio - File Inclusion

  • Cve: CVE-2023-51449
  • Name: Gradio - File Inclusion
  • 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.
  • Impact: Unauthenticated attackers can access arbitrary files on the server, potentially leading to information disclosure or further exploitation.
  • Remediation: Update to the latest version of Gradio where the vulnerability is fixed.
  • Vulnerability type: file_inclusion
  • Vulnerability impact: file_system_read, 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.28336
  • Epss percentile: 0.98167
  • Assignee: [email protected]
  • Published at: 2023-12-22T21:15:09Z
  • Age in days: 1068
  • Modified at: 2026-06-17T06:40:58Z
  • Patch available: yes
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-51449
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

Nuclei templates

IdUrl
CVE-2023-51449https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-51449.yaml

References

UrlSourceTags
https://github.com/gradio-app/gradio/commit/1b9d4234d6c25ef250d882c7b90e1f4039ed2d76nvdPatch
https://github.com/gradio-app/gradio/commit/7ba8c5da45b004edd12c0460be9222f5b5f5f055nvdPatch
https://github.com/gradio-app/gradio/security/advisories/GHSA-6qm2-wpxq-7qh2nvdThird Party Advisory
https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-51449.yamlnuclei_templateNuclei Template

Products

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

Projects

RepositoryLink kindsIndexedUrl
gradio-app/gradiocommit, fix, package, security_advisoryyes/v1/repositories/gradio-app/gradio

Index

  • Repositories: 421
  • Repositories high signal: 258
  • Packages: 1

Exploitation

  • Remote: yes
  • Exposed hosts: 2932
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, initial access since, hackerone reports

Nuclei template