Vulnerability Details : CVE-2021-43831
Potential exploit
Gradio is an open source framework for building interactive machine learning models and demos. In versions prior to 2.5.0 there is a vulnerability that affects anyone who creates and publicly shares Gradio interfaces. File paths are not restricted and users who receive a Gradio link can access any files on the host computer if they know the file names or file paths. This is limited only by the host operating system. Paths are opened in read only mode. The problem has been patched in gradio 2.5.0.
Vulnerability category: Directory traversal
Products affected by CVE-2021-43831
- cpe:2.3:a:gradio_project:gradio:*:*:*:*:*:python:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-43831
30.34%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 96 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-43831
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
3.5
|
LOW | AV:N/AC:M/Au:S/C:P/I:N/A:N |
6.8
|
2.9
|
NIST | |
7.7
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N |
3.1
|
4.0
|
NIST | |
7.7
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N |
3.1
|
4.0
|
GitHub, Inc. |
CWE ids for CVE-2021-43831
-
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.Assigned by:
- nvd@nist.gov (Primary)
- security-advisories@github.com (Secondary)
References for CVE-2021-43831
-
https://github.com/gradio-app/gradio/security/advisories/GHSA-rhq2-3vr9-6mcr
Files on the host computer can be accessed from the Gradio interface · Advisory · gradio-app/gradio · GitHubExploit;Third Party Advisory
-
https://github.com/gradio-app/gradio/commit/41bd3645bdb616e1248b2167ca83636a2653f781
secure path hotfix · gradio-app/gradio@41bd364 · GitHubPatch;Third Party Advisory
Jump to