CVE-2023-32198: Github.com/rancher/steve Steve Doesn’t Verify A Server’s Vulnerability

HIGH
Advisory Identifier: GHSA-95fc-g4gj-mqmx
CVSS 8.0
CWE-295
Published
Advisory Summary

CVE-2023-32198 is a HIGH (CVSS 8.0) steve doesn’t verify a server’s vulnerability (CWE-295: Improper Certificate Validation) affecting Github.com/rancher/steve libraries in the Go ecosystem. The issue involves steve doesn’t verify a server’s certificate and is susceptible to man-in-the-middle (mitm) attacks. Remediation is available by upgrading affected packages to version 0.2.1, 0.3.3, 0.4.4, 0.5.13.

CVE-2023-32198 at a Glance

CVE Identifier CVE-2023-32198
GHSA Identifier GHSA-95fc-g4gj-mqmx
Severity HIGH
CVSS v3.1 Base Score 8.0
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Github.com/rancher/steve
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.0

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

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

How to Fix CVE-2023-32198

To remediate this vulnerability, upgrade all affected Github.com/rancher/steve 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/steve fixed: 0.2.1
Upgrade github.com/rancher/steve to 0.2.1
github.com/rancher/steve fixed: 0.3.3
Upgrade github.com/rancher/steve to 0.3.3
github.com/rancher/steve fixed: 0.4.4
Upgrade github.com/rancher/steve to 0.4.4
github.com/rancher/steve fixed: 0.5.13
Upgrade github.com/rancher/steve to 0.5.13
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/steve

How to Check if You Are Affected

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

inspect dependencies for github.com/rancher/steve

Analyze the terminal output to locate any version of Github.com/rancher/steve in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.1), 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-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Github.com/rancher/steve, 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 A vulnerability has been identified in Steve where by default it was using an insecure option that did not validate the certificate presented by the remote server while performing a TLS connection. This could allow the execution of a man-in-the-middle (MitM) attack against services using Steve. For example, Rancher relies on Steve as a dependency for its user interface (UI) to proxy requests to Kubernetes clusters. Users who have the permission to create a service in Rancher’s local cluster can take over Rancher’s UI and display their own UI to gather sensitive information. This is only possible when the setting `ui-offline-preferred` is manually set to `remote` (by default Rancher sets it to `dynamic`). This enables further attacks such as cross-site scripting (XSS), or tampering the UI to collect passwords from other users etc. Please consult the associated [MITRE ATT&CK - Technique - Adversary-in-the-Middle](https://attack.mitre.org/techniques/T1557/) for further information about this category of attack. ### Patches Patched versions of Steve include releases `v0.2.1`, `v0.3.3`, `v0.4.4` and `v0.5.13`. This vulnerability is addressed by changing Steve to always verify a server’s certificate based on Go’s TLS settings. ### Workarounds If you can't upgrade to a fixed version, please make sure that you are only using Steve to connect to trusted servers. ### 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-2023-32198 Affected Github.com/rancher/steve Versions

4 component(s)
Fixed Versions:
0.2.10.3.30.4.40.5.13
Product / Package Ecosystem Affected Versions Fixed Version
github.com/rancher/steve
Go
≥ 0.2.0
< 0.2.1
0.2.1
github.com/rancher/steve
Go
≥ 0.3.0
< 0.3.3
0.3.3
github.com/rancher/steve
Go
≥ 0.4.0
< 0.4.4
0.4.4
github.com/rancher/steve
Go
≥ 0.5.0
< 0.5.13
0.5.13

References

Frequently Asked Questions

What is CVE-2023-32198?
CVE-2023-32198 is a security vulnerability in Github.com/rancher/steve involving Steve doesn’t verify a server’s certificate and is susceptible to man-in-the-middle (MitM) attacks under CWE-295: Improper Certificate Validation.
Which Github.com/rancher/steve versions are affected?
Affected versions include releases prior to 0.2.1, 0.3.3, 0.4.4, 0.5.13 across affected packages: github.com/rancher/steve.
What version fixes CVE-2023-32198?
Upgrading to 0.2.1, 0.3.3, 0.4.4, 0.5.13 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/rancher/steve affected?
Yes, github.com/rancher/steve is affected in releases prior to 0.2.1, 0.3.3, 0.4.4, 0.5.13. Upgrade your dependency to 0.2.1, 0.3.3, 0.4.4, 0.5.13 or later.
What is the CVSS score of CVE-2023-32198?
CVE-2023-32198 has a CVSS v3.1 base score of 8.0 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2023-32198?
CVE-2023-32198 is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check Go dependencies for CVE-2023-32198?
Run the dependency tree command: 'inspect dependencies for github.com/rancher/steve'. 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-95fc-g4gj-mqmx",
  "modified" : "2025-05-05T22:02:01Z",
  "published" : "2025-04-25T15:12:44Z",
  "aliases" : [ "CVE-2023-32198" ],
  "summary" : "Steve doesn’t verify a server’s certificate and is susceptible to man-in-the-middle (MitM) attacks",
  "details" : "### Impact\nA vulnerability has been identified in Steve where by default it was using an insecure option that did not validate the certificate presented by the remote server while performing a TLS connection. This could allow the execution of a man-in-the-middle (MitM) attack against services using Steve.\n\nFor example, Rancher relies on Steve as a dependency for its user interface (UI) to proxy requests to Kubernetes clusters. Users who have the permission to create a service in Rancher’s local cluster can take over Rancher’s UI and display their own UI to gather sensitive information. This is only possible when the setting `ui-offline-preferred` is manually set to `remote` (by default Rancher sets it to `dynamic`). This enables further attacks such as cross-site scripting (XSS), or tampering the UI to collect passwords from other users etc.\n\nPlease consult the associated  [MITRE ATT&CK - Technique - Adversary-in-the-Middle](https://attack.mitre.org/techniques/T1557/) for further information about this category of attack.\n\n### Patches\nPatched versions of Steve include releases `v0.2.1`, `v0.3.3`, `v0.4.4` and `v0.5.13`.\n\nThis vulnerability is addressed by changing Steve to always verify a server’s certificate based on Go’s TLS settings.\n\n### Workarounds\nIf you can't upgrade to a fixed version, please make sure that you are only using Steve to connect to trusted servers.\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:H/PR:H/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/rancher/steve"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.2.0"
      }, {
        "fixed" : "0.2.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/rancher/steve"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.3.0"
      }, {
        "fixed" : "0.3.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/rancher/steve"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.4.0"
      }, {
        "fixed" : "0.4.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/rancher/steve"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.5.0"
      }, {
        "fixed" : "0.5.13"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/rancher/steve/security/advisories/GHSA-95fc-g4gj-mqmx"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rancher/steve"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2025-3648"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-295" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-25T15:12:44Z",
    "nvd_published_at" : null
  }
}