CVE-2026-33412
Vim affected by Command injection via newline in glob()
Reported by github_m · Published March 24, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| vim-debugsource | errata.rockylinux.org | 2:9.1.083-6.el10_1.3.x86_64, 2:9.1.083-6.el10_1.3.s390x, 2:9.1.083-6.el10_1.3.ppc64le, 2:9.1.083-6.el10_1.3.aarch64, 2:8.2.2637-23.el9_7.2.x86_64, 2:8.2.2637-23.el9_7.2.s390x, 2:8.2.2637-23.el9_7.2.ppc64le, 2:8.0.1763-22.el8_10.1.x86_64, 2:8.0.1763-22.el8_10.1.aarch64 |
| vim-minimal | errata.rockylinux.org | 2:9.1.083-6.el10_1.3.x86_64, 2:9.1.083-6.el10_1.3.s390x, 2:9.1.083-6.el10_1.3.ppc64le, 2:9.1.083-6.el10_1.3.aarch64, 2:8.2.2637-23.el9_7.2.x86_64, 2:8.2.2637-23.el9_7.2.ppc64le |
| vim-filesystem | errata.rockylinux.org | 2:8.2.2637-23.el9_7.2.noarch, 2:8.0.1763-22.el8_10.1.noarch |
| vim-enhanced | errata.rockylinux.org | 2:9.1.083-6.el10_1.3.x86_64, 2:9.1.083-6.el10_1.3.s390x, 2:8.2.2637-23.el9_7.2.x86_64, 2:8.2.2637-23.el9_7.2.s390x, 2:8.0.1763-22.el8_10.1.x86_64, 2:8.0.1763-22.el8_10.1.aarch64 |
| vim-data | errata.rockylinux.org | 2:9.1.083-6.el10_1.3.noarch |
| vim-debuginfo | errata.rockylinux.org | 2:9.1.083-6.el10_1.3.x86_64, 2:9.1.083-6.el10_1.3.s390x, 2:9.1.083-6.el10_1.3.ppc64le, 2:8.2.2637-23.el9_7.2.aarch64, 2:8.0.1763-22.el8_10.1.x86_64, 2:8.0.1763-22.el8_10.1.aarch64 |
| vim-X11 | errata.rockylinux.org | 2:9.1.083-6.el10_1.3.s390x, 2:8.2.2637-23.el9_7.2.ppc64le, 2:8.2.2637-23.el9_7.2.aarch64, 2:8.0.1763-22.el8_10.1.x86_64 |
| vim-minimal-debuginfo | errata.rockylinux.org | 2:9.1.083-6.el10_1.3.x86_64, 2:9.1.083-6.el10_1.3.s390x, 2:8.2.2637-23.el9_7.2.x86_64, 2:8.2.2637-23.el9_7.2.s390x, 2:8.2.2637-23.el9_7.2.ppc64le, 2:8.0.1763-22.el8_10.1.x86_64, 2:8.0.1763-22.el8_10.1.aarch64 |
| vim-X11-debuginfo | errata.rockylinux.org | 2:9.1.083-6.el10_1.3.x86_64, 2:9.1.083-6.el10_1.3.s390x, 2:9.1.083-6.el10_1.3.aarch64, 2:8.0.1763-22.el8_10.1.x86_64, 2:8.0.1763-22.el8_10.1.aarch64 |
| vim | errata.rockylinux.org | 2:9.1.083-6.el10_1.3.src, 2:8.2.2637-23.el9_7.2.src, 2:8.0.1763-22.el8_10.1.src |
| xxd-debuginfo | errata.rockylinux.org | 2:9.1.083-6.el10_1.3.s390x |
| vim-enhanced-debuginfo | errata.rockylinux.org | 2:9.1.083-6.el10_1.3.x86_64, 2:9.1.083-6.el10_1.3.s390x, 2:9.1.083-6.el10_1.3.ppc64le, 2:9.1.083-6.el10_1.3.aarch64, 2:8.2.2637-23.el9_7.2.x86_64, 2:8.2.2637-23.el9_7.2.ppc64le, 2:8.2.2637-23.el9_7.2.aarch64, 2:8.0.1763-22.el8_10.1.aarch64 |
6 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| vim | vim | < 9.2.0202 |
| Red Hat | Red Hat Enterprise Linux BaseOS AUS (v.8.4) | |
| Red Hat | Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | 2:8.2.2637-16.el9_0.4 |
| Red Hat | Red Hat Enterprise Linux AppStream AUS (v. 8.2) | |
| Red Hat | Red Hat OpenShift Container Platform 4.13 | |
| Red Hat | Red Hat Enterprise Linux BaseOS EUS (v.9.4) | |
| Red Hat | Red Hat Update Infrastructure 5 | 1776868842 |
| Red Hat | Red Hat Enterprise Linux AppStream E4S (v.8.6) | |
| Red Hat | Red Hat OpenShift Container Platform 4.14 | 414.92.202605060243-0 |
| Red Hat | Red Hat Update Infrastructure 5 | 1776868772 |
| Red Hat | Red Hat Enterprise Linux BaseOS AUS (v. 8.2) | |
| Red Hat | Red Hat AI Inference Server 3.2 | 1775740563 |
| Red Hat | Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSION | 2:7.4.629-5.el6_10.3 |
| Red Hat | Red Hat Enterprise Linux Server -EXTENSION(v. 6 ELS-EXTENSION) | |
| Red Hat | Red Hat AI Inference Server 3.3 | 1778244546 |
| Red Hat | Red Hat Enterprise Linux AppStream (v. 8) | |
| Red Hat | Red Hat Enterprise Linux AppStream TUS (v.8.8) | |
| Red Hat | Red Hat OpenShift Container Platform 4.19 | 4.19.9.6.202604080618-0 |
| Red Hat | Red Hat Enterprise Linux AppStream E4S (v.8.8) | |
| Red Hat | Red Hat AI Inference Server 3.3 |
…and 75 more
Timeline
- Mar 19, 2026 CVE Published
- Mar 23, 2026 PoC Published (14 in total, the first dated here)
- Mar 25, 2026 EPSS Score (30 in total, the first dated here)
- Mar 25, 2026 Coalition ESS Score (2 in total, the first dated here)
- Apr 2, 2026 Security Advisory (37 in total, the first dated here)
- Apr 3, 2026 Distribution Patch (35 in total, the first dated here)
- Apr 30, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-33412
vulnetix vdb fixes CVE-2026-33412
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-33412/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/vim/vim/security/advisories/GHSA-w5jw-f54h-x46c x_refsource_CONFIRM
- https://github.com/vim/vim/commit/645ed6597d1ea896c712cd7ddbb6edee79577e9a x_refsource_MISC
- https://github.com/vim/vim/releases/tag/v9.2.0202 x_refsource_MISC
- http://www.openwall.com/lists/oss-security/2026/03/19/10 url
- https://access.redhat.com/security/cve/CVE-2026-33412 vdb
- RHBZ#2450907 issue
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33412.json url
- https://access.redhat.com/errata/RHSA-2026:6725 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:6617 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:12274 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:7239 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:15087 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:14773 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:10097 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:17596 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:8423 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:7243 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:6502 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:7711 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:6915 vendor-advisory
…and 17 more