mirror of
https://github.com/neovim/neovim.git
synced 2026-11-02 20:30:40 -06:00
Problem: [security]: s:NetrwLocalRmFile() escapes only the backslash in
the file name before passing it to :execute, so a name
containing "|" injects arbitrary Ex commands when the file is
deleted (cipher-creator)
Solution: Use fnameescape() to correctly escape the file name
(Yasuhiro Matsumoto).
Github Security Advisory:
https://github.com/vim/vim/security/advisories/GHSA-vhh8-v6wx-hjjh
Supported by AI
https://github.com/vim/vim/commit/55bc757a5d436e59d50fe43f7cda94b118f86cb2
Co-authored-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>