CVE-2025-23390: Github.com/rancher/fleet Fleet Doesn’t Validate A Server’s Vulnerability

MODERATE
Advisory Identifier: GHSA-xgpc-q899-67p8
CVSS 6.3
CWE-295
Published
Advisory Summary

CVE-2025-23390 is a MODERATE (CVSS 6.3) fleet doesn’t validate a server’s vulnerability (CWE-295: Improper Certificate Validation) affecting Github.com/rancher/fleet libraries in the Go ecosystem. The issue involves fleet doesn’t validate a server’s certificate when connecting through ssh. Remediation is available by upgrading affected packages to version 0.10.12, 0.11.7, 0.12.2.

CVE-2025-23390 at a Glance

CVE Identifier CVE-2025-23390
GHSA Identifier GHSA-xgpc-q899-67p8
Severity MODERATE
CVSS v3.1 Base Score 6.3
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Github.com/rancher/fleet
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.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:L/A:L).

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 Low (I:L)
Availability Low (A:L)

How to Fix CVE-2025-23390

To remediate this vulnerability, upgrade all affected Github.com/rancher/fleet 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/fleet fixed: 0.10.12
Upgrade github.com/rancher/fleet to 0.10.12
github.com/rancher/fleet fixed: 0.11.7
Upgrade github.com/rancher/fleet to 0.11.7
github.com/rancher/fleet fixed: 0.12.2
Upgrade github.com/rancher/fleet to 0.12.2
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/fleet

How to Check if You Are Affected

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

inspect dependencies for github.com/rancher/fleet

