---
id: CVE-2026-6720
aliases:
  - GHSA-3m4q-ggcj-j6m4
  - GO-2026-5893
title: Calico Inserts Sensitive Information into Log File
summary: Calico Inserts Sensitive Information into Log File
severity: high
vendor: projectcalico
product: github.com/projectcalico/calicoctl/v3
ecosystem: go
affected:
  - github.com/projectcalico/calicoctl/v3 < 3.31.6
patched:
  - github.com/projectcalico/calicoctl/v3 3.31.6
published: '2026-05-28'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:45.399486640Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-3m4q-ggcj-j6m4'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-6720'
  - url: 'https://github.com/projectcalico/calico/pull/12535'
  - url: 'https://github.com/projectcalico/calico/pull/12536'
  - url: 'https://github.com/projectcalico/calico/pull/12537'
  - url: >-
      https://github.com/projectcalico/calico/commit/12908bb48a5bf8cbab5373f4d532509a30cf9b7f
  - url: >-
      https://github.com/projectcalico/calico/commit/8d87eddcb5eb6efc70c09eb0a33d63137359ea70
  - url: >-
      https://github.com/projectcalico/calico/commit/ce3ab2b39b5841757cbccf7922c895c47827f562
  - url: 'https://github.com/projectcalico/calico'
  - url: 'https://www.tigera.io/security-bulletins/tta-2026-003'
tags:
  - osv
  - go
epss: 0.00224
epssPercentile: 0.13317
ingestedAt: '2026-09-12T03:13:01.749Z'
---

## Overview

When calicoctl is invoked with --log-level=info or --log-level=debug, the client prints the full contents of its loaded connection-configuration struct to stderr in a single log line. The struct embeds every credential calicoctl uses to talk to the cluster — inline kubeconfig (with bearer token), Kubernetes API bearer token, etcd password, and inline PEM-encoded etcd client certificate and key. Any reader of that stderr stream — CI job logs, session-recording archives, shared support-ticket transcripts, or local filesystem viewers on the host that ran calicoctl — can extract these credentials with zero Kubernetes privilege. calicoctl's default log level is panic, so this issue only triggers when verbose logging is explicitly enabled.

## Affected packages

- `github.com/projectcalico/calicoctl/v3 < 3.31.6`

## Remediation

Upgrade to a patched release:

- `github.com/projectcalico/calicoctl/v3 3.31.6`
