{"id":"CVE-2023-48311","aliases":["GHSA-hfgr-h3vc-p6c2","PYSEC-2026-1312"],"title":"DockerSpawner allows any image by default","summary":"DockerSpawner allows any image by default","severity":"medium","cvss":4.3,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","vendor":"dockerspawner","product":"dockerspawner","ecosystem":"pip","affected":["dockerspawner >= 0.11.0, < 13.0.0"],"patched":["dockerspawner 13.0.0"],"published":"2023-12-08","updated":"2026-07-07","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-hfgr-h3vc-p6c2","references":[{"url":"https://github.com/jupyterhub/dockerspawner/security/advisories/GHSA-hfgr-h3vc-p6c2"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-48311"},{"url":"https://github.com/jupyterhub/dockerspawner/commit/3ba4b665b6ca6027ea7a032d7ca3eab977574626"},{"url":"https://github.com/jupyterhub/dockerspawner"}],"tags":["osv","pip"],"epss":0.00638,"epssPercentile":0.48323,"ingestedAt":"2026-07-08T18:25:50.174Z","slug":"CVE-2023-48311","body":"## Overview\n\n### Impact\n\nUsers 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.\n\n### Patches\n\nUpgrade to DockerSpawner 13.\n\n### Workarounds\n\nExplicitly setting `DockerSpawner.allowed_images` to a non-empty list containing only the default image will result in the intended default behavior:\n\n```python\nc.DockerSpawner.image = \"your-image\"\nc.DockerSpawner.allowed_images = [\"your-image\"]\n```\n\n\n## Affected packages\n\n- `dockerspawner >= 0.11.0, < 13.0.0`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `dockerspawner 13.0.0`","depth":"sunlit","depthScore":24,"depthScoreParts":{"impact":23.7,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}