RCE in Vim

CVE-2026-33412

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.

Vulnerability class: Command Injection (OS Command Injection)

EPSS: 0.008 (54.0th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 5.6 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N.

Affected products

  • Vim — versions < 9.2.0202

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-33412?
CVE-2026-33412 is a medium-severity vulnerability in Vim, classified under OS Command Injection. CVSS score: 5.6/10. Published 2026-03-24.
How severe is CVE-2026-33412?
Medium severity. CVSS v3 base score is 5.6 out of 10.