VDB

CVE-2024-41942

CVE-2024-41942 PUBLISHED CVSS 7.2 HIGH

JupyterHub has a privilege escalation vulnerability with the `admin:users` scope

Reported by github_m · Published August 8, 2024

jupyterhub is fixed in 99e2720b0fc626cbeeca3c6337f917fdacfaa428, 5.1.0 and 4.1.6 (PyPI)

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. In 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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
jupyterhubPyPI99e2720b0fc626cbeeca3c6337f917fdacfaa428, 5.1.0, 4.1.6
jupyterhubBitnami5.1.0, 4.1.6

Risk scores

CVSS 3.1
7.2
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
jupyterhubjupyterhub< 4.1.6, >= 5.0.0, < 5.1.0
jupyterhubjupyterhub0, 5.0.0
wolfipy3-jupyterhub0
chainguardpy3-jupyterhub0
PyPIjupyterhub0, 5.0.0

Timeline

  • Aug 8, 2024 CVE Published
  • Aug 8, 2024 CVE Updated
  • Aug 8, 2024 PoC Published
  • Aug 13, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (7 in total, the first dated here)
  • Jan 7, 2026 Security Advisory

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-41942
vulnetix vdb fixes CVE-2024-41942

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-41942/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›