{"id":"CVE-2024-41942","aliases":["CVE-2024-41942","GHSA-9x4q-3gxw-849f","BIT-JUPYTERHUB-2024-41942","PYSEC-2024-200"],"related":[],"kind":"vulnerability","state":"published","title":"JupyterHub has a privilege escalation vulnerability with the `admin:users` scope","summary":"JupyterHub is software that allows one to create a multi-user server for Jupyter notebooks. Prior to versions 4.1.6 and 5.1.0, if a user is granted the `admin:users` scope, they may escalate their own privileges by making themselves a full admin user. The impact is relatively small in that `admin:users` is already an extremely privileged scope only granted to trusted users.\nIn effect, `admin:users` is equivalent to `admin=True`, which is not intended. Note that the change here only prevents escalation to the built-in JupyterHub admin role that has unrestricted permissions. It does not prevent users with e.g. `groups` permissions from granting themselves or other users permissions via group membership, which is intentional. Versions 4.1.6 and 5.1.0 fix this issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"JupyterHub is software that allows one to create a multi-user server for Jupyter notebooks. Prior to versions 4.1.6 and 5.1.0, if a user is granted the `admin:users` scope, they may escalate their own privileges by making themselves a full admin user. The impact is relatively small in that `admin:users` is already an extremely privileged scope only granted to trusted users.\nIn effect, `admin:users` is equivalent to `admin=True`, which is not intended. Note that the change here only prevents escalation to the built-in JupyterHub admin role that has unrestricted permissions. It does not prevent users with e.g. `groups` permissions from granting themselves or other users permissions via group membership, which is intentional. Versions 4.1.6 and 5.1.0 fix this issue.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nIf a user is granted the `admin:users` scope, they may escalate their own privileges by making themselves a full admin user.\n\n### Details\n\nThe `admin:users` scope allows a user to edit user records:\n\n> admin:users\n>\n> Read, write, create and delete users and their authentication state, not including their servers or tokens.\n>\n> -- https://jupyterhub.readthedocs.io/en/stable/rbac/scopes.html#available-scopes\n\nHowever, this includes making users admins. Admin users are granted scopes beyond `admin:users` making this a mechanism by which granted scopes may be escalated.\n\n### Impact\n\nThe impact is relatively small in that `admin:users` is already an extremely privileged scope only granted to trusted users.\nIn effect, `admin:users` is equivalent to `admin=True`, which is not intended.\n\nNote that the change here only prevents escalation to the built-in JupyterHub admin role that has unrestricted permissions. It does not prevent users with e.g. `groups` permissions from granting themselves or other users permissions via group membership, which is intentional.","format":"markdown","source":"ghsa"},{"lang":"es","text":"JupyterHub es un software que permite crear un servidor multiusuario para portátiles Jupyter. Antes de las versiones 4.1.6 y 5.1.0, si a un usuario se le otorgaba el alcance `admin:users`, podía escalar sus propios privilegios convirtiéndose en un usuario administrador completo. El impacto es relativamente pequeño en el sentido de que \"admin:users\" ya es un ámbito extremadamente privilegiado que solo se otorga a usuarios confiables. En efecto, `admin:users` es equivalente a `admin=True`, lo cual no es lo previsto. Tenga en cuenta que el cambio aquí solo evita la escalada al rol de administrador integrado de JupyterHub que tiene permisos sin restricciones. No impide que los usuarios con, por ejemplo, permisos de \"grupos\" se otorguen permisos a sí mismos o a otros usuarios a través de la membresía en un grupo, lo cual es intencional. Las versiones 4.1.6 y 5.1.0 solucionan este problema.","source":"nvd"}],"published":"2024-08-08T14:36:44.498Z","modified":"2026-09-10T03:50:17.487Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-274"],"affected":[{"ranges":[{"version":"< 4.1.6","status":"affected"},{"version":">= 5.0.0, < 5.1.0","status":"affected"}],"vendor":"jupyterhub","product":"jupyterhub","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.1.6"}],"ecosystem":"PyPI","package":"jupyterhub","purl":"pkg:pypi/jupyterhub","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0","status":"affected","fixed":"5.1.0"}],"ecosystem":"PyPI","package":"jupyterhub","purl":"pkg:pypi/jupyterhub","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.1.6"},{"status":"affected","version":"5.0.0"},{"status":"affected","version":"5.0.0"},{"status":"affected","version":"5.0.0"}],"vendor":"jupyter","product":"jupyterhub","cpe":"cpe:2.3:a:jupyter:jupyterhub:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"99e2720b0fc626cbeeca3c6337f917fdacfaa428"},{"type":"git","status":"affected","fixed":"ff2db557a85b6980f90c3158634bf924063ab8ba"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.1.6"}],"ecosystem":"PyPI","package":"jupyterhub","purl":"pkg:pypi/jupyterhub","repo":"https://github.com/jupyterhub/jupyterhub","source":"pysec"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.1.6"},{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.1.0"}],"ecosystem":"Bitnami","package":"jupyterhub","purl":"pkg:bitnami/jupyterhub","source":"bitnami"}],"references":[{"url":"https://github.com/jupyterhub/jupyterhub/security/advisories/GHSA-9x4q-3gxw-849f","tags":["advisory","third-party-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/jupyterhub/jupyterhub/commit/99e2720b0fc626cbeeca3c6337f917fdacfaa428","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/jupyterhub/jupyterhub/commit/ff2db557a85b6980f90c3158634bf924063ab8ba","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41942","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/jupyterhub/jupyterhub","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/jupyterhub/PYSEC-2024-200.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-08-08T15:16:29.440Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-41942","url":"https://www.cve.org/CVERecord?id=CVE-2024-41942","licence":"CVE Terms of Use","modified":"2024-08-08T15:17:06.179Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9x4q-3gxw-849f","url":"https://github.com/advisories/GHSA-9x4q-3gxw-849f","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:17.487Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-41942","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41942","licence":"Public domain","modified":"2026-06-17T07:48:29.953Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-200","url":"https://osv.dev/vulnerability/PYSEC-2024-200","licence":"CC-BY-4.0","modified":"2025-01-19T16:57:10.916Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-JUPYTERHUB-2024-41942","url":"https://osv.dev/vulnerability/BIT-JUPYTERHUB-2024-41942","licence":"Apache-2.0","modified":"2026-09-08T08:48:23.759Z"}],"updatedAt":"2026-11-25T22:58:44.145Z","epss":{"score":0.0059,"percentile":0.49565,"date":"2026-12-01T12:00:22.000Z"}}