CVE-2024-6535: Github.com/skupperproject/skupper Skupper Uses A Static Cookie Vulnerability

HIGH
Advisory Identifier: GHSA-w799-v85j-88pg
CVSS 5.9
CWE-287 CWE-1392
Published
Advisory Summary

CVE-2024-6535 is a HIGH (CVSS 5.9) skupper uses a static cookie vulnerability (CWE-287: Improper Authentication) affecting Github.com/skupperproject/skupper libraries in the Go ecosystem. The issue involves skupper uses a static cookie secret for the openshift oauth-proxy. Remediation is available by upgrading affected packages to version 0.0.0-20240703184342-c26bce4079ff.

CVE-2024-6535 at a Glance

CVE Identifier CVE-2024-6535
GHSA Identifier GHSA-w799-v85j-88pg
Severity HIGH
CVSS v3.1 Base Score 5.9
CWE Classification CWE-287: Improper Authentication
Affected Product Github.com/skupperproject/skupper
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.9

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

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

How to Fix CVE-2024-6535

To remediate this vulnerability, upgrade all affected Github.com/skupperproject/skupper 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/skupperproject/skupper fixed: 0.0.0-20240703184342-c26bce4079ff
Upgrade github.com/skupperproject/skupper to 0.0.0-20240703184342-c26bce4079ff
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/skupperproject/skupper

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-6535, inspect your project dependencies for Github.com/skupperproject/skupper:

inspect dependencies for github.com/skupperproject/skupper

Analyze the terminal output to locate any version of Github.com/skupperproject/skupper in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20240703184342-c26bce4079ff), 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Github.com/skupperproject/skupper, 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

A flaw was found in Skupper. When Skupper is initialized with the console-enabled and with console-auth set to Openshift, it configures the openshift oauth-proxy with a static cookie-secret. In certain circumstances, this may allow an attacker to bypass authentication to the Skupper console via a specially-crafted cookie.

CVE-2024-6535 Affected Github.com/skupperproject/skupper Versions

1 component(s)
Fixed Versions:
0.0.0-20240703184342-c26bce4079ff
Product / Package Ecosystem Affected Versions Fixed Version
github.com/skupperproject/skupper
Go
< 0.0.0-20240703184342-c26bce4079ff
0.0.0-20240703184342-c26bce4079ff

References

Frequently Asked Questions

What is CVE-2024-6535?
CVE-2024-6535 is a security vulnerability in Github.com/skupperproject/skupper involving Skupper uses a static cookie secret for the openshift oauth-proxy under CWE-287: Improper Authentication.
Which Github.com/skupperproject/skupper versions are affected?
Affected versions include releases prior to 0.0.0-20240703184342-c26bce4079ff across affected packages: github.com/skupperproject/skupper.
What version fixes CVE-2024-6535?
Upgrading to 0.0.0-20240703184342-c26bce4079ff (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/skupperproject/skupper affected?
Yes, github.com/skupperproject/skupper is affected in releases prior to 0.0.0-20240703184342-c26bce4079ff. Upgrade your dependency to 0.0.0-20240703184342-c26bce4079ff or later.
What is the CVSS score of CVE-2024-6535?
CVE-2024-6535 has a CVSS v3.1 base score of 5.9 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2024-6535?
CVE-2024-6535 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check Go dependencies for CVE-2024-6535?
Run the dependency tree command: 'inspect dependencies for github.com/skupperproject/skupper'. 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-w799-v85j-88pg",
  "modified" : "2024-11-18T16:26:52Z",
  "published" : "2024-07-17T03:31:38Z",
  "aliases" : [ "CVE-2024-6535" ],
  "summary" : "Skupper uses a static cookie secret for the openshift oauth-proxy",
  "details" : "A flaw was found in Skupper. When Skupper is initialized with the console-enabled and with console-auth set to Openshift, it configures the openshift oauth-proxy with a static cookie-secret. In certain circumstances, this may allow an attacker to bypass authentication to the Skupper console via a specially-crafted cookie.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/skupperproject/skupper"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.0-20240703184342-c26bce4079ff"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-6535"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/skupperproject/skupper/commit/d2cb3782e807853694ee66b6e3d4a1917485eb71"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:4865"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:4871"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2024-6535"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2296024"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/skupperproject/skupper"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1392", "CWE-287" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-07-17T16:01:10Z",
    "nvd_published_at" : "2024-07-17T03:15:01Z"
  }
}