Vim is an open source, command line text editor. Prior to version 9.2.0202, a command injection vulnerability exists in Vims glob() function on Unix-like systems. By including a newline character (n) in a pattern passed to glob(), an attacker may be able to execute arbitrary shell commands. This vulnerability depends on the users shell setting. This issue has been patched in version 9.2.0202.
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Vim | Vim | * | 9.2.0202 (excluding) |
| Red Hat Enterprise Linux 10 | RedHat | vim-2:9.1.083-6.el10_1.3 | * |
| Red Hat Enterprise Linux 10.0 Extended Update Support | RedHat | vim-2:9.1.083-5.el10_0.2 | * |
| Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSION | RedHat | vim-2:7.4.629-5.el6_10.3 | * |
| Red Hat Enterprise Linux 7 Extended Lifecycle Support | RedHat | vim-2:7.4.629-8.el7_9.1 | * |
| Red Hat Enterprise Linux 8 | RedHat | vim-2:8.0.1763-22.el8_10.1 | * |
| Red Hat Enterprise Linux 8 | RedHat | vim-2:8.0.1763-22.el8_10.1 | * |
| Red Hat Enterprise Linux 8.2 Advanced Update Support | RedHat | vim-2:8.0.1763-13.el8_2.1 | * |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | RedHat | vim-2:8.0.1763-15.el8_4.1 | * |
| Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | RedHat | vim-2:8.0.1763-15.el8_4.1 | * |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | RedHat | vim-2:8.0.1763-19.el8_6.5 | * |
| Red Hat Enterprise Linux 8.6 Telecommunications Update Service | RedHat | vim-2:8.0.1763-19.el8_6.5 | * |
| Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions | RedHat | vim-2:8.0.1763-19.el8_6.5 | * |
| Red Hat Enterprise Linux 8.8 Telecommunications Update Service | RedHat | vim-2:8.0.1763-20.el8_8.1 | * |
| Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | RedHat | vim-2:8.0.1763-20.el8_8.1 | * |
| Red Hat Enterprise Linux 9 | RedHat | vim-2:8.2.2637-23.el9_7.2 | * |
| Red Hat Enterprise Linux 9 | RedHat | vim-2:8.2.2637-23.el9_7.2 | * |
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | RedHat | vim-2:8.2.2637-16.el9_0.4 | * |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | RedHat | vim-2:8.2.2637-20.el9_2.1 | * |
| Red Hat Enterprise Linux 9.4 Extended Update Support | RedHat | vim-2:8.2.2637-20.el9_4.2 | * |
| Red Hat Enterprise Linux 9.6 Extended Update Support | RedHat | vim-2:8.2.2637-22.el9_6.2 | * |
| Red Hat OpenShift Container Platform 4.12 | RedHat | rhcos-412.86.202604281506-0 | * |
| Red Hat OpenShift Container Platform 4.13 | RedHat | rhcos-413.92.202604080111-0 | * |
| Red Hat OpenShift Container Platform 4.14 | RedHat | rhcos-414.92.202605060243-0 | * |
| Red Hat OpenShift Container Platform 4.15 | RedHat | rhcos-415.92.202605060220-0 | * |
| Red Hat OpenShift Container Platform 4.16 | RedHat | rhcos-416.94.202604211449-0 | * |
| Red Hat OpenShift Container Platform 4.17 | RedHat | rhcos-417.94.202605112123-0 | * |
| Red Hat OpenShift Container Platform 4.18 | RedHat | rhcos-418.94.202604140044-0 | * |
| Red Hat OpenShift Container Platform 4.19 | RedHat | rhcos-4.19.9.6.202604080618-0 | * |
| Red Hat AI Inference Server 3.2 | RedHat | rhaiis/model-opt-cuda-rhel9:1780681984 | * |
| Red Hat AI Inference Server 3.2 | RedHat | rhaiis/vllm-cuda-rhel9:1775740563 | * |
| Red Hat AI Inference Server 3.3 | RedHat | rhaiis/model-opt-cuda-rhel9:1778244559 | * |
| Red Hat AI Inference Server 3.3 | RedHat | rhaiis/vllm-rocm-rhel9:1778244531 | * |
| Red Hat AI Inference Server 3.3 | RedHat | rhaiis/vllm-spyre-rhel9:1778244546 | * |
| Red Hat Insights proxy 1.5 | RedHat | insights-proxy/insights-proxy-container-rhel9:1776868961 | * |
| Red Hat Update Infrastructure 5 | RedHat | rhui5/cds-rhel9:1776868774 | * |
| Red Hat Update Infrastructure 5 | RedHat | rhui5/haproxy-rhel9:1776868744 | * |
| Red Hat Update Infrastructure 5 | RedHat | rhui5/installer-rhel9:1776868772 | * |
| Red Hat Update Infrastructure 5 | RedHat | rhui5/rhua-rhel9:1776868842 | * |
| Red Hat Update Infrastructure 5 | RedHat | rhui5/cds-kubernetes-tp-rhel9:1777459441 | * |
| Red Hat Update Infrastructure 5 | RedHat | rhui5/installer-tp-rhel9:1777454300 | * |
| Red Hat Update Infrastructure 5 | RedHat | rhui5/rhua-tp-rhel9:1777459504 | * |
| Vim | Ubuntu | esm-infra-legacy/trusty | * |
| Vim | Ubuntu | esm-infra-legacy/xenial | * |
| Vim | Ubuntu | esm-infra/bionic | * |
| Vim | Ubuntu | esm-infra/focal | * |
| Vim | Ubuntu | esm-infra/xenial | * |
| Vim | Ubuntu | jammy | * |
| Vim | Ubuntu | noble | * |
| Vim | Ubuntu | questing | * |
| Vim | Ubuntu | upstream | * |
This weakness can lead to a vulnerability in environments in which the attacker does not have direct access to the operating system, such as in web applications. Alternately, if the weakness occurs in a privileged program, it could allow the attacker to specify commands that normally would not be accessible, or to call alternate commands with privileges that the attacker does not have. The problem is exacerbated if the compromised process does not follow the principle of least privilege, because the attacker-controlled commands may run with special system privileges that increases the amount of damage. There are at least two subtypes of OS command injection:
From a weakness standpoint, these variants represent distinct programmer errors. In the first variant, the programmer clearly intends that input from untrusted parties will be part of the arguments in the command to be executed. In the second variant, the programmer does not intend for the command to be accessible to any untrusted party, but the programmer probably has not accounted for alternate ways in which malicious attackers can provide input.