From 3a55309f5643ff8d35caa56c4217b484910e0032 Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Fri, 25 Apr 2025 15:13:47 +0000 Subject: [PATCH] Publish Advisories GHSA-95fc-g4gj-mqmx GHSA-xgpc-q899-67p8 --- .../GHSA-95fc-g4gj-mqmx.json | 114 +++++++++++++++++ .../GHSA-xgpc-q899-67p8.json | 119 ++++++++++++++++++ 2 files changed, 233 insertions(+) create mode 100644 advisories/github-reviewed/2025/04/GHSA-95fc-g4gj-mqmx/GHSA-95fc-g4gj-mqmx.json create mode 100644 advisories/github-reviewed/2025/04/GHSA-xgpc-q899-67p8/GHSA-xgpc-q899-67p8.json diff --git a/advisories/github-reviewed/2025/04/GHSA-95fc-g4gj-mqmx/GHSA-95fc-g4gj-mqmx.json b/advisories/github-reviewed/2025/04/GHSA-95fc-g4gj-mqmx/GHSA-95fc-g4gj-mqmx.json new file mode 100644 index 00000000000..3fe2c559f97 --- /dev/null +++ b/advisories/github-reviewed/2025/04/GHSA-95fc-g4gj-mqmx/GHSA-95fc-g4gj-mqmx.json @@ -0,0 +1,114 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-95fc-g4gj-mqmx", + "modified": "2025-04-25T15:12:44Z", + "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/stev" + }, + "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" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-295" + ], + "severity": "HIGH", + "github_reviewed": true, + "github_reviewed_at": "2025-04-25T15:12:44Z", + "nvd_published_at": null + } +} \ No newline at end of file diff --git a/advisories/github-reviewed/2025/04/GHSA-xgpc-q899-67p8/GHSA-xgpc-q899-67p8.json b/advisories/github-reviewed/2025/04/GHSA-xgpc-q899-67p8/GHSA-xgpc-q899-67p8.json new file mode 100644 index 00000000000..df6e8c7818b --- /dev/null +++ b/advisories/github-reviewed/2025/04/GHSA-xgpc-q899-67p8/GHSA-xgpc-q899-67p8.json @@ -0,0 +1,119 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-xgpc-q899-67p8", + "modified": "2025-04-25T15:11:08Z", + "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" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-295" + ], + "severity": "MODERATE", + "github_reviewed": true, + "github_reviewed_at": "2025-04-25T15:11:07Z", + "nvd_published_at": null + } +} \ No newline at end of file