CVE-2024-58269: Github.com/rancher/rancher Rancher Exposes Sensitive Information Through Vulnerability

MODERATE
Advisory Identifier: GHSA-mw39-9qc2-f7mg
CVSS 4.3
CWE-532
Published
Advisory Summary

CVE-2024-58269 is a MODERATE (CVSS 4.3) rancher exposes sensitive information through vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Github.com/rancher/rancher libraries in the Go ecosystem. The issue involves rancher exposes sensitive information through audit logs. Remediation is available by upgrading affected packages to version 0.0.0-20251013203444-50dc516a19ea.

CVE-2024-58269 at a Glance

CVE Identifier CVE-2024-58269
GHSA Identifier GHSA-mw39-9qc2-f7mg
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Github.com/rancher/rancher
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 4.3

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

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

How to Fix CVE-2024-58269

To remediate this vulnerability, upgrade all affected Github.com/rancher/rancher 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/rancher/rancher fixed: 0.0.0-20251013203444-50dc516a19ea
Upgrade github.com/rancher/rancher to 0.0.0-20251013203444-50dc516a19ea
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/rancher/rancher

How to Check if You Are Affected

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

inspect dependencies for github.com/rancher/rancher

Analyze the terminal output to locate any version of Github.com/rancher/rancher 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-20251013203444-50dc516a19ea), 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/rancher/rancher, 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 **Note: The exploitation of this issue requires that the malicious user have access to Rancher’s audit log storage.** A vulnerability has been identified in Rancher Manager, where sensitive information, including secret data, cluster import URLs, and registration tokens, is exposed to any entity with access to Rancher audit logs. This happens in two different ways: 1. Secret Annotation Leakage: When creating Kubernetes Secrets using the `stringData` field, the cleartext value is embedded in the `kubectl.kubernetes.io/last-applied-configuration` annotation. This annotation is included in Rancher audit logs within both the request and response bodies, exposing secret material that should be redacted. 2. Cluster Registration Token Leakage: During the import or creation of downstream clusters (Custom, Imported, or Harvester), Rancher audit logs record full cluster registration manifests and tokens, including: a. Non-expiring import URLs such as `/v3/import/<token>_c-m-xxxx.yaml`. b. Full `kubectl apply` and `curl` commands containing registration tokens and CA checksums. c. Token values associated with cluster registration resources (`clusterRegistrationToken`). d. These tokens are valid until explicitly revoked and can be used to re-register nodes, granting unauthorized cluster access. An attacker or internal user who gains access to these logs could: - Recover plaintext secret values from annotations. - Use cluster registration tokens or import URLs to re-enroll agents or compromise downstream clusters. - Access clusters that rely on these tokens for authentication, enabling lateral movement. Please consult the associated [MITRE ATT&CK - Technique - Log Enumeration](https://attack.mitre.org/techniques/T1654/) for further information about this category of attack. ### Patches This vulnerability is addressed by applying redaction to sensitive information that was leaking. Patched versions of Rancher include release `v2.12.3`. ### Workarounds If the deployment can't be upgraded to a fixed version, users are encouraged to create `AuditPolicies` to redact and filter some of those requests as described in our [documentation](https://ranchermanager.docs.rancher.com/how-to-guides/advanced-user-guides/enable-api-audit-log#audit-log-policies). The following AuditPolicy can be applied to redact the secrets: ```yaml apiVersion: auditlog.cattle.io/v1 kind: AuditPolicy metadata: name: redactions spec: enabled: true additionalRedactions: - headers: - "Referer" - paths: - "$..metadata.annotations['kubectl.kubernetes.io/last-applied-configuration']" ``` Also consider granting access to Rancher's logs only for trusted users. ### References If you have any questions or comments about this advisory: - Reach out to the [SUSE Rancher Security team](https://github.com/rancher/rancher/security/policy) for security related inquiries. - Open an issue in the [Rancher](https://github.com/rancher/rancher/issues/new/choose) repository. - Verify with our [support matrix](https://www.suse.com/suse-rancher/support-matrix/all-supported-versions/) and [product support lifecycle](https://www.suse.com/lifecycle/).

CVE-2024-58269 Affected Github.com/rancher/rancher Versions

1 component(s)
Fixed Versions:
0.0.0-20251013203444-50dc516a19ea
Product / Package Ecosystem Affected Versions Fixed Version
github.com/rancher/rancher
Go
< 0.0.0-20251013203444-50dc516a19ea
0.0.0-20251013203444-50dc516a19ea

References

Frequently Asked Questions

What is CVE-2024-58269?
CVE-2024-58269 is a security vulnerability in Github.com/rancher/rancher involving Rancher exposes sensitive information through audit logs under CWE-532: Insertion of Sensitive Information into Log File.
Which Github.com/rancher/rancher versions are affected?
Affected versions include releases prior to 0.0.0-20251013203444-50dc516a19ea across affected packages: github.com/rancher/rancher.
What version fixes CVE-2024-58269?
Upgrading to 0.0.0-20251013203444-50dc516a19ea (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/rancher/rancher affected?
Yes, github.com/rancher/rancher is affected in releases prior to 0.0.0-20251013203444-50dc516a19ea. Upgrade your dependency to 0.0.0-20251013203444-50dc516a19ea or later.
What is the CVSS score of CVE-2024-58269?
CVE-2024-58269 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-58269?
CVE-2024-58269 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-2024-58269?
Run the dependency tree command: 'inspect dependencies for github.com/rancher/rancher'. 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-mw39-9qc2-f7mg",
  "modified" : "2025-10-31T20:21:17Z",
  "published" : "2025-10-24T15:27:13Z",
  "aliases" : [ "CVE-2024-58269" ],
  "summary" : "Rancher exposes sensitive information through audit logs",
  "details" : "### Impact\n**Note: The exploitation of this issue requires that the malicious user have access to Rancher’s audit log storage.**\n\nA vulnerability has been identified in Rancher Manager, where sensitive information, including secret data, cluster import URLs, and registration tokens, is exposed to any entity with access to Rancher audit logs. This happens in two different ways:\n\n1. Secret Annotation Leakage: When creating Kubernetes Secrets using the `stringData` field, the cleartext value is embedded in the `kubectl.kubernetes.io/last-applied-configuration` annotation. This annotation is included in Rancher audit logs within both the request and response bodies, exposing secret material that should be redacted.\n2. Cluster Registration Token Leakage: During the import or creation of downstream clusters (Custom, Imported, or Harvester), Rancher audit logs record full cluster registration manifests and tokens, including:\na. Non-expiring import URLs such as `/v3/import/<token>_c-m-xxxx.yaml`.\nb. Full `kubectl apply` and `curl` commands containing registration tokens and CA checksums.\nc. Token values associated with cluster registration resources (`clusterRegistrationToken`).\nd. These tokens are valid until explicitly revoked and can be used to re-register nodes, granting unauthorized cluster access.\n\nAn attacker or internal user who gains access to these logs could:\n- Recover plaintext secret values from annotations.\n- Use cluster registration tokens or import URLs to re-enroll agents or compromise downstream clusters.\n- Access clusters that rely on these tokens for authentication, enabling lateral movement.\n\nPlease consult the associated  [MITRE ATT&CK - Technique - Log Enumeration](https://attack.mitre.org/techniques/T1654/) for further information about this category of attack.\n\n### Patches\nThis vulnerability is addressed by applying redaction to sensitive information that was leaking.\n\nPatched versions of Rancher include release `v2.12.3`.\n\n### Workarounds\nIf the deployment can't be upgraded to a fixed version, users are encouraged to create `AuditPolicies` to redact and filter some of those requests as described in our [documentation](https://ranchermanager.docs.rancher.com/how-to-guides/advanced-user-guides/enable-api-audit-log#audit-log-policies).\n\nThe following AuditPolicy can be applied to redact the secrets:\n```yaml\napiVersion: auditlog.cattle.io/v1\nkind: AuditPolicy\nmetadata:\n  name: redactions\nspec:\n  enabled: true\n  additionalRedactions:\n    - headers:\n      - \"Referer\"\n    - paths:\n      - \"$..metadata.annotations['kubectl.kubernetes.io/last-applied-configuration']\"\n```\n\nAlso consider granting access to Rancher's logs only for trusted users.\n\n\n### References\nIf you have any questions or comments about this advisory:\n- Reach out to the [SUSE Rancher Security team](https://github.com/rancher/rancher/security/policy) for security related inquiries.\n- Open an issue in the [Rancher](https://github.com/rancher/rancher/issues/new/choose) repository.\n- Verify with our [support matrix](https://www.suse.com/suse-rancher/support-matrix/all-supported-versions/) and [product support lifecycle](https://www.suse.com/lifecycle/).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/rancher/rancher"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.0-20251013203444-50dc516a19ea"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/rancher/rancher/security/advisories/GHSA-mw39-9qc2-f7mg"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-58269"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rancher/rancher/commit/26ad9216e94f77b5471f638256a6989030572adc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rancher/rancher/commit/50dc516a19ea216e270f738912dc8d0c9ca99d5d"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.suse.com/show_bug.cgi?id=CVE-2024-58269"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rancher/rancher"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-10-24T15:27:13Z",
    "nvd_published_at" : "2025-10-29T15:15:41Z"
  }
}