CVE-2024-41942
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| jupyterhub | PyPI | 99e2720b0fc626cbeeca3c6337f917fdacfaa428, 5.1.0, 4.1.6 |
| jupyterhub | Bitnami | 5.1.0, 4.1.6 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| jupyterhub | jupyterhub | < 4.1.6, >= 5.0.0, < 5.1.0 |
| jupyterhub | jupyterhub | 0, 5.0.0 |
| wolfi | py3-jupyterhub | 0 |
| chainguard | py3-jupyterhub | 0 |
| PyPI | jupyterhub | 0, 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
References
- https://github.com/jupyterhub/jupyterhub/security/advisories/GHSA-9x4q-3gxw-849f x_refsource_CONFIRM
- https://github.com/jupyterhub/jupyterhub/commit/99e2720b0fc626cbeeca3c6337f917fdacfaa428 x_refsource_MISC
- https://github.com/jupyterhub/jupyterhub/commit/ff2db557a85b6980f90c3158634bf924063ab8ba x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2024-41942 advisory
- https://github.com/advisories/GHSA-9x4q-3gxw-849f advisory
- https://github.com/jupyterhub/jupyterhub url
- https://github.com/pypa/advisory-database/tree/main/vulns/jupyterhub/PYSEC-2024-200.yaml advisory