Analyze the terminal output to locate any version of Github.com/rancher/fleet in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.10.12), 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/fleet, 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 within Fleet where, by default, Fleet will automatically trust a remote server’s certificate when connecting through SSH if the certificate isn’t set in the `known_hosts` file. This could allow the execution of a man-in-the-middle (MitM) attack against Fleet. In case the server that is being connected to has a trusted entry in the known_hosts file, then Fleet will correctly check the authenticity of the presented certificate. 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 include releases `v0.10.12`, `v0.11.7` and `v0.12.2`. The fix involves some key areas with the following changes: - Git latest commit fetcher sources `known_hosts` entries from the following locations, in decreasing order of priority: 1. Secret referenced in a `GitRepo`’s `clientSecretName` field; 2. If no secret is referenced, in a `gitcredential` secret located in the `GitRepo`’s namespace; 3. If that secret does not exist, in a (new) `known-hosts` config map installed by Fleet, populated statically with public entries shared by a few git providers: Github, Gitlab, Bitbucket, Azure DevOps; - Git cloner: same as above. - `fleet apply` command: same as above. The command reads entries from a `FLEET_KNOWN_HOSTS` environment variable. That command is typically run within a container inside a job pod created by Fleet to update bundles from a new commit. However, users may also decide to run it locally, perhaps even with multiple concurrent executions of the command on the same machine. To cater for this, `fleet apply` writes the contents of `FLEET_KNOWN_HOSTS`, if any, to a temporary file with a random name, and deletes that file once bundles have been created. This reduces the risk of conflicts between concurrent runs. This happens regardless of the git repository URL (SSH or not), since a repository may reference artifacts to be retrieved using SSH anyway. **Note about sourcing `known_hosts` entries:** if entries are found in a supported source, whatever that source may be, then those entries will be used. For instance, if wrong entries, or an incomplete set of entries (e.g. only BitBucket entries for a `GitRepo` pointing to Github) are found in a secret referenced in a `GitRepo`’s `clientSecretName` field, they will still be used. This will lead to errors if strict host key checks are enabled, even if matching, correct entries are found in another source with lower priority, such as the `known-hosts` config map. Fleet will not use one source to complement the other. **Note: Fleet v0.9 release line does not have the fix for this CVE. The fix for v0.9 was considered too complex and with the risk of introducing instabilities right before this version goes into end-of-life (EOL), as documented in [SUSE’s Product Support Lifecycle](https://www.suse.com/lifecycle/#suse-rancher-prime) page. Please see the section below for workarounds or consider upgrading to a newer and patched version of Rancher.** ### Workarounds There are no workarounds for this issue. Users are recommended to upgrade, as soon as possible, to a version of Fleet that contains the fixes. ### 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-2025-23390 Affected Github.com/rancher/fleet Versions

3 component(s)
Fixed Versions:
0.10.120.11.70.12.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/rancher/fleet
Go
≥ 0.9.0-rc.1
< 0.10.12
0.10.12
github.com/rancher/fleet
Go
≥ 0.11.0
< 0.11.7
0.11.7
github.com/rancher/fleet
Go
≥ 0.12.0
< 0.12.2
0.12.2

References

Frequently Asked Questions

What is CVE-2025-23390?
CVE-2025-23390 is a security vulnerability in Github.com/rancher/fleet involving Fleet doesn’t validate a server’s certificate when connecting through SSH under CWE-295: Improper Certificate Validation.
Which Github.com/rancher/fleet versions are affected?
Affected versions include releases prior to 0.10.12, 0.11.7, 0.12.2 across affected packages: github.com/rancher/fleet.
What version fixes CVE-2025-23390?
Upgrading to 0.10.12, 0.11.7, 0.12.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/rancher/fleet affected?
Yes, github.com/rancher/fleet is affected in releases prior to 0.10.12, 0.11.7, 0.12.2. Upgrade your dependency to 0.10.12, 0.11.7, 0.12.2 or later.
What is the CVSS score of CVE-2025-23390?
CVE-2025-23390 has a CVSS v3.1 base score of 6.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2025-23390?
CVE-2025-23390 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-2025-23390?
Run the dependency tree command: 'inspect dependencies for github.com/rancher/fleet'. 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-xgpc-q899-67p8",
  "modified" : "2025-05-05T22:00:39Z",
  "published" : "2025-04-25T15:11:07Z",
  "aliases" : [ "CVE-2025-23390" ],
  "summary" : "Fleet doesn’t validate a server’s certificate when connecting through SSH",
  "details" : "### Impact\nA vulnerability has been identified within Fleet where, by default, Fleet will automatically trust a remote server’s certificate when connecting through SSH if the certificate isn’t set in the `known_hosts` file. This could allow the execution of a man-in-the-middle (MitM) attack against Fleet. In case the server that is being connected to has a trusted entry in the known_hosts file, then Fleet will correctly check the authenticity of the presented certificate. \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 include releases `v0.10.12`, `v0.11.7` and `v0.12.2`.\n\nThe fix involves some key areas with the following changes:\n\n- Git latest commit fetcher sources `known_hosts` entries from the following locations, in decreasing order of priority:\n  1. Secret referenced in a `GitRepo`’s `clientSecretName` field;\n  2. If no secret is referenced, in a `gitcredential` secret located in the `GitRepo`’s namespace;\n  3. If that secret does not exist, in a (new) `known-hosts` config map installed by Fleet, populated statically with public entries shared by a few git providers: Github, Gitlab, Bitbucket, Azure DevOps;\n\n- Git cloner: same as above.\n\n- `fleet apply` command: same as above. The command reads entries from a `FLEET_KNOWN_HOSTS` environment variable. That command is typically run within a container inside a job pod created by Fleet to update bundles from a new commit. However, users may also decide to run it locally, perhaps even with multiple concurrent executions of the command on the same machine. To cater for this, `fleet apply` writes the contents of `FLEET_KNOWN_HOSTS`, if any, to a temporary file with a random name, and deletes that file once bundles have been created. This reduces the risk of conflicts between concurrent runs.\nThis happens regardless of the git repository URL (SSH or not), since a repository may reference artifacts to be retrieved using SSH anyway.\n\n**Note about sourcing `known_hosts` entries:** if entries are found in a supported source, whatever that source may be, then those entries will be used. For instance, if wrong entries, or an incomplete set of entries (e.g. only BitBucket entries for a `GitRepo` pointing to Github) are found in a secret referenced in a `GitRepo`’s `clientSecretName` field, they will still be used. This will lead to errors if strict host key checks are enabled, even if matching, correct entries are found in another source with lower priority, such as the `known-hosts` config map. Fleet will not use one source to complement the other.\n\n**Note: Fleet v0.9 release line does not have the fix for this CVE. The fix for v0.9 was considered too complex and with the risk of introducing instabilities right before this version goes into end-of-life (EOL), as documented in [SUSE’s Product Support Lifecycle](https://www.suse.com/lifecycle/#suse-rancher-prime) page. Please see the section below for workarounds or consider upgrading to a newer and patched version of Rancher.**\n\n### Workarounds\nThere are no workarounds for this issue. Users are recommended to upgrade, as soon as possible, to a version of Fleet that contains the fixes.\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:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/rancher/fleet"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.9.0-rc.1"
      }, {
        "fixed" : "0.10.12"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/rancher/fleet"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.11.0"
      }, {
        "fixed" : "0.11.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/rancher/fleet"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.12.0"
      }, {
        "fixed" : "0.12.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/rancher/fleet/security/advisories/GHSA-xgpc-q899-67p8"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rancher/fleet/pull/3571"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rancher/fleet/pull/3572"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rancher/fleet/pull/3573"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rancher/fleet"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rancher/fleet/releases/tag/v0.10.12"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rancher/fleet/releases/tag/v0.11.7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rancher/fleet/releases/tag/v0.12.2"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2025-3649"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-295" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-25T15:11:07Z",
    "nvd_published_at" : null
  }
}