GHSA-g8fc-vrcg-8vjg: Github.com/edgelesssys/constellation/v2 Constallation Has Pods Exposed To Vulnerability

HIGH
CWE-940
Published
Advisory Summary

GHSA-g8fc-vrcg-8vjg is a HIGH constallation has pods exposed to vulnerability (CWE-940: Improper Verification of Source of a Communication Channel) affecting Github.com/edgelesssys/constellation/v2 libraries in the Go ecosystem. The issue involves constallation has pods exposed to peers in vpc. Remediation is available by upgrading affected packages to version 2.16.3.

GHSA-g8fc-vrcg-8vjg at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-g8fc-vrcg-8vjg
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-940: Improper Verification of Source of a Communication Channel
Affected Product Github.com/edgelesssys/constellation/v2
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-g8fc-vrcg-8vjg

To remediate this vulnerability, upgrade all affected Github.com/edgelesssys/constellation/v2 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/constellation/v2 fixed: 2.16.3
Upgrade github.com/edgelesssys/constellation/v2 to 2.16.3
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/constellation/v2

How to Check if You Are Affected

To determine whether your application is affected by GHSA-g8fc-vrcg-8vjg, inspect your project dependencies for Github.com/edgelesssys/constellation/v2:

inspect dependencies for github.com/edgelesssys/constellation/v2

Analyze the terminal output to locate any version of Github.com/edgelesssys/constellation/v2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.16.3), 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-940: Improper Verification of Source of a Communication Channel, where the product establishes a communication channel to handle an incoming request that has been initiated by an actor, but it does not properly verify that the request is coming from the expected origin. In Github.com/edgelesssys/constellation/v2, 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

### Impact Cilium allows outside actors (`world` entity) to directly access pods with their internal pod IP, even if they are not exposed explicitly (e.g. via `LoadBalancer`). A pod that does not authenticate clients and that does not exclude `world` traffic via network policy may leak sensitive data to an attacker _inside the cloud VPC_. ### Patches The issue has been patched in [v2.16.3](https://github.com/edgelesssys/constellation/releases/tag/v2.16.3). ### Workarounds This network policy excludes all `world` traffic. It mitigates the problem, but will also block all desired external traffic. If vulnerable pods are known, a policy can be crafted to only firewall those instead (see also https://docs.cilium.io/en/stable/security/policy/language/#access-to-from-outside-cluster). ```yaml apiVersion: "cilium.io/v2" kind: CiliumClusterwideNetworkPolicy metadata: name: "from-world-to-role-public" spec: endpointSelector: matchLabels: {} # role: public ingressDeny: - fromEntities: - world ``` ### References The tracking bug for a Cilium-side fix is https://github.com/cilium/cilium/issues/25626.

GHSA-g8fc-vrcg-8vjg Affected Github.com/edgelesssys/constellation/v2 Versions

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

References

Frequently Asked Questions

What is GHSA-g8fc-vrcg-8vjg?
GHSA-g8fc-vrcg-8vjg is a security vulnerability in Github.com/edgelesssys/constellation/v2 involving Constallation has pods exposed to peers in VPC under CWE-940: Improper Verification of Source of a Communication Channel.
Which Github.com/edgelesssys/constellation/v2 versions are affected?
Affected versions include releases prior to 2.16.3 across affected packages: github.com/edgelesssys/constellation/v2.
What version fixes GHSA-g8fc-vrcg-8vjg?
Upgrading to 2.16.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/edgelesssys/constellation/v2 affected?
Yes, github.com/edgelesssys/constellation/v2 is affected in releases prior to 2.16.3. Upgrade your dependency to 2.16.3 or later.
What CWE is associated with GHSA-g8fc-vrcg-8vjg?
GHSA-g8fc-vrcg-8vjg is classified under CWE-940: Improper Verification of Source of a Communication Channel (The product establishes a communication channel to handle an incoming request that has been initiated by an actor, but it does not properly verify that the request is coming from the expected origin.).
How can I check Go dependencies for GHSA-g8fc-vrcg-8vjg?
Run the dependency tree command: 'inspect dependencies for github.com/edgelesssys/constellation/v2'. 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-g8fc-vrcg-8vjg",
  "modified" : "2024-06-04T19:35:51Z",
  "published" : "2024-04-15T18:13:15Z",
  "aliases" : [ ],
  "summary" : "Constallation has pods exposed to peers in VPC",
  "details" : "### Impact\n\nCilium allows outside actors (`world` entity) to directly access pods with their internal pod IP, even if they are not exposed explicitly (e.g. via `LoadBalancer`). A pod that does not authenticate clients and that does not exclude `world` traffic via network policy may leak sensitive data to an attacker _inside the cloud VPC_.\n\n### Patches\n\nThe issue has been patched in [v2.16.3](https://github.com/edgelesssys/constellation/releases/tag/v2.16.3).\n\n### Workarounds\n\nThis network policy excludes all `world` traffic. It mitigates the problem, but will also block all desired external traffic. If vulnerable pods are known, a policy can be crafted to only firewall those instead (see also https://docs.cilium.io/en/stable/security/policy/language/#access-to-from-outside-cluster).\n\n```yaml\napiVersion: \"cilium.io/v2\"\nkind: CiliumClusterwideNetworkPolicy\nmetadata:\n  name: \"from-world-to-role-public\"\nspec:\n  endpointSelector:\n    matchLabels: {}\n    #  role: public\n  ingressDeny:\n    - fromEntities:\n      - world\n```\n\n### References\n\nThe tracking bug for a Cilium-side fix is https://github.com/cilium/cilium/issues/25626. \n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/edgelesssys/constellation/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.16.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/edgelesssys/constellation/security/advisories/GHSA-g8fc-vrcg-8vjg"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cilium/cilium/issues/25626"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/edgelesssys/constellation"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2024-2727"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-940" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-15T18:13:15Z",
    "nvd_published_at" : null
  }
}