Vulnerability · Published Oct 28, 2021 · Assigned by GitHub_M
CVE-2021-41194Improper Access Control in jupyterhub-firstuseauthenticator
Critical 9.1
In plain English
A critical-severity improper access control in firstuseauthenticator from jupyterhub. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 72% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
FirstUseAuthenticator is a JupyterHub authenticator that helps new users set their password on their first login to JupyterHub. When JupyterHub is used with FirstUseAuthenticator, a vulnerability in versions prior to 1.0.0 allows unauthorized access to any user's account if `create_users=True` and the username is known or guessed. One may upgrade to version 1.0.0 or apply a patch manually to mitigate the vulnerability. For those who cannot upgrade, there is no complete workaround, but a partial mitigation exists. One can disable user creation with `c.FirstUseAuthenticator.create_users = False`, which will only allow login with fully normalized usernames for already existing users prior to jupyterhub-firstuserauthenticator 1.0.0. If any users have never logged in with their normalized username (i.e. lowercase), they will still be vulnerable until a patch or upgrade occurs.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | jupyterhub-firstuseauthenticator | 1.0.0 | GHSA-5xvc-vgmp-jgc3 |
| PyPI | jupyterhub-firstuseauthenticator | 1.0.0 | PYSEC-2021-384 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| jupyterhub | firstuseauthenticator | < 1.0.0 |
Weakness: CWE-284 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
References
- https://github.com/jupyterhub/firstuseauthenticator/security/advisories/GHSA-5xvc-vgmp-jgc3 x_refsource_CONFIRM
- https://github.com/jupyterhub/firstuseauthenticator/pull/38 x_refsource_MISC
- https://github.com/jupyterhub/firstuseauthenticator/pull/38.patch x_refsource_MISC