All reports
Medium

DockerSpawner allows any image by default

Affected versions

Version ranges need review.

Affected versions
>=0.11.0 <13.0.0
Fixed version
13.0.0
Affected versions
>= 0.11.0, < 13.0.0
Fixed version
13.0.0

Exploitation

CVE-2023-48311

Probability of exploitation in the next 30 days: 0.64%

FIRST EPSS · 2026-11-21

Description

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"]

Links