CVE-2021-22565: Github.com/google/exposure notifications verification server Insufficient Granularity Of Access Control Vulnerability

MODERATE
Advisory Identifier: GHSA-wx8q-rgfr-cf6v
CVSS 6.5
CWE-284
Published
Advisory Summary

CVE-2021-22565 is a MODERATE (CVSS 6.5) insufficient granularity of access control vulnerability (CWE-284: Improper Access Control) affecting Github.com/google/exposure notifications verification server libraries in the Go ecosystem. The issue involves insufficient granularity of access control in github.com/google/exposure-notifications-verification-server. Remediation is available by upgrading affected packages to version 1.1.2.

CVE-2021-22565 at a Glance

CVE Identifier CVE-2021-22565
GHSA Identifier GHSA-wx8q-rgfr-cf6v
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-284: Improper Access Control
Affected Product Github.com/google/exposure notifications verification server
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.5

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

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

How to Fix CVE-2021-22565

To remediate this vulnerability, upgrade all affected Github.com/google/exposure notifications verification server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/google/exposure-notifications-verification-server fixed: 1.1.2
Upgrade github.com/google/exposure-notifications-verification-server to 1.1.2
Verify Direct and Transitive Dependencies

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

inspect dependencies for github.com/google/exposure-notifications-verification-server

How to Check if You Are Affected

To determine whether your application is affected by CVE-2021-22565, inspect your project dependencies for Github.com/google/exposure notifications verification server:

inspect dependencies for github.com/google/exposure-notifications-verification-server

Analyze the terminal output to locate any version of Github.com/google/exposure notifications verification server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Github.com/google/exposure notifications verification server, 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

### Impact Users or API keys with permission to expire verification codes could have expired codes that belonged to another realm if they guessed the UUID. ### Patches v1.1.2+ ### Workarounds There are no workarounds, and there are no indications this has been exploited in the wild. Verification codes can only be expired by providing their 64-bit UUID, and verification codes are already valid for a very short period of time (thus the UUID rotates frequently). ### For more information Contact exposure-notifications-feedback@google.com

CVE-2021-22565 Affected Github.com/google/exposure notifications verification server Versions

1 component(s)
Fixed Versions:
1.1.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/google/exposure-notifications-verification-server
Go
< 1.1.2
1.1.2

References

Frequently Asked Questions

What is CVE-2021-22565?
CVE-2021-22565 is a security vulnerability in Github.com/google/exposure notifications verification server involving Insufficient Granularity of Access Control in github.com/google/exposure-notifications-verification-server under CWE-284: Improper Access Control.
Which Github.com/google/exposure notifications verification server versions are affected?
Affected versions include releases prior to 1.1.2 across affected packages: github.com/google/exposure-notifications-verification-server.
What version fixes CVE-2021-22565?
Upgrading to 1.1.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/google/exposure-notifications-verification-server affected?
Yes, github.com/google/exposure-notifications-verification-server is affected in releases prior to 1.1.2. Upgrade your dependency to 1.1.2 or later.
What is the CVSS score of CVE-2021-22565?
CVE-2021-22565 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L.
What CWE is associated with CVE-2021-22565?
CVE-2021-22565 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check Go dependencies for CVE-2021-22565?
Run the dependency tree command: 'inspect dependencies for github.com/google/exposure-notifications-verification-server'. 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-wx8q-rgfr-cf6v",
  "modified" : "2021-12-10T18:30:24Z",
  "published" : "2021-11-10T18:20:11Z",
  "aliases" : [ "CVE-2021-22565" ],
  "summary" : "Insufficient Granularity of Access Control in github.com/google/exposure-notifications-verification-server",
  "details" : "### Impact\nUsers or API keys with permission to expire verification codes could have expired codes that belonged to another realm if they guessed the UUID.\n\n### Patches\nv1.1.2+\n\n### Workarounds\nThere are no workarounds, and there are no indications this has been exploited in the wild. Verification codes can only be expired by providing their 64-bit UUID, and verification codes are already valid for a very short period of time (thus the UUID rotates frequently).\n\n### For more information\nContact exposure-notifications-feedback@google.com",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/google/exposure-notifications-verification-server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/google/exposure-notifications-verification-server/security/advisories/GHSA-wx8q-rgfr-cf6v"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-22565"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/google/exposure-notifications-verification-server"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/google/exposure-notifications-verification-server/releases/tag/v1.1.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-11-09T21:03:07Z",
    "nvd_published_at" : "2021-12-09T13:15:00Z"
  }
}