VDB

CVE-2026-33412

CVE-2026-33412 PUBLISHED CVSS 5.6 MEDIUM

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.

PackageEcosystemFixed in
vim-debugsourceerrata.rockylinux.org2: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-minimalerrata.rockylinux.org2: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-filesystemerrata.rockylinux.org2:8.2.2637-23.el9_7.2.noarch, 2:8.0.1763-22.el8_10.1.noarch
vim-enhancederrata.rockylinux.org2: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-dataerrata.rockylinux.org2:9.1.083-6.el10_1.3.noarch
vim-debuginfoerrata.rockylinux.org2: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-X11errata.rockylinux.org2: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-debuginfoerrata.rockylinux.org2: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-debuginfoerrata.rockylinux.org2: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
vimerrata.rockylinux.org2: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-debuginfoerrata.rockylinux.org2:9.1.083-6.el10_1.3.s390x
vim-enhanced-debuginfoerrata.rockylinux.org2: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

CVSS 3.1
5.6
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N

Affected products

VendorProductVersions
vimvim< 9.2.0202
Red HatRed Hat Enterprise Linux BaseOS AUS (v.8.4)
Red HatRed Hat Enterprise Linux 9.0 Update Services for SAP Solutions2:8.2.2637-16.el9_0.4
Red HatRed Hat Enterprise Linux AppStream AUS (v. 8.2)
Red HatRed Hat OpenShift Container Platform 4.13
Red HatRed Hat Enterprise Linux BaseOS EUS (v.9.4)
Red HatRed Hat Update Infrastructure 51776868842
Red HatRed Hat Enterprise Linux AppStream E4S (v.8.6)
Red HatRed Hat OpenShift Container Platform 4.14414.92.202605060243-0
Red HatRed Hat Update Infrastructure 51776868772
Red HatRed Hat Enterprise Linux BaseOS AUS (v. 8.2)
Red HatRed Hat AI Inference Server 3.21775740563
Red HatRed Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSION2:7.4.629-5.el6_10.3
Red HatRed Hat Enterprise Linux Server -EXTENSION(v. 6 ELS-EXTENSION)
Red HatRed Hat AI Inference Server 3.31778244546
Red HatRed Hat Enterprise Linux AppStream (v. 8)
Red HatRed Hat Enterprise Linux AppStream TUS (v.8.8)
Red HatRed Hat OpenShift Container Platform 4.194.19.9.6.202604080618-0
Red HatRed Hat Enterprise Linux AppStream E4S (v.8.8)
Red HatRed 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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›