Vulnerability · Published Jun 14, 2022 · Assigned by GitHub_M

CVE-2022-29238Forced Browsing in Jupyter Notebook

Medium 4.3

In plain English

A medium-severity security flaw in notebook from jupyter. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 67% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.3Medium
Exploit odds (30 days)1.2%top 32.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20jupyter-notebook6.4.12-r0ALPINE-CVE-2022-29238
Alpine:v3.21jupyter-notebook6.4.12-r0ALPINE-CVE-2022-29238
Alpine:v3.22jupyter-notebook6.4.12-r0ALPINE-CVE-2022-29238
Alpine:v3.23jupyter-notebook6.4.12-r0ALPINE-CVE-2022-29238
Alpine:v3.24jupyter-notebook6.4.12-r0ALPINE-CVE-2022-29238
Debian:12jupyter-notebook6.4.12-1DEBIAN-CVE-2022-29238
Debian:13jupyter-notebook6.4.12-1DEBIAN-CVE-2022-29238
Debian:14jupyter-notebook6.4.12-1DEBIAN-CVE-2022-29238
PyPInotebook6.4.12PYSEC-2022-212
PyPInotebook6.4.12GHSA-v7vq-3x77-87vg
Ubuntu:22.04:LTSjupyter-notebook6.4.8-1ubuntu0.1UBUNTU-CVE-2022-29238
Ubuntu:22.04:LTSjupyter-notebook6.4.8-1ubuntu0.1USN-5585-1

Affected products (as reported)

VendorProductVersions
jupyter notebook < 6.4.12

Weakness: CWE-425 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

References