{"id":"GHSA-hfgr-h3vc-p6c2","summary":"DockerSpawner allows any image by default","details":"### 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","aliases":["CVE-2023-48311","PYSEC-2026-1312"],"modified":"2026-07-07T17:56:53.774103403Z","published":"2023-12-08T14:42:55Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2023-12-08T14:42:55Z","nvd_published_at":"2023-12-08T20:15:07Z","cwe_ids":["CWE-20"]},"references":[{"type":"WEB","url":"https://github.com/jupyterhub/dockerspawner/security/advisories/GHSA-hfgr-h3vc-p6c2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-48311"},{"type":"WEB","url":"https://github.com/jupyterhub/dockerspawner/commit/3ba4b665b6ca6027ea7a032d7ca3eab977574626"},{"type":"PACKAGE","url":"https://github.com/jupyterhub/dockerspawner"}],"affected":[{"package":{"name":"dockerspawner","ecosystem":"PyPI","purl":"pkg:pypi/dockerspawner"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.11.0"},{"fixed":"13.0.0"}]}],"versions":["0.11.0","0.11.1","12.0.0","12.1.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/12/GHSA-hfgr-h3vc-p6c2/GHSA-hfgr-h3vc-p6c2.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"}]}