7.6high
Rancher: Command injection in Git package
- Severity
- 7.6high CVSS:3.1 by suse
- Exploit likelihood
- 1.33% (higher than 71% of CVEs)
- Published
- Last changed
- Assigned by
- suse
- Also known as
- GHSA-34p5-jp77-fcrc
Description
A Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in SUSE Rancher allows code execution for user with the ability to add an untrusted Helm catalog or modifying the URL configuration used to download KDM (only admin users by default) This issue affects: SUSE Rancher Rancher versions prior to 2.5.17; Rancher versions prior to 2.6.10; Rancher versions prior to 2.7.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| SUSE Rancher | from Rancher before 2.5.17, from 2.5.0 before 2.5.17, from 2.6.0 before 2.6.10, from 2.7.0 before 2.7.1 | CVE List, NVD |
| github.com/rancher/rancher (Go) | from 2.5.0 before 2.5.17, from 2.6.0 before 2.6.10, from 2.7.0 before 2.7.1 | GitHub Advisory Database |
All scores
| suse | 7.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H |
| GitHub | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H |
| NVD | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
A Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in SUSE Rancher allows code execution for user with the ability to add an untrusted Helm catalog or modifying the URL configuration used to download KDM (only admin users by default) This issue affects: SUSE Rancher Rancher versions prior to 2.5.17; Rancher versions prior to 2.6.10; Rancher versions prior to 2.7.1.
GitHub Advisory Database
Impact
An issue was discovered in Rancher from versions 2.5.0 up to and including 2.5.16, 2.6.0 up to and including 2.6.9 and 2.7.0, where a command injection vulnerability is present in the Rancher Git package. This package uses the underlying Git binary available in the Rancher container image to execute Git operations.
Specially crafted commands, when not properly disambiguated, can cause confusion when executed through Git, resulting in command injection in the underlying Rancher host.
This issue can potentially be exploited in Rancher in two ways:
- Adding an untrusted Helm catalog, in the Catalogs menu, that contains maliciously designed repo URL configuration in Helm charts.
- Modifying the URL configuration used to download KDM (Kontainer Driver Metadata) releases.
By default, only the Rancher admin has permission to manage both configurations for the local cluster (the cluster where Rancher is provisioned).
Note: More information about this category of issue in version control system (VCS) tools are available in Snyk's blog post.
Workarounds
Except for only adding trusted catalogs and the KDM URL to Rancher, there is no other workaround besides updating Rancher to a patched version.
Patches
Patched versions include releases 2.5.17, 2.6.10, 2.7.1 and later versions.
It is also important to update to a patched version in case Rancher or its standalone Git package implementation is used as a Go library instead of the application itself. Otherwise, this vulnerability might affect your dependent code.
For more information
If you have any questions or comments about this advisory:
- Reach out to SUSE Rancher Security team for security related inquiries.
- Open an issue in Rancher repository.
- Verify our support matrix and product support lifecycle.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-43758 changed 2025-03-25 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-34p5-jp77-fcrc changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2022-43758 changed 2026-06-17 | Public domain |