Improper Input Validation Affecting dockerspawner package, versions [0.11.0,13.0.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.64% (49th 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 IDSNYK-PYTHON-DOCKERSPAWNER-6114730
  • published11 Dec 2023
  • disclosed8 Dec 2023
  • creditUnknown

Introduced: 8 Dec 2023

CVE-2023-48311  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade dockerspawner to version 13.0.0 or higher.

Overview

dockerspawner is a Dockerspawner: A custom spawner for Jupyterhub.

Affected versions of this package are vulnerable to Improper Input Validation in the DockerSpawner.allowed_images configuration. This allow users to launch any pullable image, instead of restricting to only the single configured image, as intended.

Workaround

Explicitly setting DockerSpawner.allowed_images to a non-empty list containing only the default image will result in the intended default behavior:


c.DockerSpawner.image = "your-image"
c.DockerSpawner.allowed_images = ["your-image"]

References

CVSS Base Scores

version 3.1