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

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

January 21, 2022 (updated November 18, 2024)

This is a vulnerability that affects anyone who creates and publicly shares Gradio interfaces using gradio<2.4.8. Because of the way that static files were being served, someone who generated a public Gradio link and shared it with others would potentially be exposing the files on the computer that generated the link, while the link was active. An attacker would be able to view the contents of a file on the computer if they knew the exact relative filepath. We do not have any evidence that this was ever exploited, but we treated the issue seriously and immediately took steps to mitigate it (see below)

References

  • github.com/advisories/GHSA-rhq2-3vr9-6mcr
  • github.com/gradio-app/gradio
  • github.com/gradio-app/gradio/commit/41bd3645bdb616e1248b2167ca83636a2653f781
  • github.com/gradio-app/gradio/security/advisories/GHSA-rhq2-3vr9-6mcr
  • github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2021-873.yaml
  • nvd.nist.gov/vuln/detail/CVE-2021-43831

Code Behaviors & Features

Detect and mitigate CVE-2021-43831 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.5.0

Fixed versions

  • 2.5.0

Solution

Upgrade to version 2.5.0 or above.

Impact 7.7 HIGH

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/gradio/CVE-2021-43831.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:14:50 +0000.