CVE-2026-49119: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in gradio-app gradio
Gradio versions prior to 6.16.0 contain a path traversal vulnerability in the FileExplorer component's preprocess() method. This flaw allows unauthenticated attackers to bypass the configured root directory by using crafted path segments with directory traversal sequences or absolute paths. As a result, attackers can cause the root directory prefix to be discarded, enabling arbitrary file reads or exposure of sensitive files outside the intended directory. The vulnerability has a high severity score of 8.7 and does not require authentication or user interaction to exploit.
AI Analysis
Technical Summary
CVE-2026-49119 is a path traversal vulnerability in gradio-app's gradio product affecting versions before 6.16.0. The issue exists in the FileExplorer component's preprocess() method, where improper handling of path segments allows attackers to escape the intended root directory. By supplying crafted path segments containing directory traversal sequences or absolute paths, attackers can manipulate os.path.join to discard the root_dir prefix entirely. This leads to unauthorized access to arbitrary files outside the restricted directory, potentially exposing sensitive information. The vulnerability is remotely exploitable without authentication or user interaction, reflected by a CVSS 4.0 score of 8.7 (high severity). No official patch or remediation guidance is currently documented.
Potential Impact
The vulnerability allows unauthenticated remote attackers to read arbitrary files on the system running vulnerable versions of gradio by escaping the configured root directory. This can lead to exposure of sensitive files outside the intended directory, posing confidentiality risks. There is no indication of privilege escalation, integrity, or availability impact beyond unauthorized file disclosure.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider restricting access to the FileExplorer component or deploying compensating controls to limit exposure. Monitor vendor channels for updates regarding an official fix or mitigation.
CVE-2026-49119: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in gradio-app gradio
Description
Gradio versions prior to 6.16.0 contain a path traversal vulnerability in the FileExplorer component's preprocess() method. This flaw allows unauthenticated attackers to bypass the configured root directory by using crafted path segments with directory traversal sequences or absolute paths. As a result, attackers can cause the root directory prefix to be discarded, enabling arbitrary file reads or exposure of sensitive files outside the intended directory. The vulnerability has a high severity score of 8.7 and does not require authentication or user interaction to exploit.
CVSS v4.0
Score 8.7high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-49119 is a path traversal vulnerability in gradio-app's gradio product affecting versions before 6.16.0. The issue exists in the FileExplorer component's preprocess() method, where improper handling of path segments allows attackers to escape the intended root directory. By supplying crafted path segments containing directory traversal sequences or absolute paths, attackers can manipulate os.path.join to discard the root_dir prefix entirely. This leads to unauthorized access to arbitrary files outside the restricted directory, potentially exposing sensitive information. The vulnerability is remotely exploitable without authentication or user interaction, reflected by a CVSS 4.0 score of 8.7 (high severity). No official patch or remediation guidance is currently documented.
Potential Impact
The vulnerability allows unauthenticated remote attackers to read arbitrary files on the system running vulnerable versions of gradio by escaping the configured root directory. This can lead to exposure of sensitive files outside the intended directory, posing confidentiality risks. There is no indication of privilege escalation, integrity, or availability impact beyond unauthorized file disclosure.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider restricting access to the FileExplorer component or deploying compensating controls to limit exposure. Monitor vendor channels for updates regarding an official fix or mitigation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-05-27T17:40:12.737Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4568cf27e9c79719fe3668
Added to database: 07/01/2026, 19:21:51 UTC
Last enriched: 07/01/2026, 19:36:18 UTC
Last updated: 07/01/2026, 19:36:18 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.