{"id":"CVE-2023-48311","aliases":["CVE-2023-48311","GHSA-hfgr-h3vc-p6c2","PYSEC-2026-1312"],"related":[],"kind":"vulnerability","state":"published","title":"Any image allowed by default","summary":"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.allowed_images` 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.allowed_images` to a non-empty list containing only the default image will result in the intended default behavior.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.allowed_images` 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.allowed_images` to a non-empty list containing only the default image will result in the intended default behavior.","source":"cvelist"},{"lang":"en","text":"### 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```","format":"markdown","source":"ghsa"},{"lang":"es","text":"dockerspawner es una herramienta para generar servidores de usuario único de JupyterHub en contenedores Docker. Los usuarios de implementaciones de JupyterHub que ejecutan DockerSpawner a partir de 0.11.0 sin especificar la configuración `DockerSpawner.allowed_images` permiten a los usuarios _any_ pullable imagen acoplable extraíble, en lugar de limitarse a una sola imagen configurada, como se pretende. Este problema se solucionó en el commit `3ba4b665b` que se incluyó en la versión 13 de dockerspawner. Se recomienda a los usuarios que actualicen. Los usuarios que no puedan actualizar deben configurar explícitamente `DockerSpawner.allowed_images` en una lista no vacía que contenga solo la imagen predeterminada, lo que dará como resultado el comportamiento predeterminado previsto.","source":"nvd"}],"published":"2023-12-08T14:42:55.000Z","modified":"2026-07-07T17:56:53.774Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"version":">= 0.11.0, < 13.0","status":"affected"}],"vendor":"jupyterhub","product":"dockerspawner","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.11.0","status":"affected","fixed":"13.0.0"}],"ecosystem":"PyPI","package":"dockerspawner","purl":"pkg:pypi/dockerspawner","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.11.0","fixed":"13.0"}],"vendor":"jupyter","product":"dockerspawner","cpe":"cpe:2.3:a:jupyter:dockerspawner:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0.11.0","status":"affected","fixed":"13.0.0"}],"ecosystem":"PyPI","package":"dockerspawner","purl":"pkg:pypi/dockerspawner","source":"pysec"}],"references":[{"url":"https://github.com/jupyterhub/dockerspawner/security/advisories/GHSA-hfgr-h3vc-p6c2","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/jupyterhub/dockerspawner/commit/3ba4b665b6ca6027ea7a032d7ca3eab977574626","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-48311","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/jupyterhub/dockerspawner","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/dockerspawner","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-hfgr-h3vc-p6c2","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-48311","url":"https://www.cve.org/CVERecord?id=CVE-2023-48311","licence":"CVE Terms of Use","modified":"2024-08-02T21:23:39.501Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hfgr-h3vc-p6c2","url":"https://github.com/advisories/GHSA-hfgr-h3vc-p6c2","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:53.774Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-48311","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-48311","licence":"Public domain","modified":"2026-06-17T06:33:59.013Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1312","url":"https://osv.dev/vulnerability/PYSEC-2026-1312","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:38.918Z"}],"updatedAt":"2026-11-25T22:58:31.167Z","epss":{"score":0.00638,"percentile":0.51924,"date":"2026-12-01T12:00:22.000Z"}}