Insertion of Sensitive Information into Log File Affecting github.com/rancher/rancher package, versions >=2.6.0 <2.6.14 >=2.7.0 <2.7.10 >=2.8.0 <2.8.2


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    1.39% (87th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-GOLANG-GITHUBCOMRANCHERRANCHER-6239654
  • published 9 Feb 2024
  • disclosed 8 Feb 2024
  • credit Unknown

How to fix?

Upgrade github.com/rancher/rancher to version 2.6.14, 2.7.10, 2.8.2 or higher.

Overview

Affected versions of this package are vulnerable to Insertion of Sensitive Information into Log File via the "Rancher Audit Logging" feature. An attacker can access sensitive information by exploiting the logging of sensitive data such as HTTP headers, API server calls, and raw command lines used by agents. This is only exploitable if the AUDIT_LEVEL is set to 1 or above and the Audit Logging feature is enabled.

Workaround

This vulnerability can be mitigated by ensuring that the log is handled appropriately and it is not shared with other users or shipped into a log ingestion solution without the appropriate RBAC enforcement. Alternatively, disabling the Audit feature or decreasing it to the audit level 0, mitigates the issue.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
7.7 high
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    High
  • User Interaction (UI)
    Required
  • Scope (S)
    Changed
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High
Expand this section

NVD

6.5 medium