CVE-2023-39348: Github.com/spinnaker/spinnaker Improper Log Output When Using Vulnerability

MODERATE
Advisory Identifier: GHSA-rq5c-hvw6-8pr7
CVSS 4.0
CWE-532
Published
Advisory Summary

CVE-2023-39348 is a MODERATE (CVSS 4.0) improper log output when using vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Github.com/spinnaker/spinnaker libraries in the Go ecosystem. The issue involves improper log output when using github status notifications in spinnaker. Remediation is available in the latest vendor maintenance releases.

CVE-2023-39348 at a Glance

CVE Identifier CVE-2023-39348
GHSA Identifier GHSA-rq5c-hvw6-8pr7
Severity MODERATE
CVSS v3.1 Base Score 4.0
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Github.com/spinnaker/spinnaker
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 4.0

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

Attack Vector Physical (AV:P)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2023-39348

To remediate this vulnerability, upgrade all affected Github.com/spinnaker/spinnaker 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/spinnaker/spinnaker fixed: Latest secure release
Upgrade github.com/spinnaker/spinnaker to Latest secure release
github.com/spinnaker/spinnaker fixed: Latest secure release
Upgrade github.com/spinnaker/spinnaker to Latest secure release
github.com/spinnaker/spinnaker fixed: Latest secure release
Upgrade github.com/spinnaker/spinnaker to Latest secure release
github.com/spinnaker/spinnaker fixed: Latest secure release
Upgrade github.com/spinnaker/spinnaker to Latest secure release
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/spinnaker/spinnaker

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-39348, inspect your project dependencies for Github.com/spinnaker/spinnaker:

inspect dependencies for github.com/spinnaker/spinnaker

Analyze the terminal output to locate any version of Github.com/spinnaker/spinnaker in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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/spinnaker/spinnaker, 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 ONLY IMPACTS those use GitHub Status Notifications Log output when updating GitHub status is improperly set to FULL always. It's recommended to apply the patch and rotate the GitHub token used for github status notifications. Given that this would output github tokens to a log system, the risk is slightly higher than a "low" since token exposure could grant elevated access to repositories outside of control. If using READ restricted tokens, the exposure is such that the token itself could be used to access resources otherwise restricted from reads. ### Patches Patch is in progress. https://github.com/spinnaker/echo/pull/1316 ### Workarounds Disable GH Status Notifications. Filter your logs for Echo log data. Use read-only tokens that are limited in scope. ### References sig-security in slack: https://spinnakerteam.slack.com/archives/CFN8F5UR2

CVE-2023-39348 Affected Github.com/spinnaker/spinnaker Versions

4 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
github.com/spinnaker/spinnaker
Go
github.com/spinnaker/spinnaker
Go
≥ 1.29.0
github.com/spinnaker/spinnaker
Go
≥ 1.30.0
github.com/spinnaker/spinnaker
Go
≥ 1.31.0

References

Frequently Asked Questions

What is CVE-2023-39348?
CVE-2023-39348 is a security vulnerability in Github.com/spinnaker/spinnaker involving Improper log output when using GitHub Status Notifications in spinnaker under CWE-532: Insertion of Sensitive Information into Log File.
Which Github.com/spinnaker/spinnaker versions are affected?
Affected versions include releases prior to current release patches across affected packages: github.com/spinnaker/spinnaker.
What version fixes CVE-2023-39348?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/spinnaker/spinnaker affected?
Yes, github.com/spinnaker/spinnaker is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2023-39348?
CVE-2023-39348 has a CVSS v3.1 base score of 4.0 (MODERATE) with vector string CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2023-39348?
CVE-2023-39348 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 CVE-2023-39348?
Run the dependency tree command: 'inspect dependencies for github.com/spinnaker/spinnaker'. 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-rq5c-hvw6-8pr7",
  "modified" : "2023-08-29T17:35:55Z",
  "published" : "2023-08-29T17:35:55Z",
  "aliases" : [ "CVE-2023-39348" ],
  "summary" : "Improper log output when using GitHub Status Notifications in spinnaker",
  "details" : "### Impact\nONLY IMPACTS those use GitHub Status Notifications\n\nLog output when updating GitHub status is improperly set to FULL always.  It's recommended to apply the patch and rotate the GitHub token used for github status notifications.  Given that this would output github tokens to a log system, the risk is slightly higher than a \"low\" since token exposure could grant elevated access to repositories outside of control.  If using READ restricted tokens, the exposure is such that the token itself could be used to access resources otherwise restricted from reads.\n\n### Patches\nPatch is in progress.  https://github.com/spinnaker/echo/pull/1316\n\n### Workarounds\nDisable GH Status Notifications.  Filter your logs for Echo log data.  Use read-only tokens that are limited in scope.\n\n### References\nsig-security in slack: https://spinnakerteam.slack.com/archives/CFN8F5UR2\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/spinnaker/spinnaker"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 1.28.8"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/spinnaker/spinnaker"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.29.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 1.29.6"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/spinnaker/spinnaker"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.30.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 1.30.3"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/spinnaker/spinnaker"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.31.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 1.31.1"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/spinnaker/spinnaker/security/advisories/GHSA-rq5c-hvw6-8pr7"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-39348"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spinnaker/echo/pull/1316"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/spinnaker/spinnaker"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-29T17:35:55Z",
    "nvd_published_at" : "2023-08-28T20:15:08Z"
  }
}