CVE-2022-29238Forced Browsing in Jupyter Notebook
Jupyter Notebook is a web-based notebook environment for interactive computing. Prior to version 6.4.12, authenticated requests to the notebook server with `ContentsManager.allow_hidden = False` only prevented listing the contents of hidden directories, not accessing individual hidden files or files in hidden directories (i.e. hidden files were 'hidden' but not 'inaccessible'). This could lead to notebook configurations allowing authenticated access to files that may reasonably be expected to be disallowed. Because fully authenticated requests are required, this is of relatively low impact. But if a server's root directory contains sensitive files whose only protection from the server is being hidden (e.g. `~/.ssh` while serving $HOME), then any authenticated requests could access files if their names are guessable. Such contexts also necessarily have full access to the server and therefore execution permissions, which also generally grants access to all the same files. So this does not generally result in any privilege escalation or increase in information access, only an additional, unintended means by which the files could be accessed. Version 6.4.12 contains a patch for this issue. There are currently no known workarounds.
What to do
Fixed builds are available from Alpine, Debian, PyPI, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | jupyter-notebook | Fixed | 6.4.8-1ubuntu0.1 | UBUNTU-CVE-2022-29238 |
| Ubuntu 20.04 | jupyter-notebook | Fixed | 6.0.3-2ubuntu0.1 | UBUNTU-CVE-2022-29238 |
| Ubuntu 18.04 | jupyter-notebook | Not affected vulnerable_code_not_present | ||
| Debian 14 | jupyter-notebook | Fixed | 6.4.12-1 | DEBIAN-CVE-2022-29238 |
| Debian 13 | jupyter-notebook | Fixed | 6.4.12-1 | DEBIAN-CVE-2022-29238 |
| Debian 12 | jupyter-notebook | Fixed | 6.4.12-1 | DEBIAN-CVE-2022-29238 |
| Alpine Linux 3.24 | jupyter-notebook | Fixed | 6.4.12-r0 | ALPINE-CVE-2022-29238 |
| Alpine Linux 3.23 | jupyter-notebook | Fixed | 6.4.12-r0 | ALPINE-CVE-2022-29238 |
| Alpine Linux 3.22 | jupyter-notebook | Fixed | 6.4.12-r0 | ALPINE-CVE-2022-29238 |
| Alpine Linux 3.21 | jupyter-notebook | Fixed | 6.4.12-r0 | ALPINE-CVE-2022-29238 |
| Alpine Linux 3.20 | jupyter-notebook | Fixed | 6.4.12-r0 | ALPINE-CVE-2022-29238 |
| Alpine Linux 3.19 | jupyter-notebook | Fixed | 6.4.12-r0 | ALPINE-CVE-2022-29238 |
| Alpine Linux 3.18 | jupyter-notebook | Fixed | 6.4.12-r0 | ALPINE-CVE-2022-29238 |
| Alpine Linux 3.17 | jupyter-notebook | Fixed | 6.4.12-r0 | ALPINE-CVE-2022-29238 |
| PyPI library | notebook | Fixed | 6.4.12 | PYSEC-2022-212 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- jupyter notebook: affected: < 6.4.12
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.