GHSA-3m4q-ggcj-j6m4

Suggest an improvement
Source
https://github.com/advisories/GHSA-3m4q-ggcj-j6m4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-3m4q-ggcj-j6m4/GHSA-3m4q-ggcj-j6m4.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-3m4q-ggcj-j6m4
Aliases
Downstream
CGA (4)
MINI (9)
Published
2026-05-28T18:30:32Z
Modified
2026-07-17T21:07:24Z
Severity
  • 7.2 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:N/VA:N/SC:H/SI:H/SA:H CVSS Calculator
Summary
Calico Inserts Sensitive Information into Log File
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-532"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-07-02T18:07:41Z",
    "nvd_published_at": "2026-05-28T17:16:33Z",
    "severity": "HIGH"
}
References

Affected packages

Go / github.com/projectcalico/calicoctl/v3

Package

Name
github.com/projectcalico/calicoctl/v3
View open source insights on deps.dev
Purl
pkg:golang/github.com/projectcalico/calicoctl/v3

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
3.31.6

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-3m4q-ggcj-j6m4/GHSA-3m4q-ggcj-j6m4.json"