Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1oZmdyLWgzdmMtcDZjMs4AA3og

DockerSpawner allows any image by default

Impact

Users of JupyterHub deployments running DockerSpawner starting with 0.11.0 without specifying DockerSpawner.allowed_images configuration allow users to launch any pullable image, instead of restricting to only the single configured image, as intended.

Patches

Upgrade to DockerSpawner 13.

Workarounds

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"]
Permalink: https://github.com/advisories/GHSA-hfgr-h3vc-p6c2
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1oZmdyLWgzdmMtcDZjMs4AA3og
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 12 months ago
Updated: 12 months ago


CVSS Score: 4.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Identifiers: GHSA-hfgr-h3vc-p6c2, CVE-2023-48311
References: Repository: https://github.com/jupyterhub/dockerspawner
Blast Radius: 7.4

Affected Packages

pypi:dockerspawner
Dependent packages: 3
Dependent repositories: 52
Downloads: 82,380 last month
Affected Version Ranges: >= 0.11.0, < 13.0.0
Fixed in: 13.0.0
All affected versions: 0.11.0, 0.11.1, 12.0.0, 12.1.0
All unaffected versions: 0.0.1, 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.9.0, 0.9.1, 0.10.0, 13.0.0