CVE-2018-7206: Oauthenticator JupyterHub OAuthenticator Elevation Of Privilege Vulnerability

HIGH
Advisory Identifier: GHSA-8x3m-m3x9-54fj
CVSS 8.8
Published
Advisory Summary

CVE-2018-7206 is a HIGH (CVSS 8.8) jupyterhub oauthenticator elevation of privilege vulnerability (General Security Weakness) affecting Oauthenticator libraries in the PyPI ecosystem. The issue involves jupyterhub oauthenticator elevation of privilege. Remediation is available by upgrading affected packages to version 0.6.2, 0.7.3.

CVE-2018-7206 at a Glance

CVE Identifier CVE-2018-7206
GHSA Identifier GHSA-8x3m-m3x9-54fj
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification General Security Weakness
Affected Product Oauthenticator
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2018-7206

To remediate this vulnerability, upgrade all affected Oauthenticator dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

oauthenticator fixed: 0.6.2
pip install oauthenticator>=0.6.2
oauthenticator fixed: 0.7.3
pip install oauthenticator>=0.7.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show oauthenticator

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2018-7206, inspect your installed packages using pip:

pip show oauthenticator

Analyze the terminal output to locate any version of Oauthenticator in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.2), your application is affected.

Note: The pip show oauthenticator command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Oauthenticator, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

An issue was discovered in Project Jupyter JupyterHub OAuthenticator 0.6.x before 0.6.2 and 0.7.x before 0.7.3. When using JupyterHub with GitLab group whitelisting for access control, group membership was not checked correctly, allowing members not in the whitelisted groups to create accounts on the Hub. (Users were not allowed to access other users' accounts, but could create their own accounts on the Hub linked to their GitLab account. GitLab authentication not using gitlab_group_whitelist is unaffected. No other Authenticators are affected.)

CVE-2018-7206 Affected Oauthenticator Versions

2 component(s)
Fixed Versions:
0.6.20.7.3
Product / Package Ecosystem Affected Versions Fixed Version
oauthenticator
PyPI
≥ 0.6
< 0.6.2
0.6.2
oauthenticator
PyPI
≥ 0.7
< 0.7.3
0.7.3

References

Frequently Asked Questions

What is CVE-2018-7206?
CVE-2018-7206 is a security vulnerability in Oauthenticator involving JupyterHub OAuthenticator elevation of privilege under General Security Weakness.
Which Oauthenticator versions are affected?
Affected versions include releases prior to 0.6.2, 0.7.3 across affected packages: oauthenticator.
What version fixes CVE-2018-7206?
Upgrading to 0.6.2, 0.7.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is oauthenticator affected?
Yes, oauthenticator is affected in releases prior to 0.6.2, 0.7.3. Upgrade your dependency to 0.6.2, 0.7.3 or later.
What is the CVSS score of CVE-2018-7206?
CVE-2018-7206 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2018-7206?
CVE-2018-7206 is classified under General Security Weakness.
How can I check PyPI dependencies for CVE-2018-7206?
Run the dependency tree command: 'pip show oauthenticator'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8x3m-m3x9-54fj",
  "modified" : "2024-11-22T18:17:03Z",
  "published" : "2022-05-13T01:12:09Z",
  "aliases" : [ "CVE-2018-7206" ],
  "summary" : "JupyterHub OAuthenticator elevation of privilege",
  "details" : "An issue was discovered in Project Jupyter JupyterHub OAuthenticator 0.6.x before 0.6.2 and 0.7.x before 0.7.3. When using JupyterHub with GitLab group whitelisting for access control, group membership was not checked correctly, allowing members not in the whitelisted groups to create accounts on the Hub. (Users were not allowed to access other users' accounts, but could create their own accounts on the Hub linked to their GitLab account. GitLab authentication not using gitlab_group_whitelist is unaffected. No other Authenticators are affected.)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "oauthenticator"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.6"
      }, {
        "fixed" : "0.6.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "oauthenticator"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.7"
      }, {
        "fixed" : "0.7.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-7206"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jupyterhub/oauthenticator/commit/1845c0e4b1bff3462c91c3108c85205acd3c75a2"
  }, {
    "type" : "WEB",
    "url" : "https://blog.jupyter.org/security-fix-for-jupyterhub-gitlab-oauthenticator-7b14571d1f76"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-8x3m-m3x9-54fj"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jupyterhub/oauthenticator"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jupyterhub/oauthenticator/blob/8499dc2/CHANGELOG.md#073---2018-02-16"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/jupyterhub/PYSEC-2018-151.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/oauthenticator/PYSEC-2018-68.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-09-12T16:17:03Z",
    "nvd_published_at" : "2018-02-18T03:29:00Z"
  }
}