GHSA-vxg3-w9rv-rhr2: Github.com/edgelesssys/contrast Contrast Leaks Workload Secrets To Vulnerability

HIGH
CVSS 7.3
CWE-532
Published
Advisory Summary

GHSA-vxg3-w9rv-rhr2 is a HIGH (CVSS 7.3) contrast leaks workload secrets to vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Github.com/edgelesssys/contrast libraries in the Go ecosystem. The issue involves contrast leaks workload secrets to logs on info level. Remediation is available by upgrading affected packages to version 1.12.2.

GHSA-vxg3-w9rv-rhr2 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-vxg3-w9rv-rhr2
Severity HIGH
CVSS v3.1 Base Score 7.3
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Github.com/edgelesssys/contrast
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Adjacent (AV:A)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix GHSA-vxg3-w9rv-rhr2

To remediate this vulnerability, upgrade all affected Github.com/edgelesssys/contrast dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/edgelesssys/contrast fixed: 1.12.2
Upgrade github.com/edgelesssys/contrast to 1.12.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/edgelesssys/contrast

How to Check if You Are Affected

To determine whether your application is affected by GHSA-vxg3-w9rv-rhr2, inspect your project dependencies for Github.com/edgelesssys/contrast:

inspect dependencies for github.com/edgelesssys/contrast

Analyze the terminal output to locate any version of Github.com/edgelesssys/contrast in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.12.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Github.com/edgelesssys/contrast, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

This is the same vulnerability as https://github.com/edgelesssys/contrast/security/advisories/GHSA-h5f8-crrq-4pw8. The original vulnerability had been fixed for release `v1.8.1`, but the fix was not ported to the main branch and thus not present in releases `v1.9.0` ff. Below is a brief repetition of the relevant sections from the first GHSA, where you can find the full details. ### Impact * [Workload secrets](https://docs.edgeless.systems/contrast/1.11/architecture/secrets#workload-secrets) are visible to Kubernetes users with `get` or `list` permission on `pods/logs`, and thus need to be considered compromised. * Since workload secrets are used for [encrypted storage](https://docs.edgeless.systems/contrast/1.11/howto/encrypted-storage) and [Vault integration](https://docs.edgeless.systems/contrast/1.11/howto/vault), those need to be considered compromised, too. ### Patches Patches: * https://github.com/edgelesssys/contrast/commit/5a5512c4af63c17bb66331e7bd2768a863b2f225 * https://github.com/edgelesssys/contrast/commit/cf58026b30c43fe7df91eac5322da02e1725d554 The patches are released with `v1.12.2` and `v1.13.0` (not yet published). Since the secrets are compromised, Contrast needs to be initialized from scratch. ### Workarounds Existing workload secrets are compromised. The Contrast cluster needs to be newly initialized, and logging needs to be turned off. ### References First occurrence: * https://github.com/edgelesssys/contrast/security/advisories/GHSA-h5f8-crrq-4pw8 We are defining a process for handling GHSAs that should prevent such regressions in the future: * https://github.com/edgelesssys/contrast/pull/1739

GHSA-vxg3-w9rv-rhr2 Affected Github.com/edgelesssys/contrast Versions

1 component(s)
Fixed Versions:
1.12.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/edgelesssys/contrast
Go
≥ 1.9.0
< 1.12.2
1.12.2

References

Frequently Asked Questions

What is GHSA-vxg3-w9rv-rhr2?
GHSA-vxg3-w9rv-rhr2 is a security vulnerability in Github.com/edgelesssys/contrast involving Contrast leaks workload secrets to logs on INFO level under CWE-532: Insertion of Sensitive Information into Log File.
Which Github.com/edgelesssys/contrast versions are affected?
Affected versions include releases prior to 1.12.2 across affected packages: github.com/edgelesssys/contrast.
What version fixes GHSA-vxg3-w9rv-rhr2?
Upgrading to 1.12.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/edgelesssys/contrast affected?
Yes, github.com/edgelesssys/contrast is affected in releases prior to 1.12.2. Upgrade your dependency to 1.12.2 or later.
What is the CVSS score of GHSA-vxg3-w9rv-rhr2?
GHSA-vxg3-w9rv-rhr2 has a CVSS v3.1 base score of 7.3 (HIGH) with vector string CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with GHSA-vxg3-w9rv-rhr2?
GHSA-vxg3-w9rv-rhr2 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check Go dependencies for GHSA-vxg3-w9rv-rhr2?
Run the dependency tree command: 'inspect dependencies for github.com/edgelesssys/contrast'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vxg3-w9rv-rhr2",
  "modified" : "2025-08-28T16:46:40Z",
  "published" : "2025-08-28T16:46:40Z",
  "aliases" : [ ],
  "summary" : "Contrast leaks workload secrets to logs on INFO level",
  "details" : "This is the same vulnerability as https://github.com/edgelesssys/contrast/security/advisories/GHSA-h5f8-crrq-4pw8. The original vulnerability had been fixed for release `v1.8.1`, but the fix was not ported to the main branch and thus not present in releases `v1.9.0` ff.\n\nBelow is a brief repetition of the relevant sections from the first GHSA, where you can find the full details.\n\n### Impact\n\n* [Workload secrets](https://docs.edgeless.systems/contrast/1.11/architecture/secrets#workload-secrets) are visible to Kubernetes users with `get` or `list` permission on `pods/logs`, and thus need to be considered compromised.\n* Since workload secrets are used for [encrypted storage](https://docs.edgeless.systems/contrast/1.11/howto/encrypted-storage) and [Vault integration](https://docs.edgeless.systems/contrast/1.11/howto/vault), those need to be considered compromised, too.\n\n### Patches\n\nPatches:\n\n* https://github.com/edgelesssys/contrast/commit/5a5512c4af63c17bb66331e7bd2768a863b2f225\n* https://github.com/edgelesssys/contrast/commit/cf58026b30c43fe7df91eac5322da02e1725d554\n\nThe patches are released with `v1.12.2` and `v1.13.0` (not yet published). Since the secrets are compromised, Contrast needs to be initialized from scratch.\n\n### Workarounds\n\nExisting workload secrets are compromised. The Contrast cluster needs to be newly initialized, and logging needs to be turned off. \n\n### References\n\nFirst occurrence:\n* https://github.com/edgelesssys/contrast/security/advisories/GHSA-h5f8-crrq-4pw8\n\nWe are defining a process for handling GHSAs that should prevent such regressions in the future:\n* https://github.com/edgelesssys/contrast/pull/1739",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/edgelesssys/contrast"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.9.0"
      }, {
        "fixed" : "1.12.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.12.1"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/edgelesssys/contrast/security/advisories/GHSA-h5f8-crrq-4pw8"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/edgelesssys/contrast/security/advisories/GHSA-vxg3-w9rv-rhr2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/edgelesssys/contrast/pull/1739"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/edgelesssys/contrast/commit/5a5512c4af63c17bb66331e7bd2768a863b2f225"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/edgelesssys/contrast/commit/cf58026b30c43fe7df91eac5322da02e1725d554"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/edgelesssys/contrast"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-08-28T16:46:40Z",
    "nvd_published_at" : null
  }
}