{"id":"CVE-2024-1727","aliases":["CVE-2024-1727","GHSA-48cq-79qq-6f7x","PYSEC-2026-1409"],"related":[],"kind":"vulnerability","state":"published","title":"CSRF Vulnerability in gradio-app/gradio","summary":"A Cross-Site Request Forgery (CSRF) vulnerability in gradio-app/gradio allows attackers to upload multiple large files to a victim's system if they are running Gradio locally. By crafting a malicious HTML page that triggers an unauthorized file upload to the victim's server, an attacker can deplete the system's disk space, potentially leading to a denial of service. This issue affects the file upload functionality as implemented in gradio/routes.py.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A Cross-Site Request Forgery (CSRF) vulnerability in gradio-app/gradio allows attackers to upload multiple large files to a victim's system if they are running Gradio locally. By crafting a malicious HTML page that triggers an unauthorized file upload to the victim's server, an attacker can deplete the system's disk space, potentially leading to a denial of service. This issue affects the file upload functionality as implemented in gradio/routes.py.","source":"cvelist"},{"lang":"en","text":"### Impact\nThis CVE covers the ability of 3rd party websites to access routes and upload files to users running Gradio applications locally.  For example, the malicious owners of [www.dontvisitme.com](http://www.dontvisitme.com/) could put a script on their website that uploads a large file to http://localhost:7860/upload and anyone who visits their website and has a Gradio app will now have that large file uploaded on their computer\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/84802ee6a4806c25287344dce581f9548a99834a\nCVE: https://nvd.nist.gov/vuln/detail/CVE-2024-1727","format":"markdown","source":"ghsa"},{"lang":"es","text":"Para evitar que sitios web maliciosos de terceros realicen solicitudes a aplicaciones de Gradio que se ejecutan localmente, este PR endurece las reglas CORS en torno a las aplicaciones de Gradio. En particular, verifica si el encabezado del host es localhost (o uno de sus alias) y, de ser así, requiere que el encabezado de origen (si está presente) también sea localhost (o uno de sus alias).","source":"nvd"}],"published":"2024-03-21T19:57:39.129Z","modified":"2026-09-10T03:50:13.188Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-352"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"4.19.2","status":"affected"}],"vendor":"gradio-app","product":"gradio-app/gradio","source":"cvelist"},{"ranges":[{"version":"4.16.0","status":"affected"}],"vendor":"gradio_project","product":"gradio","cpe":"cpe:2.3:a:gradio_project:gradio:4.16.0:*:*:*:*:*:*:*","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.16.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/a94d55fb-0770-4cbe-9b20-97a978a2ffff","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/gradio-app/gradio/commit/84802ee6a4806c25287344dce581f9548a99834a","tags":["fix","patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/gradio-app/gradio/security/advisories/GHSA-48cq-79qq-6f7x","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-1727","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/gradio-app/gradio/pull/7503","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/gradio-app/gradio","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/gradio","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-48cq-79qq-6f7x","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-03-25T16:25:33.992Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-1727","url":"https://www.cve.org/CVERecord?id=CVE-2024-1727","licence":"CVE Terms of Use","modified":"2024-08-01T18:48:21.951Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-48cq-79qq-6f7x","url":"https://github.com/advisories/GHSA-48cq-79qq-6f7x","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:13.188Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-1727","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-1727","licence":"Public domain","modified":"2026-06-17T07:04:52.863Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1409","url":"https://osv.dev/vulnerability/PYSEC-2026-1409","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:40.248Z"}],"updatedAt":"2026-11-25T22:58:37.822Z","epss":{"score":0.00352,"percentile":0.30852,"date":"2026-12-01T12:00:22.000Z"}}