# CVE-2024-41942: JupyterHub has a privilege escalation vulnerability with the `admin:users` scope

- Severity: High 7.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 49% of CVEs (2026-12-01)
- Published: 2024-08-08T14:36:44.498Z
- Modified: 2026-09-10T03:50:17.487Z
- Also known as: GHSA-9x4q-3gxw-849f, BIT-JUPYTERHUB-2024-41942, PYSEC-2024-200
- Weaknesses: CWE-274
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- jupyterhub jupyterhub: < 4.1.6; >= 5.0.0, < 5.1.0
- jupyterhub (PyPI): before 4.1.6; from 5.0.0 before 5.1.0; before 99e2720b0fc626cbeeca3c6337f917fdacfaa428; before ff2db557a85b6980f90c3158634bf924063ab8ba
- jupyter jupyterhub: before 4.1.6; 5.0.0
- jupyterhub (Bitnami): before 4.1.6; from 5.0.0 before 5.1.0

## Every score

- GitHub_M: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/jupyterhub/jupyterhub/security/advisories/GHSA-9x4q-3gxw-849f> (advisory, third-party-advisory, web)
- <https://github.com/jupyterhub/jupyterhub/commit/99e2720b0fc626cbeeca3c6337f917fdacfaa428> (fix, patch, web)
- <https://github.com/jupyterhub/jupyterhub/commit/ff2db557a85b6980f90c3158634bf924063ab8ba> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-41942> (advisory, web)
- <https://github.com/jupyterhub/jupyterhub> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/jupyterhub/PYSEC-2024-200.yaml> (web)

## Sources

- CVE List: [CVE-2024-41942](https://www.cve.org/CVERecord?id=CVE-2024-41942), CVE Terms of Use, modified 2024-08-08
- GitHub Advisory Database: [GHSA-9x4q-3gxw-849f](https://github.com/advisories/GHSA-9x4q-3gxw-849f), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-41942](https://nvd.nist.gov/vuln/detail/CVE-2024-41942), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-200](https://osv.dev/vulnerability/PYSEC-2024-200), CC-BY-4.0, modified 2025-01-19
- Bitnami Vulnerability Database: [BIT-JUPYTERHUB-2024-41942](https://osv.dev/vulnerability/BIT-JUPYTERHUB-2024-41942), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-41942 · Whole record: https://cve.day/CVE-2024-41942.json · Rebuilt by cve.day 2026-11-25T22:58:44.145Z
