CVE-2021-41194
Jupyterhub First Use Authenticator vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
First Use Authenticator. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Jupyterhub First Use Authenticator runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/jupyterhub/firstuseauthenticator/pull/38 · Patch
- github.com/jupyterhub/firstuseauthenticator/pull/38.patch · Patch
- github.com/jupyterhub/firstuseauthenticator/security/advisories/GHSA-5xvc-vgmp-jgc3 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-41194
- github.com/jupyterhub/firstuseauthenticator/pull/38/commits/32b21898fb2b53b1a2e36270de6854
- github.com/jupyterhub/firstuseauthenticator/pull/38/commits/9e200d974e0cb85d828a6afedb8ab9
- github.com/jupyterhub/firstuseauthenticator/commit/953418e2450dbc2d854e332350849533b0ebc7b
- github.com/pypa/advisory-database/tree/main/vulns/jupyterhub-firstuseauthenticator/PYSEC-2
- nvd.nist.gov/vuln/detail/CVE-2021-41194
- cve.org/CVERecord?id=CVE-2021-41194
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.