Your Linux Can Get Hacked Just by Opening a File in Vim or Neovim Editor
By Mohit Kumar | June 10, 2019
Linux users, beware!
If you haven’t recently updated your Linux operating system, especially the command-line text editor utility, do not even try to view the content of a file using Vim or Neovim.
Security researcher Armin Razmjou recently discovered a high-severity arbitrary OS command execution vulnerability (CVE-2019-12735) in Vim and Neovim—two most popular and powerful command-line text editing applications that come pre-installed with most Linux-based operating systems.
On Linux systems, Vim editor allows users to create, view or edit any file, including text, programming scripts, and documents.
…
The maintainers of Vim (patch 8.1.1365) and Neovim (released in v0.3.6) have released updates for both utilities to address the issue, which users should install as soon as possible.
Besides this, the researcher has also recommended users to:
-
disable modelines feature,
disable “modelineexpr” to disallow expressions in modelines,
use “securemodelines plugin,” a secure alternative to Vim modelines.
Read the full article here
