CVE-2023-6572: Gradio Gradio Exposure Of Sensitive Information Vulnerability

CRITICAL
Advisory Identifier: GHSA-gqvf-3hgp-5hxv
CVSS 9.6
CWE-200 CWE-77
Published
Advisory Summary

CVE-2023-6572 is a CRITICAL (CVSS 9.6) gradio exposure of sensitive information vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Gradio libraries in the PyPI ecosystem. The issue involves gradio exposure of sensitive information to an unauthorized actor vulnerability. Remediation is available by upgrading affected packages to version 4.14.0.

CVE-2023-6572 at a Glance

CVE Identifier CVE-2023-6572
GHSA Identifier GHSA-gqvf-3hgp-5hxv
Severity CRITICAL
CVSS v3.1 Base Score 9.6
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Gradio
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 9.6

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

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

How to Fix CVE-2023-6572

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: 4.14.0
pip install gradio>=4.14.0
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-2023-6572, 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 4.14.0), 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. 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

Exposure of Sensitive Information to an Unauthorized Actor in GitHub repository gradio-app/gradio prior to main.

CVE-2023-6572 Affected Gradio Versions

1 component(s)
Fixed Versions:
4.14.0
Product / Package Ecosystem Affected Versions Fixed Version
gradio
PyPI
< 4.14.0
4.14.0

References

Frequently Asked Questions

What is CVE-2023-6572?
CVE-2023-6572 is a security vulnerability in Gradio involving Gradio Exposure of Sensitive Information to an Unauthorized Actor vulnerability under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Gradio versions are affected?
Affected versions include releases prior to 4.14.0 across affected packages: gradio.
What version fixes CVE-2023-6572?
Upgrading to 4.14.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is gradio affected?
Yes, gradio is affected in releases prior to 4.14.0. Upgrade your dependency to 4.14.0 or later.
What is the CVSS score of CVE-2023-6572?
CVE-2023-6572 has a CVSS v3.1 base score of 9.6 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N.
What CWE is associated with CVE-2023-6572?
CVE-2023-6572 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check PyPI dependencies for CVE-2023-6572?
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-gqvf-3hgp-5hxv",
  "modified" : "2024-02-28T19:07:03Z",
  "published" : "2023-12-14T15:30:22Z",
  "aliases" : [ "CVE-2023-6572" ],
  "summary" : "Gradio Exposure of Sensitive Information to an Unauthorized Actor vulnerability",
  "details" : "Exposure of Sensitive Information to an Unauthorized Actor in GitHub repository gradio-app/gradio prior to main.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "gradio"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.14.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-6572"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gradio-app/gradio/commit/5b5af1899dd98d63e1f9b48a93601c2db1f56520"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/gradio-app/gradio"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2023-255.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.com/bounties/21d2ff0c-d43a-4afd-bb4d-049ee8da5b5c"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-77" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-28T19:07:03Z",
    "nvd_published_at" : "2023-12-14T14:15:46Z"
  }
}