GHSA-h5f8-crrq-4pw8

Suggest an improvement
Source
https://github.com/advisories/GHSA-h5f8-crrq-4pw8
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/05/GHSA-h5f8-crrq-4pw8/GHSA-h5f8-crrq-4pw8.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-h5f8-crrq-4pw8
Aliases
Published
2025-05-28T14:40:25Z
Modified
2025-05-29T21:44:42.348457Z
Severity
  • 7.3 (High) CVSS_V3 - CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Contrast workload secrets leak to logs on INFO level
Details

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 get or list permission on pods/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

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-532"
    ],
    "github_reviewed_at": "2025-05-28T14:40:25Z",
    "severity": "HIGH",
    "github_reviewed": true
}
References

Affected packages

Go / github.com/edgelesssys/contrast

Package

Name
github.com/edgelesssys/contrast
View open source insights on deps.dev
Purl
pkg:golang/github.com/edgelesssys/contrast

Affected ranges

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

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/05/GHSA-h5f8-crrq-4pw8/GHSA-h5f8-crrq-4pw8.json"
last_known_affected_version_range
"<= 1.8.0"