GHSA-xr7q-jx4m-x55m: Google.golang.org/grpc Private Tokens Could Appear Vulnerability

LOW
CWE-200
Published
Advisory Summary

GHSA-xr7q-jx4m-x55m is a LOW private tokens could appear vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Google.golang.org/grpc libraries in the Go ecosystem. The issue involves private tokens could appear in logs if context containing grpc metadata is logged in github.com/grpc/grpc-go. Remediation is available by upgrading affected packages to version 1.64.1.

GHSA-xr7q-jx4m-x55m at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-xr7q-jx4m-x55m
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Google.golang.org/grpc
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-xr7q-jx4m-x55m

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

google.golang.org/grpc fixed: 1.64.1
Upgrade google.golang.org/grpc to 1.64.1
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 google.golang.org/grpc

How to Check if You Are Affected

To determine whether your application is affected by GHSA-xr7q-jx4m-x55m, inspect your project dependencies for Google.golang.org/grpc:

inspect dependencies for google.golang.org/grpc

Analyze the terminal output to locate any version of Google.golang.org/grpc in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.64.1), 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Google.golang.org/grpc, 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 This issue represents a potential PII concern. If applications were printing or logging a context containing gRPC metadata, the affected versions will contain all the metadata, which may include private information. ### Patches The issue first appeared in 1.64.0 and is patched in 1.64.1 and 1.65.0 ### Workarounds If using an affected version and upgrading is not possible, ensuring you do not log or print contexts will avoid the problem.

GHSA-xr7q-jx4m-x55m Affected Google.golang.org/grpc Versions

1 component(s)
Fixed Versions:
1.64.1
Product / Package Ecosystem Affected Versions Fixed Version
google.golang.org/grpc
Go
≥ 1.64.0
< 1.64.1
1.64.1

References

Frequently Asked Questions

What is GHSA-xr7q-jx4m-x55m?
GHSA-xr7q-jx4m-x55m is a security vulnerability in Google.golang.org/grpc involving Private tokens could appear in logs if context containing gRPC metadata is logged in github.com/grpc/grpc-go under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Google.golang.org/grpc versions are affected?
Affected versions include releases prior to 1.64.1 across affected packages: google.golang.org/grpc.
What version fixes GHSA-xr7q-jx4m-x55m?
Upgrading to 1.64.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is google.golang.org/grpc affected?
Yes, google.golang.org/grpc is affected in releases prior to 1.64.1. Upgrade your dependency to 1.64.1 or later.
What CWE is associated with GHSA-xr7q-jx4m-x55m?
GHSA-xr7q-jx4m-x55m is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Go dependencies for GHSA-xr7q-jx4m-x55m?
Run the dependency tree command: 'inspect dependencies for google.golang.org/grpc'. 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-xr7q-jx4m-x55m",
  "modified" : "2024-07-09T21:38:29Z",
  "published" : "2024-07-05T20:07:01Z",
  "aliases" : [ ],
  "summary" : "Private tokens could appear in logs if context containing gRPC metadata is logged in github.com/grpc/grpc-go",
  "details" : "### Impact\nThis issue represents a potential PII concern.  If applications were printing or logging a context containing gRPC metadata, the affected versions will contain all the metadata, which may include private information.\n\n### Patches\nThe issue first appeared in 1.64.0 and is patched in 1.64.1 and 1.65.0\n\n### Workarounds\nIf using an affected version and upgrading is not possible, ensuring you do not log or print contexts will avoid the problem.\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "google.golang.org/grpc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.64.0"
      }, {
        "fixed" : "1.64.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/grpc/grpc-go/security/advisories/GHSA-xr7q-jx4m-x55m"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/grpc/grpc-go/commit/ab292411ddc0f3b7a7786754d1fe05264c3021eb"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/grpc/grpc-go"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-07-05T20:07:01Z",
    "nvd_published_at" : null
  }
}