CVE-2023-48311: Any image allowed by default
Impact
Users of JupyterHub deployments running DockerSpawner starting with 0.11.0 without specifying DockerSpawner.allowedimages 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.allowedimages to a non-empty list containing only the default image will result in the intended default behavior:
python c.DockerSpawner.image = "your-image" c.DockerSpawner.allowedimages = ["your-image"]
Other sources
dockerspawner is a tool to spawn JupyterHub single user servers in Docker containers. Users of JupyterHub deployments running DockerSpawner starting with 0.11.0 without specifying DockerSpawner.allowedimages configuration allow users to launch any pullable docker image, instead of restricting to only the single configured image, as intended. This issue has been addressed in commit 3ba4b665b which has been included in dockerspawner release version 13. Users are advised to upgrade. Users unable to upgrade should explicitly set DockerSpawner.allowedimages to a non-empty list containing only the default image will result in the intended default behavior.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the vulnerability ID of this vulnerability?
The vulnerability ID of this vulnerability is CVE-2023-48311.
What is the impact of this vulnerability?
The impact of this vulnerability is that users of JupyterHub deployments running DockerSpawner starting with version 0.11.0 without specifying DockerSpawner.allowed_images configuration can launch any pullable image instead of being restricted to only the single configured image.
How can I fix this vulnerability?
To fix this vulnerability, upgrade to DockerSpawner version 13.0.0.
Where can I find more information about this vulnerability?
You can find more information about this vulnerability on the GitHub security advisories page: https://github.com/jupyterhub/dockerspawner/security/advisories/GHSA-hfgr-h3vc-p6c2
What is the CWE ID of this vulnerability?
The CWE ID of this vulnerability is CWE-20.