neovim/runtime
zeertzjq 7bf0963d48
vim-patch:9.0.1833: [security] runtime file fixes (#24969)
Problem:  runtime files may execute code in current dir
Solution: only execute, if not run from current directory

The perl, zig and ruby filetype plugins and the zip and gzip autoload
plugins may try to load malicious executable files from the current
working directory.  This is especially a problem on windows, where the
current directory is implicitly in your $PATH and windows may even run a
file with the extension `.bat` because of $PATHEXT.

So make sure that we are not trying to execute a file from the current
directory. If this would be the case, error out (for the zip and gzip)
plugins or silently do not run those commands (for the ftplugins).

This assumes, that only the current working directory is bad. For all
other directories, it is assumed that those directories were
intentionally set to the $PATH by the user.

816fbcc262

Co-authored-by: Christian Brabandt <cb@256bit.org>
2023-09-01 11:38:31 +08:00
..
autoload vim-patch:9.0.1833: [security] runtime file fixes (#24969) 2023-09-01 11:38:31 +08:00
colors vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
compiler vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
doc feat(treesitter): improve query error message 2023-08-31 13:33:40 +01:00
ftplugin vim-patch:9.0.1833: [security] runtime file fixes (#24969) 2023-09-01 11:38:31 +08:00
indent vim-patch:0382f05dbd65 2023-08-29 11:32:46 +02:00
keymap vim-patch:e8d6f03f6a61 2023-08-23 20:36:16 +01:00
lua refactor(lsp): add type annotation for lsp.Client.server_capabilities (#24925) 2023-08-31 10:14:20 +02:00
macros vim-patch:e8d6f03f6a61 2023-08-23 20:36:16 +01:00
pack/dist/opt refactor(termdebug): reindent some things 2023-08-25 11:24:52 +01:00
plugin feat(treesitter): add a query editor (#24703) 2023-08-25 13:17:36 -05:00
queries build(deps): bump tree-sitter-python to v0.20.4 2023-08-27 10:03:24 +09:00
spell feat(runtime): import cleanadd.vim from Vim (#17699) 2022-03-13 04:52:45 +00:00
syntax vim-patch:1610528cc305 2023-08-31 10:58:54 +02:00
tools vim-patch:e80086446cc2 (#19848) 2022-08-20 10:04:55 +02:00
tutor fix(tutor): don't use concealed text in expected lines #24316 2023-07-11 10:09:44 -07:00
CMakeLists.txt refactor(build): move the last generator from scripts/ to src/nvim/generators 2023-04-21 16:46:35 +02:00
delmenu.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
filetype.lua fix(filetype): make sure buffer is valid before call nvim_buf_call (#24922) 2023-08-30 10:14:58 -05:00
ftoff.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
ftplugin.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
ftplugof.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
indent.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
indoff.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
macmap.vim
makemenu.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
menu.vim vim-patch:e059fae10044 2023-08-24 11:33:06 +09:00
mswin.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
neovim.ico feat(windows): show icon in terminal titlebar, taskbar #20607 2022-10-13 05:48:12 -07:00
nvim.appdata.xml NVIM v0.9.0 2023-04-07 13:26:29 +02:00
nvim.desktop build(nvim.desktop): central Kurdish translation #17065 2022-05-13 11:58:22 -07:00
nvim.png
optwin.vim vim-patch:0b8b145bf8bf 2023-08-31 10:58:54 +02:00
synmenu.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00