Access Restriction Bypass Affecting notebook package, versions [,6.4.12)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (23rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Access Restriction Bypass vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-NOTEBOOK-2928995
  • published17 Jun 2022
  • disclosed16 Jun 2022
  • creditrashley-iqt

Introduced: 16 Jun 2022

CVE-2022-29238  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

Upgrade notebook to version 6.4.12 or higher.

Overview

notebook is a web application that allows you to create and share documents that contain live code, equations, visualizations, and explanatory text.

Affected versions of this package are vulnerable to Access Restriction Bypass. When a fully authenticated request is sent to the notebook server which is configured with ContentsManager.allow_hidden = False, it is possible to access arbitrary hidden files or arbitrary files in hidden directories.

Workarounds:

  1. Do not run the notebook server in a directory with hidden files, use subdirectories.

  2. Use a custom ContentsManager with additional checks for self.is_hidden(path) prior to completing actions.

CVSS Scores

version 3.1