CVE-2023-39348: Github.com/spinnaker/spinnaker Improper Log Output When Using Vulnerability
MODERATECVE-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
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).
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.
Upgrade github.com/spinnaker/spinnaker to Latest secure release
Upgrade github.com/spinnaker/spinnaker to Latest secure release
Upgrade github.com/spinnaker/spinnaker to Latest secure release
Upgrade github.com/spinnaker/spinnaker to Latest secure release
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
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?
Which Github.com/spinnaker/spinnaker versions are affected?
What version fixes CVE-2023-39348?
Is github.com/spinnaker/spinnaker affected?
What is the CVSS score of CVE-2023-39348?
What CWE is associated with CVE-2023-39348?
How can I check Go dependencies for CVE-2023-39348?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}