{"id":"CVE-2024-1728","aliases":["CVE-2024-1728","GHSA-m842-4qm8-7gpq","PYSEC-2026-345"],"related":[],"kind":"vulnerability","state":"published","title":"Local File Inclusion in gradio-app/gradio","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nThis vulnerability allows users of Gradio applications that have a public link (such as on Hugging Face Spaces) to access files on the machine hosting the Gradio application. This involves intercepting and modifying the network requests made by the Gradio app to the server. \n\n### Patches\nYes, the problem has been patched in Gradio version 4.19.2 or higher. We have no knowledge of this exploit being used against users of Gradio applications, but we encourage all users to upgrade to Gradio 4.19.2 or higher.\n\nFixed in: https://github.com/gradio-app/gradio/commit/16fbe9cd0cffa9f2a824a0165beb43446114eec7\nCVE: https://nvd.nist.gov/vuln/detail/CVE-2024-1728","format":"markdown","source":"ghsa"},{"lang":"es","text":"gradio-app/gradio es vulnerable a una vulnerabilidad de inclusión de archivos locales debido a una validación incorrecta de la entrada proporcionada por el usuario en el componente UploadButton. Los atacantes pueden aprovechar esta vulnerabilidad para leer archivos arbitrarios en el sistema de archivos, como claves SSH privadas, manipulando la ruta del archivo en la solicitud al endpoint `/queue/join`. Este problema podría conducir potencialmente a la ejecución remota de código. La vulnerabilidad está presente en el manejo de las rutas de carga de archivos, lo que permite a los atacantes redirigir las cargas de archivos a ubicaciones no deseadas en el servidor.","source":"nvd"}],"published":"2024-04-10T17:07:56.020Z","modified":"2026-10-27T16:45:03.549Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"4.19.2","status":"affected"}],"vendor":"gradio-app","product":"gradio-app/gradio","source":"cvelist"},{"ranges":[{"version":"-","status":"affected"}],"vendor":"gradio_project","product":"gradio","cpe":"cpe:2.3:a:gradio_project:gradio:-:*:*:*:*:python:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.19.2"}],"ecosystem":"PyPI","package":"gradio","purl":"pkg:pypi/gradio","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.18.0","fixed":"4.19.2"}],"vendor":"gradio_project","product":"gradio","cpe":"cpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.19.2"}],"ecosystem":"PyPI","package":"gradio","purl":"pkg:pypi/gradio","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/9bb33b71-7995-425d-91cc-2c2a2f2a068a","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/gradio-app/gradio/commit/16fbe9cd0cffa9f2a824a0165beb43446114eec7","tags":["patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/gradio-app/gradio/security/advisories/GHSA-m842-4qm8-7gpq","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-1728","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/gradio-app/gradio","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2026-345.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/gradio","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-m842-4qm8-7gpq","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-05-15T18:41:26.382Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-1728","url":"https://www.cve.org/CVERecord?id=CVE-2024-1728","licence":"CVE Terms of Use","modified":"2024-08-01T18:48:22.046Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m842-4qm8-7gpq","url":"https://github.com/advisories/GHSA-m842-4qm8-7gpq","licence":"CC-BY-4.0","modified":"2026-10-27T16:45:03.549Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-1728","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-1728","licence":"Public domain","modified":"2026-06-17T07:04:52.987Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-345","url":"https://osv.dev/vulnerability/PYSEC-2026-345","licence":"CC-BY-4.0","modified":"2026-07-01T20:22:53.897Z"}],"updatedAt":"2026-11-25T22:58:39.055Z","epss":{"score":0.85393,"percentile":0.9972,"date":"2026-12-01T12:00:22.000Z"}}