CVE-2021-43831: Files on the host computer can be accessed from the Gradio interface
(updated )
This is a vulnerability that affects anyone who creates and publicly shares Gradio interfaces using gradio<2.4.8
. Because of the way that static files were being served, someone who generated a public Gradio link and shared it with others would potentially be exposing the files on the computer that generated the link, while the link was active. An attacker would be able to view the contents of a file on the computer if they knew the exact relative filepath. We do not have any evidence that this was ever exploited, but we treated the issue seriously and immediately took steps to mitigate it (see below)
References
- github.com/advisories/GHSA-rhq2-3vr9-6mcr
- github.com/gradio-app/gradio
- github.com/gradio-app/gradio/commit/41bd3645bdb616e1248b2167ca83636a2653f781
- github.com/gradio-app/gradio/security/advisories/GHSA-rhq2-3vr9-6mcr
- github.com/pypa/advisory-database/tree/main/vulns/gradio/PYSEC-2021-873.yaml
- nvd.nist.gov/vuln/detail/CVE-2021-43831
Detect and mitigate CVE-2021-43831 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →