GHSA-phhq-63jg-fp7r: Github.com/edgelesssys/contrast Contrast Vulnerability Allows Arbitrary Host Vulnerability

LOW
CVSS 3.5
CWE-552 CWE-693
Published
Advisory Summary

GHSA-phhq-63jg-fp7r is a LOW (CVSS 3.5) contrast vulnerability allows arbitrary host vulnerability (CWE-552: Files or Directories Accessible to External Parties) affecting Github.com/edgelesssys/contrast libraries in the Go ecosystem. The issue involves contrast vulnerability allows arbitrary host data injection into container volume mount points. Remediation is available by upgrading affected packages to version 1.9.1.

GHSA-phhq-63jg-fp7r at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-phhq-63jg-fp7r
Severity LOW
CVSS v3.1 Base Score 3.5
CWE Classification CWE-552: Files or Directories Accessible to External Parties
Affected Product Github.com/edgelesssys/contrast
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 3.5

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:N/I:L/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 None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix GHSA-phhq-63jg-fp7r

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.9.1
Upgrade github.com/edgelesssys/contrast to 1.9.1
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-phhq-63jg-fp7r, 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.9.1), 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-552: Files or Directories Accessible to External Parties, where the product makes files or directories accessible to unauthorized actors, even though they should not be. 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

### Background The [`VOLUME`](https://docs.docker.com/reference/dockerfile/#volume) directive in Dockerfiles, or the [`config.volumes`](https://github.com/opencontainers/image-spec/blob/06e6b47e2ef69021d9f9bf2cfa5fe43a7e010c81/config.md?plain=1#L168-L170) field in OCI image descriptors, indicates filesystem paths "where the process is likely to write data". While these paths have special semantics in Docker, they are only hints in the OCI spec and are not treated specially by Kubernetes. However, containered implements the [specified conversion logic](https://github.com/opencontainers/image-spec/blob/06e6b47e2ef69021d9f9bf2cfa5fe43a7e010c81/conversion.md?plain=1#L100-L105) and adds a mount point if there is none set by Kubernetes. Unfortunately, the specification leaves it open whether the mount point is populated with any and what data, so the runtime needs to be able to push arbitrary data to the Kata agent. However, this is almost always not what the user wants: 1. A declared `VOLUME` location is usually important to the app's core functionality, which is usually at odds with the data in that location being untrusted. 2. `VOLUME` declarations are often used by image vendors to indicate "mount your persistence here" to the user. They are rarely useful without a real volume mounted there. ### Impact All of the following need to be true to be affected by this vulnerability: 1. A bare metal Contrast deployment (AKS is not affected). 2. An image with at least one VOLUME directive. 3. No Kubernetes mount at the path of the VOLUME. If these are all true, the host is able to write arbitrary trees below that mount point. ### Patches Patched in v1.9.1 by disallowing this configuration in `contrast generate`. ### Workarounds Explicitly mount an `emptyDir` to all `VOLUME` locations. If the initial data in these locations is needed by the application, the image needs to be modified to remove the `config.volumes` entries.

GHSA-phhq-63jg-fp7r Affected Github.com/edgelesssys/contrast Versions

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

References

Frequently Asked Questions

What is GHSA-phhq-63jg-fp7r?
GHSA-phhq-63jg-fp7r is a security vulnerability in Github.com/edgelesssys/contrast involving Contrast vulnerability allows arbitrary host data Injection into container VOLUME mount points under CWE-552: Files or Directories Accessible to External Parties.
Which Github.com/edgelesssys/contrast versions are affected?
Affected versions include releases prior to 1.9.1 across affected packages: github.com/edgelesssys/contrast.
What version fixes GHSA-phhq-63jg-fp7r?
Upgrading to 1.9.1 (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.9.1. Upgrade your dependency to 1.9.1 or later.
What is the CVSS score of GHSA-phhq-63jg-fp7r?
GHSA-phhq-63jg-fp7r has a CVSS v3.1 base score of 3.5 (LOW) with vector string CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with GHSA-phhq-63jg-fp7r?
GHSA-phhq-63jg-fp7r is classified under CWE-552: Files or Directories Accessible to External Parties (The product makes files or directories accessible to unauthorized actors, even though they should not be.).
How can I check Go dependencies for GHSA-phhq-63jg-fp7r?
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-phhq-63jg-fp7r",
  "modified" : "2025-07-09T17:56:24Z",
  "published" : "2025-07-09T17:56:24Z",
  "aliases" : [ ],
  "summary" : "Contrast vulnerability allows arbitrary host data Injection into container VOLUME mount points",
  "details" : "### Background\n\nThe [`VOLUME`](https://docs.docker.com/reference/dockerfile/#volume) directive in Dockerfiles, or the [`config.volumes`](https://github.com/opencontainers/image-spec/blob/06e6b47e2ef69021d9f9bf2cfa5fe43a7e010c81/config.md?plain=1#L168-L170) field in OCI image descriptors, indicates filesystem paths \"where the process is likely to write data\". While these paths have special semantics in Docker, they are only hints in the OCI spec and are not treated specially by Kubernetes. However, containered implements the [specified conversion logic](https://github.com/opencontainers/image-spec/blob/06e6b47e2ef69021d9f9bf2cfa5fe43a7e010c81/conversion.md?plain=1#L100-L105) and adds a mount point if there is none set by Kubernetes.\n\nUnfortunately, the specification leaves it open whether the mount point is populated with any and what data, so the runtime needs to be able to push arbitrary data to the Kata agent. However, this is almost always not what the user wants:\n\n1. A declared `VOLUME` location is usually important to the app's core functionality, which is usually at odds with the data in that location being untrusted.\n2. `VOLUME` declarations are often used by image vendors to indicate \"mount your persistence here\" to the user. They are rarely useful without a real volume mounted there.\n\n### Impact\n\nAll of the following need to be true to be affected by this vulnerability:\n\n1. A bare metal Contrast deployment (AKS is not affected).\n2. An image with at least one VOLUME directive.\n3. No Kubernetes mount at the path of the VOLUME.\n\nIf these are all true, the host is able to write arbitrary trees below that mount point.\n\n### Patches\n\nPatched in v1.9.1 by disallowing this configuration in `contrast generate`.\n\n### Workarounds\n\nExplicitly mount an `emptyDir` to all `VOLUME` locations. If the initial data in these locations is needed by the application, the image needs to be modified to remove the `config.volumes` entries.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/edgelesssys/contrast"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.9.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/edgelesssys/contrast/security/advisories/GHSA-phhq-63jg-fp7r"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/edgelesssys/contrast/commit/635b471ddbb512b6661e6f1d767aab818bd50bda"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/edgelesssys/contrast"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/edgelesssys/contrast/releases/tag/v1.9.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-552", "CWE-693" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-07-09T17:56:24Z",
    "nvd_published_at" : null
  }
}