CVE-2026-6720
Calicoctl leaks cluster credentials to stderr when verbose logging is enabled
Also known as GHSA-3m4q-ggcj-j6m4, GO-2026-5893
Mitigation
- Upgrade github.com/projectcalico/calicoctl/v3 to 3.31.6 or later.
Who should check
- Projects that depend on Go package github.com/projectcalico/calicoctl/v3 (< 3.31.6)
- Projects that depend on Go package github.com/projectcalico/calicoctl
- Anyone running Tigera Calico < 3.32.0
- Anyone running Tigera Calico Enterprise < 3.21.7
- Anyone running Tigera Calico Cloud < 22.4.0
Vulnerability facts
- Affected
- github.com/projectcalico/calicoctl/v3 < 3.31.6; github.com/projectcalico/calicoctl
- Fixed in
- 3.31.6
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 7.2 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:N/VA:N/SC:H/SI:H/SA:HOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: Low
- User interaction: Passive
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- Confidentiality impact on other systems: High
- Integrity impact on other systems: High
- Availability impact on other systems: High
- EPSS
- 0.30% chance of exploitation in 30 days (percentile 15, 2026-11-26)
- CWE
- CWE-532
- Modified
Description
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/projectcalico/calicoctl/v3 | < 3.31.6 | 3.31.6 | osv |
| Go github.com/projectcalico/calicoctl | — | — | osv |
| Tigera Calico | < 3.32.0 | — | cvelist |
| Tigera Calico Enterprise | < 3.21.7 | — | cvelist |
| Tigera Calico Cloud | < 22.4.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-6720. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-6720.md Affected: github.com/projectcalico/calicoctl/v3 < 3.31.6; github.com/projectcalico/calicoctl Fixed in: 3.31.6 Steps: 1. Search this machine and project for github.com/projectcalico/calicoctl/v3 (Go), github.com/projectcalico/calicoctl (Go), Tigera Calico, Tigera Calico Enterprise, Tigera Calico Cloud: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/projectcalico/calico/pull/12535
- https://github.com/projectcalico/calico/pull/12536
- https://github.com/projectcalico/calico/pull/12537
- https://github.com/projectcalico/calico/commit/12908bb48a5bf8cbab5373f4d532509a30cf9b7f
- https://github.com/projectcalico/calico/commit/8d87eddcb5eb6efc70c09eb0a33d63137359ea70
- https://github.com/projectcalico/calico/commit/ce3ab2b39b5841757cbccf7922c895c47827f562
FAQ
Is CVE-2026-6720 being exploited?
There is no confirmed exploitation: CVE-2026-6720 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-6720?
High: CVSS 7.2 (v4.0, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-6720?
github.com/projectcalico/calicoctl/v3 < 3.31.6; github.com/projectcalico/calicoctl.
Is there a fix for CVE-2026-6720?
Yes. Fixed in 3.31.6. Upgrade github.com/projectcalico/calicoctl/v3 to 3.31.6 or later.
How do I check if I'm affected by CVE-2026-6720?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.