11 Commits
Author SHA1 Message Date
Christian Brabandt cce141c427 patch 9.2.0699: [security]: possible code execution with python complete
Problem:  [security]: possible code execution with python complete
          (morningbread)
Solution: Use repr() to quote the doc strings correctly

Github Security Advisory:
https://github.com/vim/vim/security/advisories/GHSA-ppj8-wqjf-6fp3

Supported by AI

Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-06-21 20:03:26 +00:00
Christian Brabandt c8c63673bc patch 9.2.0597: [security]: possible code execution with python complete
Problem:  [security]: another possible code execution with python complete
          (David Carliez)
Solution: Strip default expressions and annotations from generated
          source for pythoncomplete and python3complete.

Github Security Advisory:
https://github.com/vim/vim/security/advisories/GHSA-65p9-mwwx-7468

Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-06-04 21:06:09 +00:00
thinca 868ad62cb8 patch 9.2.0568: pythoncomplete: g:pythoncomplete_allow_import had no effect
Problem:  The security patch 9.2.0561 added a vim.eval() call inside
          Completer.evalsource() to honor g:pythoncomplete_allow_import.
          But the 'vim' module is only imported inside the outer
          vimcomplete() / vimpy3complete() function, not at the script's
          top level, so referring to it from a Completer method raises
          NameError.  The surrounding bare 'except' silently swallows
          the error and leaves allow_imports at 0, meaning the opt-in
          never takes effect -- 'import os' (and any other
          buffer-level import) is always skipped, no candidates are
          produced for 'os.<...>' and
          Test_popup_and_preview_autocommand() fails on the Windows
          CI matrix (Linux skips the test because Python 2 is absent).
Solution: Re-import 'vim' at the top of evalsource() in both
          pythoncomplete.vim and python3complete.vim so the eval reads
          the global, and set g:pythoncomplete_allow_import = 1 in the
          test (it is the opt-in intended for callers that trust the
          buffer contents) (thinca).

closes: #20386

Signed-off-by: thinca <thinca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-05-31 12:33:07 +00:00
Christian Brabandt 4b850457e1 patch 9.2.0561: [security]: possible code execution with python3complete
Problem:  [security]: possible code execution with python3complete
Solution: Disable execution of import/from statements

Github Security Advisory:
https://github.com/vim/vim/security/advisories/GHSA-52mc-rq6p-rc7c

Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-05-29 19:08:20 +00:00
Bram Moolenaar 6c391a74fe Update runtime files 2021-09-09 21:55:11 +02:00
Bram Moolenaar 4f4d51a942 Update runtime files. 2020-10-11 13:57:40 +02:00
Bram Moolenaar a0f849ee40 Update runtime files. 2015-10-30 14:37:44 +01:00
Bram Moolenaar b52073ac11 Updated runtime and language files. 2010-03-17 20:02:06 +01:00
Bram Moolenaar 9964e468c0 updated for version 7.1a 2007-05-05 17:54:07 +00:00
Bram Moolenaar fc1421eb53 updated for version 7.0e04 2006-04-20 22:17:20 +00:00
Bram Moolenaar 18144c8423 updated for version 7.0d02 2006-04-12 21:52:12 +00:00