GHSA-h5f8-crrq-4pw8: Contrast workload secrets leak to logs on INFO level
Impact When the Contrast initializer is configured with a CONTRASTLOGLEVEL of info or debug, the workload secret is logged to stderr and written to Kubernetes logs. Since info is the default setting, this affects all Contrast installations that don't customize their initializers' log level.
Published May 28, 2025
Affected packages
github.com/edgelesssys/contrast
- Ecosystem
- Go
- Affected
- <= 1.8.0
- Fixed in
- 1.8.1
- Check
go list -m github.com/edgelesssys/contrast
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
When the Contrast initializer is configured with a CONTRAST_LOG_LEVEL of info or debug, the workload secret is logged to stderr and written to Kubernetes logs.
Since info is the default setting, this affects all Contrast installations that don't customize their initializers' log level.
The following audiences are intended to have access to workload secrets (see https://docs.edgeless.systems/contrast/1.7/architecture/secrets#workload-secrets):
- Contrast Coordinator (can derive all workload secrets)
- Contrast Initializer (obtains only the secret configured in the manifest)
- Seedshare owner (can derive all workload secrets)
- Workload owner (can update manifests to obtain secrets)
This vulnerability allows the following parties unintended access to workload secrets issued by a Coordinator:
- Kubernetes users with
getorlistpermission onpods/logs. - Others with read access to the Kubernetes log storage (most notably, the cloud provider).
This vulnerability does not affect scenarios where workload secrets are not used by the application (directly or with secure persistence). Applications designed for workload owner exclusion can't use workload secrets and are thus unaffected.
Patches
N/A
Workarounds
This vulnerability can be mitigated by adding an environment variable CONTRAST_LOG_LEVEL=warn to the initializer after running contrast generate, and then running contrast generate again.
References
N/A
Credited to burgerdev, katexochen, thomasten.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesGHSA-3ccm-4qq2-5wrp
Constrata's coordinator transit engine `ciphertextContainer.UnmarshalJSON` panics on attacker-controlled short ciphertexts
medium4.3Jul 1, 2026GHSA-6c87-g9pw-78fx
Contrast's Imagepuller registryFor uses unanchored suffix matching, leaking auth credentials and trusted CA configuration to sibling-domain registries
low3.7Jul 1, 2026GHSA-rh99-wc69-c255
Contras Affected by CopyFile Policy Subversion via Symlinks
high8.1Apr 30, 2026GHSA-g9ww-x58f-9g6m
Contrast BadAML injection allows arbitrary code execution
high8.4Mar 26, 2026GHSA-f5p4-p5q5-jv3h
Contrast has insecure LUKS2 persistent storage partitions may be opened and used
medium5.7Oct 28, 2025GHSA-vxg3-w9rv-rhr2
Contrast leaks workload secrets to logs on INFO level
high7.3Aug 28, 2025
