GHSA-phhq-63jg-fp7r: Github.com/edgelesssys/contrast Contrast Vulnerability Allows Arbitrary Host Vulnerability
LOWGHSA-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
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).
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.
Upgrade github.com/edgelesssys/contrast to 1.9.1
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
GHSA-phhq-63jg-fp7r Affected Github.com/edgelesssys/contrast Versions
1 component(s)| 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?
Which Github.com/edgelesssys/contrast versions are affected?
What version fixes GHSA-phhq-63jg-fp7r?
Is github.com/edgelesssys/contrast affected?
What is the CVSS score of GHSA-phhq-63jg-fp7r?
What CWE is associated with GHSA-phhq-63jg-fp7r?
How can I check Go dependencies for GHSA-phhq-63jg-fp7r?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}