Skip to main content
Public proof of conceptFix available

CVE-2024-1728

A public proof of concept exists; no exploitation attested.

  • Published2024-04-10
  • Fixed in4.19.2
  • WeaknessCWE-22

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

gradio-app/gradio is vulnerable to a local file inclusion vulnerability due to improper validation of user-supplied input in the UploadButton component. Attackers can exploit this vulnerability to read arbitrary files on the filesystem, such as private SSH keys, by manipulating the file path in the request to the `/queue/join` endpoint. This issue could potentially lead to remote code execution. The vulnerability is present in the handling of file upload paths, allowing attackers to redirect file uploads to unintended locations on the server.

Timeline

dates in UTC
  1. 2024-04-1017:15CVE publishedNVD

Versions per branch

NVD · OSV · CISA-ADP
Gradio project gradio
BranchAffectedFixed in
4.x≥ 4.18.0, < 4.19.24.19.2
4.19< 4.19.24.19.2
—all versionsno fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As @huntr_ai, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • gradio-app/gradio
    Affected
    • < 4.19.2fixed in 4.19.2custom

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-04-16

Fix

  1. Update Gradio project gradio to 4.19.2

Advisories and patches

Detection

read 2026-11-20 11:10 UTC
Nuclei template
available
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published
2024-04-10
Last Modified
2026-06-17
NVD status
Analyzed

Frequently asked questions

What is CVE-2024-1728?

gradio-app/gradio is vulnerable to a local file inclusion vulnerability due to improper validation of user-supplied input in the UploadButton component. Attackers can exploit this vulnerability to read arbitrary files on the filesystem, such as private SSH keys, by manipulating the file path in the request to the `/queue/join` endpoint. This issue could potentially lead to remote code execution. The vulnerability is present in the handling of file upload paths, allowing attackers to redirect file uploads to unintended locations on the server.

Is CVE-2024-1728 actively exploited?

A proof-of-concept exploit exists for CVE-2024-1728, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2024-1728?

CVE-2024-1728 has a CVSS v3 base score of 7.5 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.

Running gradio? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record