7.5high
[RANCHER] OS command injection in Rancher and Fleet
- Severity
- 7.5high CVSS:3.1 by suse
- Exploit likelihood
- 3.86% (higher than 90% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- suse
- Also known as
- GHSA-qrg7-hfx7-95c5GO-2023-1519
Description
A Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in wrangler of SUSE Rancher allows remote attackers to inject commands in the underlying host via crafted commands passed to Wrangler. This issue affects: SUSE Rancher wrangler version 0.7.3 and prior versions; wrangler version 0.8.4 and prior versions; wrangler version 1.0.0 and prior versions.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| SUSE Rancher | from wrangler up to 0.7.3 | CVE List |
| github.com/rancher/wrangler (Go) | before 0.7.4-security1, from 0.8.0 before 0.8.5-security1, from 1.0.0 before 1.0.1, from 0.8.6 before 0.8.11 | GitHub Advisory Database, Go Vulnerability Database |
| suse wrangler | before 0.7.4, from 0.8.0 before 0.8.5, 1.0.0 | NVD |
All scores
| suse | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/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 wrangler of SUSE Rancher allows remote attackers to inject commands in the underlying host via crafted commands passed to Wrangler. This issue affects: SUSE Rancher wrangler version 0.7.3 and prior versions; wrangler version 0.8.4 and prior versions; wrangler version 1.0.0 and prior versions.
GitHub Advisory Database
Impact
A command injection vulnerability was discovered in Wrangler's Git package affecting versions up to and including v1.0.0.
Wrangler's Git package uses the underlying Git binary present in the host OS or container image to execute Git operations. Specially crafted commands can be passed to Wrangler that will change their behavior and cause confusion when executed through Git, resulting in command injection in the underlying host.
Workarounds
A workaround is to sanitize input passed to the Git package to remove potential unsafe and ambiguous characters. Otherwise, the best course of action is to update to a patched Wrangler version.
Patches
Patched versions include v1.0.1 and later and the backported tags - v0.7.4-security1, v0.8.5-security1 and v0.8.11.
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 or Wrangler repository.
- Verify our support matrix and product support lifecycle.
Go Vulnerability Database
A command injection vulnerability exists in the Wrangler Git package. Specially crafted commands can be passed to Wrangler that will change their behavior and cause confusion when executed through Git, resulting in command injection in the underlying host.
A workaround is to sanitize input passed to the Git package to remove potential unsafe and ambiguous characters. Otherwise, the best course of action is to update to a patched Wrangler version.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-31249 changed 2025-03-25 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qrg7-hfx7-95c5 changed 2023-11-08 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2023-1519 changed 2024-05-20 | CC-BY-4.0 |
| NVD | CVE-2022-31249 changed 2026-06-17 | Public domain |