Skip to content

GHSA-gqvf-3hgp-5hxv CVE-2023-6572 PYSEC-2023-255

Gradio Exposure of Sensitive Information to an Unauthorized Actor vulnerability

High PyPI
Severity
9.6 / 10
High · CVSS 3.0
Exploit chance (EPSS)
1.68%
Chance of exploitation in the next 30 days. Higher than 76.88% of scored vulnerabilities.
Known exploited
No
Not in CISA's catalog
Weakness
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')
Fix
4.14.0
Upgrade gradio to this version or later

Description

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

Affected versions

PyPI

PackageVulnerableFixed in
gradio
< 4.14.0
4.14.0
gradio
< 4.14.0
4.14.0

How to fix

Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.

gradio PyPI → 4.14.0

pip
pip install --upgrade "gradio>=4.14.0"
poetry
poetry add "gradio>=4.14.0"
uv
uv add "gradio>=4.14.0"

Severity breakdown

CVSS 3.0 9.6

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

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

Weakness

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 to prevent it
  • Architecture and Design: Compartmentalize the system to have "safe" areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area. Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.

CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')

The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.

How to prevent it
  • Architecture and Design: If at all possible, use library calls rather than external processes to recreate the desired functionality.
  • Implementation: If possible, ensure that all external commands called from the program are statically created.
  • Implementation: Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue." Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.
  • Operation: Run time: Run time policy enforcement may be used in an allowlist fashion to prevent use of any non-sanctioned commands.
  • System Configuration: Assign permissions that prevent the user from accessing/opening privileged files.

References

Timeline

  1. Published
  2. Last updated by the source
  3. Latest EPSS score
AdvisorySeverityWhy it's related
GHSA-j36p-7w88-g82j
Gradio FileExplorer preprocess path traversal allows files outside root_dir to reach callbacks
High Also affects gradio
GHSA-6655-8ph2-63j3
Gradio: Audio cache key ignores metadata when saving numpy audio outputs
Low Also affects gradio
GHSA-7hp7-4p35-3cx2
Gradio contains a cookie injection vulnerability
Medium Also affects gradio
GHSA-jmh7-g254-2cq9
Gradio has SSRF via Malicious `proxy_url` Injection in `gr.load()` Config Processing
High Also affects gradio
GHSA-pfjf-5gxr-995x
Gradio has an Open Redirect in its OAuth Flow
Medium Also affects gradio
GHSA-39mp-8hj3-5c49
Gradio is Vulnerable to Absolute Path Traversal on Windows with Python 3.13+
High Also affects gradio
GHSA-h3h8-3v2v-rg7m
Gradio: Mocked OAuth Login Exposes Server Credentials and Uses Hardcoded Session Secret
Medium Also affects gradio
GHSA-8jw3-6x8j-v96g
Gradio Allows Unauthorized File Copy via Path Manipulation
High Also affects gradio
Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor