From 69c9045c0e344ab357120080795656b31032d50d Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Wed, 16 Apr 2025 13:19:17 +0000 Subject: [PATCH] Publish Advisories GHSA-7h8m-pvw3-5gh4 GHSA-h99m-6755-rgwc --- .../GHSA-7h8m-pvw3-5gh4/GHSA-7h8m-pvw3-5gh4.json | 16 ++++++++++++++-- .../GHSA-h99m-6755-rgwc/GHSA-h99m-6755-rgwc.json | 14 +++++++++++--- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/advisories/github-reviewed/2024/10/GHSA-7h8m-pvw3-5gh4/GHSA-7h8m-pvw3-5gh4.json b/advisories/github-reviewed/2024/10/GHSA-7h8m-pvw3-5gh4/GHSA-7h8m-pvw3-5gh4.json index fc0fc467022..17b8c4b69b9 100644 --- a/advisories/github-reviewed/2024/10/GHSA-7h8m-pvw3-5gh4/GHSA-7h8m-pvw3-5gh4.json +++ b/advisories/github-reviewed/2024/10/GHSA-7h8m-pvw3-5gh4/GHSA-7h8m-pvw3-5gh4.json @@ -1,7 +1,7 @@ { "schema_version": "1.4.0", "id": "GHSA-7h8m-pvw3-5gh4", - "modified": "2024-11-05T21:19:15Z", + "modified": "2025-04-16T13:17:11Z", "published": "2024-10-25T19:35:00Z", "aliases": [ "CVE-2023-32197" @@ -59,10 +59,22 @@ } ], "references": [ + { + "type": "WEB", + "url": "https://github.com/rancher/rancher/security/advisories/GHSA-64jq-m7rq-768h" + }, { "type": "WEB", "url": "https://github.com/rancher/rancher/security/advisories/GHSA-7h8m-pvw3-5gh4" }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-32197" + }, + { + "type": "WEB", + "url": "https://bugzilla.suse.com/show_bug.cgi?id=CVE-2023-32197" + }, { "type": "PACKAGE", "url": "https://github.com/rancher/rancher" @@ -76,6 +88,6 @@ "severity": "CRITICAL", "github_reviewed": true, "github_reviewed_at": "2024-10-25T19:35:00Z", - "nvd_published_at": null + "nvd_published_at": "2025-04-16T09:15:24Z" } } \ No newline at end of file diff --git a/advisories/github-reviewed/2024/10/GHSA-h99m-6755-rgwc/GHSA-h99m-6755-rgwc.json b/advisories/github-reviewed/2024/10/GHSA-h99m-6755-rgwc/GHSA-h99m-6755-rgwc.json index 414d87a62cc..c02ceb5e269 100644 --- a/advisories/github-reviewed/2024/10/GHSA-h99m-6755-rgwc/GHSA-h99m-6755-rgwc.json +++ b/advisories/github-reviewed/2024/10/GHSA-h99m-6755-rgwc/GHSA-h99m-6755-rgwc.json @@ -1,13 +1,13 @@ { "schema_version": "1.4.0", "id": "GHSA-h99m-6755-rgwc", - "modified": "2024-10-25T19:37:22Z", + "modified": "2025-04-16T13:17:21Z", "published": "2024-10-25T19:37:22Z", "aliases": [ "CVE-2024-22036" ], "summary": "Rancher Remote Code Execution via Cluster/Node Drivers", - "details": "### Impact\nA vulnerability has been identified within Rancher where a cluster or node driver can be used to escape the `chroot` jail and gain root access to the Rancher container itself. In production environments, further privilege escalation is possible based on living off the land within the Rancher container itself. For the test and development environments, based on a –privileged Docker container, it is possible to escape the Docker container and gain execution access on the host system. \n\nThis happens because:\n- During startup, Rancher appends the `/opt/drivers/management-state/bin` directory to the `PATH` environment variable.\n- In Rancher, the binaries `/usr/bin/rancher-machine`, `/usr/bin/helm_v3`, and `/usr/bin/kustomize` are assigned a UID of 1001 and a GID of 127 instead of being owned by the root user.\n- Rancher employs a jail mechanism to isolate the execution of node drivers from the main process. However, the drivers are executed with excessive permissions.\n- During the registration of new node drivers, its binary is executed with the same user as the parent process, which could enable an attacker to gain elevated privileges by registering a malicious driver.\n- Lack of validation on the driver file type, which allows symbolic links to be used.\n\n\nPlease consult the associated [MITRE ATT&CK - Technique - Privilege Escalation](https://attack.mitre.org/tactics/TA0004/) and [MITRE ATT&CK - Technique - Execution](https://attack.mitre.org/tactics/TA0002/) for further information about this category of attack.\n\n**Since they run at a privileged level, it is recommended to use trusted drivers only.**\n\n### Patches\nThe fix involves some key areas with the following changes:\n\nFixing the `PATH` environment variable:\n- Remove the step that appends `/opt/drivers/management-state/bin` to the `PATH` environment variable.\n\nBinaries permissions:\n- Correct the permission of the binaries `/usr/bin/rancher-machine`, `/usr/bin/helm_v3`, and `/usr/bin/kustomize` so that they are owned by the root user.\n\nImproving Rancher jail security mechanism:\n- A new group `jail-accessors` has been created, and the rancher user has been added to this group.\n- The `jail-accessors` group is granted read and execute permissions for the directories `/var/lib/rancher`, `/var/lib/cattle`, and `/usr/local/bin`.\n- The jail mechanism has been enhanced to execute commands using the non-root `rancher` user and the `jail-accessors` group. Additionally, a new setting, `UnprivilegedJailUser`, has been introduced to manage this behavior, allowing users to opt-out if they need to run drivers in a more privileged context.\n- Limit the devices copied to the jail directory to a minimal set.\n\nFixing node driver registration:\n- The `NewPlugin(driver)` function in the `rancher/machine` module has been updated to allow setting the UID and GID for starting the plugin server. If the environment variables `MACHINE_PLUGIN_UID` and `MACHINE_PLUGIN_GID` are set, their values will be used to configure the user credentials for launching the plugin server. \n- Rancher now sets these environment variables with a non-root UID and GID before invoking the `NewPlugin(driver)` function and then unsets them after retrieving the creation flags.\n\nImprovements on driver package:\n- The `driver` package has been revised to verify that the downloaded driver binary is a regular file.\n- The `driver` package has been revised to verify that the target file in the downloaded tar file is a regular file.\n- The `driver` package now executes the downloaded driver binary within a jail, with a default timeout of 5 seconds.\n\nOther improvements:\n- The helm package has been updated to ensure appropriate permissions are set on the generated kubeconfig file.\n- The `nodeConfig` package has been updated to ensure proper permissions are applied when extracting the node configuration.\n\nPatched versions include releases `2.7.16`, `2.8.9` and `2.9.3`.\n\n### Workarounds\nIf you can't upgrade to a fixed version, please make sure that:\n1. Drivers are only executed from trusted sources.\n2. The use of Admins/Restricted Admins is limited to 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/).\n", + "details": "### Impact\nA vulnerability has been identified within Rancher where a cluster or node driver can be used to escape the `chroot` jail and gain root access to the Rancher container itself. In production environments, further privilege escalation is possible based on living off the land within the Rancher container itself. For the test and development environments, based on a –privileged Docker container, it is possible to escape the Docker container and gain execution access on the host system. \n\nThis happens because:\n- During startup, Rancher appends the `/opt/drivers/management-state/bin` directory to the `PATH` environment variable.\n- In Rancher, the binaries `/usr/bin/rancher-machine`, `/usr/bin/helm_v3`, and `/usr/bin/kustomize` are assigned a UID of 1001 and a GID of 127 instead of being owned by the root user.\n- Rancher employs a jail mechanism to isolate the execution of node drivers from the main process. However, the drivers are executed with excessive permissions.\n- During the registration of new node drivers, its binary is executed with the same user as the parent process, which could enable an attacker to gain elevated privileges by registering a malicious driver.\n- Lack of validation on the driver file type, which allows symbolic links to be used.\n\n\nPlease consult the associated [MITRE ATT&CK - Technique - Privilege Escalation](https://attack.mitre.org/tactics/TA0004/) and [MITRE ATT&CK - Technique - Execution](https://attack.mitre.org/tactics/TA0002/) for further information about this category of attack.\n\n**Since they run at a privileged level, it is recommended to use trusted drivers only.**\n\n### Patches\nThe fix involves some key areas with the following changes:\n\nFixing the `PATH` environment variable:\n- Remove the step that appends `/opt/drivers/management-state/bin` to the `PATH` environment variable.\n\nBinaries permissions:\n- Correct the permission of the binaries `/usr/bin/rancher-machine`, `/usr/bin/helm_v3`, and `/usr/bin/kustomize` so that they are owned by the root user.\n\nImproving Rancher jail security mechanism:\n- A new group `jail-accessors` has been created, and the rancher user has been added to this group.\n- The `jail-accessors` group is granted read and execute permissions for the directories `/var/lib/rancher`, `/var/lib/cattle`, and `/usr/local/bin`.\n- The jail mechanism has been enhanced to execute commands using the non-root `rancher` user and the `jail-accessors` group. Additionally, a new setting, `UnprivilegedJailUser`, has been introduced to manage this behavior, allowing users to opt-out if they need to run drivers in a more privileged context.\n- Limit the devices copied to the jail directory to a minimal set.\n\nFixing node driver registration:\n- The `NewPlugin(driver)` function in the `rancher/machine` module has been updated to allow setting the UID and GID for starting the plugin server. If the environment variables `MACHINE_PLUGIN_UID` and `MACHINE_PLUGIN_GID` are set, their values will be used to configure the user credentials for launching the plugin server. \n- Rancher now sets these environment variables with a non-root UID and GID before invoking the `NewPlugin(driver)` function and then unsets them after retrieving the creation flags.\n\nImprovements on driver package:\n- The `driver` package has been revised to verify that the downloaded driver binary is a regular file.\n- The `driver` package has been revised to verify that the target file in the downloaded tar file is a regular file.\n- The `driver` package now executes the downloaded driver binary within a jail, with a default timeout of 5 seconds.\n\nOther improvements:\n- The helm package has been updated to ensure appropriate permissions are set on the generated kubeconfig file.\n- The `nodeConfig` package has been updated to ensure proper permissions are applied when extracting the node configuration.\n\nPatched versions include releases `2.7.16`, `2.8.9` and `2.9.3`.\n\n### Workarounds\nIf you can't upgrade to a fixed version, please make sure that:\n1. Drivers are only executed from trusted sources.\n2. The use of Admins/Restricted Admins is limited to 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", @@ -78,6 +78,14 @@ "type": "WEB", "url": "https://github.com/rancher/rancher/security/advisories/GHSA-h99m-6755-rgwc" }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-22036" + }, + { + "type": "WEB", + "url": "https://bugzilla.suse.com/show_bug.cgi?id=CVE-2024-22036" + }, { "type": "PACKAGE", "url": "https://github.com/rancher/rancher" @@ -90,6 +98,6 @@ "severity": "CRITICAL", "github_reviewed": true, "github_reviewed_at": "2024-10-25T19:37:22Z", - "nvd_published_at": null + "nvd_published_at": "2025-04-16T09:15:27Z" } } \ No newline at end of file