Skip to content
MediumVulnerability

CVE-2023-51449: Gradio file traversal through the /file route

Identifier
CVE-2023-51449
Published
Record updated
View JSON
Affected
  • gradio < 4.11.0
Fixed in
4.11.0
  • released December 19, 2023, 3 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
28.3%

Summary

Versions of the Gradio Python package before 4.11.0 contained a flaw in the `/file` route that allowed file traversal. On a Gradio app with a public URL, such as one created with `share=True` or hosted on Hugging Face Spaces, an attacker who knew the paths of files could read arbitrary files on the machine.

Mitigation

Fixed in 4.11.0.