/ data / vuln_en / gradio / CVE-2024-47868.yaml
CVE-2024-47868.yaml
 1  info:
 2    name: gradio
 3    cve: CVE-2024-47868
 4    summary: Gradio has several components with post-process steps allowing arbitrary file leaks
 5    details: |
 6      This is a data validation vulnerability affecting several Gradio components, which allows arbitrary file leaks through the post-processing step. Attackers can exploit these components by crafting requests that bypass expected input constraints. This issue could lead to sensitive files being exposed to unauthorized users, especially when combined with other vulnerabilities.
 7      
 8      Vulnerable Components:
 9      - String to FileData: DownloadButton, Audio, ImageEditor, Video, Model3D, File, UploadButton.
10      - Complex data to FileData: Chatbot, MultimodalTextbox.
11      - Direct file read in preprocess: Code.
12      - Dictionary converted to FileData: ParamViewer, Dataset.
13      
14      Exploit Scenarios:
15      1. A developer creates a Dropdown list that passes values to a DownloadButton. An attacker bypasses the allowed inputs, sends an arbitrary file path (like `/etc/passwd`), and downloads sensitive files.
16      2. An attacker crafts a malicious payload in a ParamViewer component, leaking sensitive files from a server through the arbitrary file leak.
17    cvss: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
18    severity: MEDIUM
19    security_advise: |
20      1. Upgrade to gradio>=5.0.0
21      2. Review and update all Gradio components to ensure they handle file data securely
22      3. Implement additional input validation to prevent bypassing of expected constraints
23  rule: version < "5.0.0"
24  references:
25    - https://github.com/gradio-app/gradio/security/advisories/GHSA-4q3c-cj7g-jcwf
26    - https://nvd.nist.gov/vuln/detail/CVE-2024-47868
27    - https://github.com/gradio-app/gradio
28    - https://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2024-217.yaml