CVE-2024-10648: Gradio Gradio Vulnerable To Arbitrary File Vulnerability

HIGH
Advisory Identifier: GHSA-pgfv-gvc5-prfg
CVSS 8.2
CWE-29
Published
Advisory Summary

CVE-2024-10648 is a HIGH (CVSS 8.2) gradio vulnerable to arbitrary file vulnerability (CWE-29: Path Traversal: '\..\filename') affecting Gradio libraries in the PyPI ecosystem. The issue involves gradio vulnerable to arbitrary file deletion. Remediation is available in the latest vendor maintenance releases.

CVE-2024-10648 at a Glance

CVE Identifier CVE-2024-10648
GHSA Identifier GHSA-pgfv-gvc5-prfg
Severity HIGH
CVSS v3.1 Base Score 8.2
CWE Classification CWE-29: Path Traversal: '\..\filename'
Affected Product Gradio
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 8.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability High (A:H)

How to Fix CVE-2024-10648

To remediate this vulnerability, upgrade all affected Gradio dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

gradio fixed: Latest secure release
pip install gradio>=Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show gradio

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2024-10648, inspect your installed packages using pip:

pip show gradio

Analyze the terminal output to locate any version of Gradio in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The pip show gradio command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-29: Path Traversal: '\..\filename', where the product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize '\..\filename' (leading backslash dot dot) sequences that can resolve to a location that is outside of that directory. In Gradio, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A path traversal vulnerability exists in the Gradio Audio component of gradio-app/gradio, as of version git 98cbcae. This vulnerability allows an attacker to control the format of the audio file, leading to arbitrary file content deletion. By manipulating the output format, an attacker can reset any file to an empty file, causing a denial of service (DOS) on the server.

CVE-2024-10648 Affected Gradio Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
gradio
PyPI
≥ 4.0.0
≤ 5.0.0b2

References

Frequently Asked Questions

What is CVE-2024-10648?
CVE-2024-10648 is a security vulnerability in Gradio involving Gradio Vulnerable to Arbitrary File Deletion under CWE-29: Path Traversal: '\..\filename'.
Which Gradio versions are affected?
Affected versions include releases prior to current release patches across affected packages: gradio.
What version fixes CVE-2024-10648?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is gradio affected?
Yes, gradio is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2024-10648?
CVE-2024-10648 has a CVSS v3.1 base score of 8.2 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H.
What CWE is associated with CVE-2024-10648?
CVE-2024-10648 is classified under CWE-29: Path Traversal: '\..\filename' (The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize '\..\filename' (leading backslash dot dot) sequences that can resolve to a location that is outside of that directory.).
How can I check PyPI dependencies for CVE-2024-10648?
Run the dependency tree command: 'pip show gradio'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-pgfv-gvc5-prfg",
  "modified" : "2025-03-20T20:35:17Z",
  "published" : "2025-03-20T12:32:39Z",
  "aliases" : [ "CVE-2024-10648" ],
  "summary" : "Gradio Vulnerable to Arbitrary File Deletion",
  "details" : "A path traversal vulnerability exists in the Gradio Audio component of gradio-app/gradio, as of version git 98cbcae. This vulnerability allows an attacker to control the format of the audio file, leading to arbitrary file content deletion. By manipulating the output format, an attacker can reset any file to an empty file, causing a denial of service (DOS) on the server.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "gradio"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "last_affected" : "5.0.0b2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-10648"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/gradio-app/gradio"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gradio-app/gradio/blame/98cbcaef827de7267462ccba180c7b2ffb1e825d/gradio/processing_utils.py#L234"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.com/bounties/667d664d-8189-458c-8ed7-483fe8f33c76"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-29" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-20T20:35:16Z",
    "nvd_published_at" : "2025-03-20T10:15:18Z"
  }
}