# CVE-2026-33412: Vim affected by Command injection via newline in glob()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.6
- **CVSS:** 5.6 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 1.11% (percentile 66, 2026-11-26)
- **CWE:** CWE-78
- **Published:** 2026-03-24T19:43:07.219Z
- **Modified:** 2026-09-01T12:04:49.042Z

## Who should check

- Anyone running vim \< 9.2.0202

## 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 and fixed versions

- vim: \< 9.2.0202 (cvelist)

## Mitigation

- Upgrade vim to 9.2.0202 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-33412. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-33412.md
Affected: vim < 9.2.0202
Fixed in: vim 9.2.0202

Steps:
1. Search this machine and project for vim: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-33412 being exploited?

There is no confirmed exploitation: CVE-2026-33412 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.11% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-33412?

Medium: CVSS 5.6 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-33412?

vim \< 9.2.0202.

### Is there a fix for CVE-2026-33412?

Yes. Fixed in vim 9.2.0202. Upgrade vim to 9.2.0202 or later.

### How do I check if I'm affected by CVE-2026-33412?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/vim/vim/security/advisories/GHSA-w5jw-f54h-x46c>
- vendor: <https://access.redhat.com/errata/RHSA-2026:6725>
- vendor: <https://access.redhat.com/errata/RHSA-2026:6617>
- vendor: <https://access.redhat.com/errata/RHSA-2026:12274>
- vendor: <https://access.redhat.com/errata/RHSA-2026:7239>
- vendor: <https://access.redhat.com/errata/RHSA-2026:15087>
- vendor: <https://access.redhat.com/errata/RHSA-2026:14773>
- vendor: <https://access.redhat.com/errata/RHSA-2026:10097>
- vendor: <https://access.redhat.com/errata/RHSA-2026:17596>
- vendor: <https://access.redhat.com/errata/RHSA-2026:8423>
- vendor: <https://access.redhat.com/errata/RHSA-2026:7243>
- vendor: <https://access.redhat.com/errata/RHSA-2026:6502>
- vendor: <https://access.redhat.com/errata/RHSA-2026:7711>
- vendor: <https://access.redhat.com/errata/RHSA-2026:6915>
- vendor: <https://access.redhat.com/errata/RHSA-2026:6730>
- vendor: <https://access.redhat.com/errata/RHSA-2026:6729>
- vendor: <https://access.redhat.com/errata/RHSA-2026:6731>
- vendor: <https://access.redhat.com/errata/RHSA-2026:6736>
- vendor: <https://access.redhat.com/errata/RHSA-2026:6619>
- vendor: <https://access.redhat.com/errata/RHSA-2026:6620>
- vendor: <https://access.redhat.com/errata/RHSA-2026:6540>
- vendor: <https://access.redhat.com/errata/RHSA-2026:6539>
- vendor: <https://access.redhat.com/errata/RHSA-2026:8259>
- vendor: <https://access.redhat.com/errata/RHSA-2026:25096>
- vendor: <https://access.redhat.com/errata/RHSA-2026:7335>
- vendor: <https://access.redhat.com/errata/RHSA-2026:16008>
- vendor: <https://access.redhat.com/errata/RHSA-2026:16009>
- vendor: <https://access.redhat.com/errata/RHSA-2026:16174>
- vendor: <https://access.redhat.com/errata/RHSA-2026:9832>
- vendor: <https://access.redhat.com/errata/RHSA-2026:11768>
- vendor: <https://access.redhat.com/errata/RHSA-2026:10065>
- patch: <https://github.com/vim/vim/commit/645ed6597d1ea896c712cd7ddbb6edee79577e9a>
- patch: <http://www.openwall.com/lists/oss-security/2026/03/19/10>
- other: <https://github.com/vim/vim/releases/tag/v9.2.0202>
- other: <https://access.redhat.com/security/cve/CVE-2026-33412>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2450907>
- other: <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33412.json>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-33412>

HTML: <https://flawdb.com/CVE-2026-33412> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-33412>
