Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. gradio
  4. ›
  5. CVE-2024-51751

CVE-2024-51751: Gradio vulnerable to arbitrary file read with File and UploadButton components

November 6, 2024 (updated June 5, 2026)

If File or UploadButton components are used as a part of Gradio application to preview file content, an attacker with access to the application might abuse these components to read arbitrary files from the application server.

References

  • github.com/advisories/GHSA-rhm9-gp5p-5248
  • github.com/gradio-app/gradio/security/advisories/GHSA-rhm9-gp5p-5248
  • github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2024-275.yaml
  • nvd.nist.gov/vuln/detail/CVE-2024-51751

Code Behaviors & Features

Detect and mitigate CVE-2024-51751 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 5.0.0 before 5.5.0

Fixed versions

  • 5.5.0

Solution

Upgrade to version 5.5.0 or above.

Impact

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/gradio/CVE-2024-51751.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:34 +0000.