CVE-2026-33412
JSON

5.6medium

Vim affected by Command injection via newline in glob()

Severity
5.6medium CVSS:3.1 by GitHub_M
Exploit likelihood
1.11% (higher than 66% of CVEs)
Published
Last changed
Assigned by
GitHub_M

Description

Vim is an open source, command line text editor. Prior to version 9.2.0202, a command injection vulnerability exists in Vim's 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 user's 'shell' setting. This issue has been patched in version 9.2.0202.

Affected

Product or packageVersionsReported by
vim vim< 9.2.0202, before 9.2.0202CVE List, NVD
vimNot specified
Not affected: from 2:9.1.083-6.el10_1.3 before *, from 2:9.1.083-5.el10_0.2 before *, from 2:7.4.629-5.el6_10.3 before *, from 2:7.4.629-8.el7_9.1 before *, from 2:8.0.1763-22.el8_10.1 before *, from 2:8.0.1763-13.el8_2.1 before *
CVE List
rhcosNot specified
Not affected: from 412.86.202604281506-0 before *, from 413.92.202604080111-0 before *, from 414.92.202605060243-0 before *, from 415.92.202605060220-0 before *, from 416.94.202604211449-0 before *, from 417.94.202605112123-0 before *
CVE List
rhaiis/model-opt-cuda-rhel9Not specified
Not affected: from 1780681984 before *, from 1778244559 before *
CVE List
rhaiis/vllm-cuda-rhel9Not specified
Not affected: from 1775740563 before *
CVE List
rhaiis/vllm-rocm-rhel9Not specified
Not affected: from 1778244531 before *
CVE List
rhaiis/vllm-spyre-rhel9Not specified
Not affected: from 1778244546 before *
CVE List
insights-proxy/insights-proxy-container-rhel9Not specified
Not affected: from 1776868961 before *
CVE List
rhui5/cds-rhel9Not specified
Not affected: from 1776868774 before *
CVE List
rhui5/haproxy-rhel9Not specified
Not affected: from 1776868744 before *
CVE List
rhui5/installer-rhel9Not specified
Not affected: from 1776868772 before *
CVE List
rhui5/rhua-rhel9Not specified
Not affected: from 1776868842 before *
CVE List

All scores

GitHub_M5.6medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N
redhat-SADP7.3high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
NVD7.3high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-78

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

Vim is an open source, command line text editor. Prior to version 9.2.0202, a command injection vulnerability exists in Vim's 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 user's 'shell' setting. This issue has been patched in version 9.2.0202.

NVD (es)

Vim es un editor de texto de línea de comandos, de código abierto. Antes de la versión 9.2.0202, existe una vulnerabilidad de inyección de comandos en la función glob() de Vim en sistemas tipo Unix. Al incluir un carácter de nueva línea (\n) en un patrón pasado a glob(), un atacante podría ejecutar comandos de shell arbitrarios. Esta vulnerabilidad depende de la configuración 'shell' del usuario. Este problema ha sido parcheado en la versión 9.2.0202.

References

https://github.com/vim/vim/security/advisories/GHSA-w5jw-f54h-x46cpatch, vendor-advisory
https://github.com/vim/vim/commit/645ed6597d1ea896c712cd7ddbb6edee79577e9apatch
https://github.com/vim/vim/releases/tag/v9.2.0202product
http://www.openwall.com/lists/oss-security/2026/03/19/10mailing-list, patch, third-party-advisory
https://access.redhat.com/security/cve/CVE-2026-33412vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2450907issue-tracking
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33412.json
https://access.redhat.com/errata/RHSA-2026:6725vendor-advisory
https://access.redhat.com/errata/RHSA-2026:6617vendor-advisory
https://access.redhat.com/errata/RHSA-2026:12274vendor-advisory
https://access.redhat.com/errata/RHSA-2026:7239vendor-advisory
https://access.redhat.com/errata/RHSA-2026:15087vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-33412 changed 2026-09-01CVE Terms of Use
NVDCVE-2026-33412 changed 2026-07-15Public domain