REDHAT-BUG-2466858: Path Traversal
Jupyter Server is the backend for Jupyter web applications. In versions 2.17.0 and earlier, a path traversal vulnerability in the REST API allows an authenticated user to escape the configured rootdir and access sibling directories whose names begin with the same prefix as the rootdir. For example, with a rootdir named "test", the API permits access to a sibling directory named "testtest" through a crafted request to the /api/contents endpoint using encoded path components. An attacker can read, write, and delete files in affected sibling directories. Multi-tenant deployments using predictable naming schemes are particularly at risk, as a user with a directory named "user1" could access directories for user10 through user19 and beyond. A user who can choose a single-character folder name could gain access to a significant number of sibling directories.
Version 2.18.0 contains a fix. As a workaround, ensure folder names do not share a common prefix with any sibling directory.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.18.0 - Configuration
As a workaround, ensure folder names under the configured root_dir do not share a common prefix with any sibling directory to prevent crafted encoded-path requests to /api/contents from escaping the root_dir and gaining read/write/delete access to sibling directories.
Jupyter Server REST API (configured root_dir) root_dir and sibling directory naming scheme = Use folder names that do not share a common prefix with any sibling directory (e.g., avoid sibling names like root_dir+root_dir such as "testtest").
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2466858?
The severity of REDHAT-BUG-2466858 is high, rated at 7.
How do I fix REDHAT-BUG-2466858?
To fix REDHAT-BUG-2466858, upgrade to Jupyter Server version 2.17.1 or later which addresses the path traversal vulnerability.
What is the impact of REDHAT-BUG-2466858?
The impact of REDHAT-BUG-2466858 allows an authenticated user to access unauthorized directories outside the configured root_dir.
Who is affected by REDHAT-BUG-2466858?
Any users running Jupyter Server version 2.17.0 or earlier are affected by REDHAT-BUG-2466858.
What type of vulnerability is REDHAT-BUG-2466858?
REDHAT-BUG-2466858 is classified as a path traversal vulnerability.