CVE-2020-7692: Google oauth client Improper Authorization Vulnerability

HIGH
Advisory Identifier: GHSA-f263-c949-w85g
CVSS 7.4
CWE-862 CWE-863
Published
Advisory Summary

CVE-2020-7692 is a HIGH (CVSS 7.4) improper authorization vulnerability (CWE-862: Missing Authorization) affecting Google oauth client libraries in the Maven ecosystem. The issue involves improper authorization in google oauth client. Remediation is available by upgrading affected packages to version 1.31.0.

CVE-2020-7692 at a Glance

CVE Identifier CVE-2020-7692
GHSA Identifier GHSA-f263-c949-w85g
Severity HIGH
CVSS v3.1 Base Score 7.4
CWE Classification CWE-862: Missing Authorization
Affected Product Google oauth client
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.4

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

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

How to Fix CVE-2020-7692

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

com.google.oauth-client:google-oauth-client fixed: 1.31.0
<dependency>
    <groupId>com.google.oauth-client</groupId>
    <artifactId>google-oauth-client</artifactId>
    <version>1.31.0</version>
</dependency>
Verify Direct and Transitive Dependencies

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

mvn dependency:tree -Dincludes=com.google.oauth-client

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2020-7692, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=com.google.oauth-client

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

Note: The mvn dependency:tree -Dincludes=com.google.oauth-client command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-862: Missing Authorization, where the product does not perform an authorization check when an actor attempts to access a resource or perform an action. In Google oauth client, 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

PKCE support is not implemented in accordance with the RFC for OAuth 2.0 for Native Apps. Without the use of PKCE, the authorization code returned by an authorization server is not enough to guarantee that the client that issued the initial authorization request is the one that will be authorized. An attacker is able to obtain the authorization code using a malicious app on the client-side and use it to gain authorization to the protected resource. This affects the package com.google.oauth-client:google-oauth-client before 1.31.0.

CVE-2020-7692 Affected Google oauth client Versions

1 component(s)
Fixed Versions:
1.31.0
Product / Package Ecosystem Affected Versions Fixed Version
com.google.oauth-client:google-oauth-client
Maven
< 1.31.0
1.31.0

References

Frequently Asked Questions

What is CVE-2020-7692?
CVE-2020-7692 is a security vulnerability in Google oauth client involving Improper Authorization in Google OAuth Client under CWE-862: Missing Authorization.
Which Google oauth client versions are affected?
Affected versions include releases prior to 1.31.0 across affected packages: com.google.oauth-client:google-oauth-client.
What version fixes CVE-2020-7692?
Upgrading to 1.31.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is google-oauth-client affected?
Yes, com.google.oauth-client:google-oauth-client is affected in releases prior to 1.31.0. Upgrade your dependency to 1.31.0 or later.
What is the CVSS score of CVE-2020-7692?
CVE-2020-7692 has a CVSS v3.1 base score of 7.4 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2020-7692?
CVE-2020-7692 is classified under CWE-862: Missing Authorization (The product does not perform an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Maven dependencies for CVE-2020-7692?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.google.oauth-client'. 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-f263-c949-w85g",
  "modified" : "2021-09-28T16:17:25Z",
  "published" : "2021-09-28T16:16:52Z",
  "aliases" : [ "CVE-2020-7692" ],
  "summary" : "Improper Authorization in Google OAuth Client",
  "details" : "PKCE support is not implemented in accordance with the RFC for OAuth 2.0 for Native Apps. Without the use of PKCE, the authorization code returned by an authorization server is not enough to guarantee that the client that issued the initial authorization request is the one that will be authorized. An attacker is able to obtain the authorization code using a malicious app on the client-side and use it to gain authorization to the protected resource. This affects the package com.google.oauth-client:google-oauth-client before 1.31.0.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.google.oauth-client:google-oauth-client"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.31.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-7692"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/googleapis/google-oauth-java-client/issues/469"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/googleapis/google-oauth-java-client/commit/13433cd7dd06267fc261f0b1d4764f8e3432c824"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/googleapis/google-oauth-java-client"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r3db6ac73e0558d64f0b664f2fa4ef0a865e57c5de20f8321d3b48678@%3Ccommits.druid.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/reae8909b264d1103f321b9ce1623c10c1ddc77dba9790247f2c0c90f@%3Ccommits.druid.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JAVA-COMGOOGLEOAUTHCLIENT-575276"
  }, {
    "type" : "WEB",
    "url" : "https://tools.ietf.org/html/rfc7636%23section-1"
  }, {
    "type" : "WEB",
    "url" : "https://tools.ietf.org/html/rfc8252%23section-8.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-862", "CWE-863" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-09-28T16:16:34Z",
    "nvd_published_at" : "2020-07-09T14:15:00Z"
  }
}