Improper access control in Gradio - CVE-2021-43831

 

Improper access control in Gradio - CVE-2021-43831

Published: December 15, 2021 / Updated: April 28, 2026


Vulnerability identifier: #VU128275
CSH Severity: High
CVSS v4: 8.7 [CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-43831
CWE-ID: CWE-284
Exploitation vector: Adjecent network
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to improper access control in static file serving when handling requests for user-specified relative file paths. A remote attacker can request a known relative file path to disclose sensitive information.

Exposure is possible while a publicly shared Gradio link is active.


Affected software

Gradio

How to mitigate CVE-2021-43831

Install security update from vendor's website.

Gradio - update to 2.6.0

External References

Related Security Bulletins