← volver
CVE-2025-27423

Improper Input Validation in Vim

CVSS 7.1 HIGHEPSS 20.8%CWE-77
En resumen

El plugin tar.vim de Vim ejecuta comandos de shell no deseados al abrir archivos tar especialmente diseñados porque no valida nombres de archivo antes de usarlos en comandos. Un atacante puede engañar a los usuarios para abrir archivos tar maliciosos y ejecutar código arbitrario en el sistema.

Detalle técnico

Vulnerabilidad CWE-77 de validación inadecuada de entrada en el plugin tar.vim (Vim 9.1.0858+) donde nombres de archivo no sanitizados del archivo tar se pasan directamente al comando ex ':read', permitiendo inyección de comando de shell dependiendo del shell configurado. El ataque requiere interacción del usuario para abrir un archivo tar malicioso, pero la explotación exitosa resulta en ejecución de código arbitrario con privilegios del usuario.

Resumen generado y traducido por IA a partir de la descripción oficial.
Vim is an open source, command line text editor. Vim is distributed with the tar.vim plugin, that allows easy editing and viewing of (compressed or uncompressed) tar files. Starting with 9.1.0858, the tar.vim plugin uses the ":read" ex command line to append below the cursor position, however the is not sanitized and is taken literally from the tar archive. This allows to execute shell commands via special crafted tar archives. Whether this really happens, depends on the shell being used ('shell' option, which is set using $SHELL). The issue has been fixed as of Vim patch v9.1.1164
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Productos afectados
vim · vim

¿Quieres saber si tu infraestructura está expuesta a esto?

Hablar con TrueHacking →