macvim-dev / macvim-dev/macvim
[Security] MacVim affected by CVE-2026-42307 — netrw OS command injection (vim < 9.2.0383)
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Vim Script
- Estrellas
- 7.9k
- Forks
- 691
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
[Security] MacVim affected by CVE-2026-42307 — netrw OS command injection (vim < 9.2.0383)
Summary
MacVim bundles the vim source at version 9.2 (patches 1-332 in the current build), which is
below the patched version 9.2.0383 that fixes CVE-2026-42307.
Vulnerability Details
- Upstream CVE: CVE-2026-42307
- Inherited from:
vim/vim - Affected code:
runtime/autoload/netrw.vim— netrw standard plugin - Vulnerability type: CWE-78 — OS Command Injection
- Fixed in: vim 9.2.0383 (commit
405e2fb6d54d5653523809e2853d99d1c000a5fc)
Root Cause
Prior to vim 9.2.0383, an OS command injection vulnerability exists in the netrw standard
plugin bundled with vim. By inducing a user to open a crafted URL (e.g., using the sftp://
or file:// protocol handlers), an attacker can execute arbitrary shell commands. Netrw
constructs shell commands from user-controlled URL components without adequate sanitization.
An attacker who can trick a user into opening a specially crafted URL in vim (e.g., via a
malicious link in a file opened for editing) can achieve arbitrary command execution.
Affected MacVim Version
MacVim r183 (vim 9.2 patches 1-332) — current HEAD as of 2026-05-18.
The fix commit 405e2fb6d54d5653523809e2853d99d1c000a5fc from vim/vim is not present
in the macvim-dev/macvim repository:
git log --all --oneline | grep 405e2fb6 # returns no output
Suggested Fix
Merge or cherry-pick vim/vim patches up to at least 9.2.0383:
References
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza comparando el archivo runtime/autoload/netrw.vim incluido y los parches de Vim en MacVim con el commit upstream 405e2fb6d54d5653523809e2853d99d1c000a5fc. Confirma que la versión de Vim incluida alcanza al menos 9.2.0383; después, compila MacVim y verifica que la corrección de seguridad upstream esté presente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- vim
- Área
- security
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Tranquilo
- Claridad
- Bien especificado
- Aptitud para principiantes
- 68/100