CVE-2024-1728
HIGH 7.5CVSS 3.1Gradio allows users to access arbitrary files
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.
- Published
- 10 Apr 2024
- Last modified
- 27 Oct 2026
- Assigned by
- security@huntr.dev
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-m842-4qm8-7gpqPYSEC-2026-345
- Sources
- NVDJSONOSV GHSA-m842-4qm8-7gpqJSONOSV PYSEC-2026-345JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| OSV | PyPA | CVSS 4.0 | CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gradio_project | gradiocpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:* |
>= 4.18.0, < 4.19.2 | 4.19.2 |
| OSV | PyPI | gradio | < 4.19.2 | 4.19.2 |
References
- https://github.com/gradio-app/gradio/commit/16fbe9cd0cffa9f2a824a0165beb43446114eec7 · Patch, WEB
- https://huntr.com/bounties/9bb33b71-7995-425d-91cc-2c2a2f2a068a · Exploit, Third Party Advisory, WEB
- https://github.com/gradio-app/gradio/security/advisories/GHSA-m842-4qm8-7gpq · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-1728 · ADVISORY
- https://github.com/gradio-app/gradio · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2026-345.yaml · WEB
- https://pypi.org/project/gradio · WEB, PACKAGE
- https://github.com/advisories/GHSA-m842-4qm8-7gpq · ADVISORY
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 10 Apr 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Jun 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 25 Sep 2024)