Miggo Logo

CVE-2023-41626: Gradio arbitrary file upload vulnerability

4.8

CVSS Score
3.1

Basic Information

EPSS Score
0.25724%
Published
9/16/2023
Updated
11/12/2023
KEV Status
No
Technology
TechnologyPython

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
gradiopip<= 3.27.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability explicitly references the /upload interface as the attack vector. In web frameworks like Gradio, route handlers are typically mapped to specific functions. The combination of CWE-434 (unrestricted file upload) and the advisory's description of temporary directory uploads points to the file upload handler function as the vulnerable component. While exact code isn't available, Gradio's architecture patterns and the vulnerability description strongly suggest the upload_file route handler in routes.py is responsible for insecure file handling.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

*r**io v*.**.* w*s *is*ov*r** to *ont*in *n *r*itr*ry *il* uplo** vuln*r**ility vi* t** `/uplo**` int*r****.

Reasoning

T** vuln*r**ility *xpli*itly r***r*n**s t** `/uplo**` int*r**** *s t** *tt**k v**tor. In w** *r*m*works lik* *r**io, rout* **n*l*rs *r* typi**lly m*pp** to sp**i*i* *un*tions. T** *om*in*tion o* *W*-*** (unr*stri*t** *il* uplo**) *n* t** **visory's *