Read the docs
TI-2024-04594 Aliases CVE-2024-4941GHSA-6v6g-j5fq-hpvw

Local File Inclusion in JSON component in gradio-app/gradio

Priority HIGH 72CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Information disclosure
Confidentiality · integrity · availability
High · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.

Summary

A local file inclusion vulnerability exists in the JSON component of gradio-app/gradio version 4.25. The vulnerability arises from improper input validation in the `postprocess()` function within `gradio/components/json_component.py`, where a user-controlled string is parsed as JSON. If the parsed JSON object contains a `path` key, the specified file is moved to a temporary directory, making it possible to retrieve it later via the `/file=..` endpoint. This issue is due to the `processing_utils.move_files_to_cache()` function traversing any object passed to it, looking for a dictionary with a `path` key, and then copying the specified file to a temporary directory. The vulnerability can be exploited by an attacker to read files on the remote system, posing a significant security risk.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.0083 57th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed gradio-app/gradio (gradio-app): 4.31.4gradio (PyPI): 4.31.3

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
gradio-appgradio-app/gradiobefore 4.31.44.31.4Patch availableCNA
—gradio (PyPI)before 4.31.34.31.3Patch availableGHSA-6v6g-j5fq-hpvw
  • gradio-app/gradio Vendorgradio-app Affected before 4.31.4 Fixed in 4.31.4 Patch available CNA
  • gradio (PyPI) Vendor— Affected before 4.31.3 Fixed in 4.31.3 Patch available GHSA-6v6g-j5fq-hpvw

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:*before 4.31.4Vulnerablegradio-app
  • cpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:* Versions before 4.31.4 Vulnerable ·gradio-app

Remediation

  • Fix · CNA gradio-app/gradio (gradio-app) Fixed in 4.31.4
  • Fix · GHSA-6v6g-j5fq-hpvw gradio (PyPI) Fixed in 4.31.3 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-4941
  2. 2026-10-03 Alias added: GHSA-6v6g-j5fq-hpvw

References

  • TI-2024-26222 Gradio v4.36.1 was discovered to contain a code injection vulnerability via the component… CVSS 3.1CRITICAL 9.8
  • TI-2024-01607 Local File Inclusion in gradio-app/gradio CVSS 3.1HIGH 7.5
  • TI-2024-00889 LFI in Gradio CVSS 3.1CRITICAL 9.4
  • TI-2025-16852 Gradio Blocked Path ACL Bypass Vulnerability CVSS 4.0HIGH 8.7
  • TI-2026-22690 Gradio has SSRF via Malicious `proxy_url` Injection in `gr.load()` Config Processing CVSS 3.1HIGH 8.6
  • TI-2024-09866 Path Traversal in gradio-app/gradio CVSS 3.0HIGH 8.2
See all 49 →

Sources