Bug 36883 - CVE-2019-12735: Modelines allow arbitrary code execution
Summary: CVE-2019-12735: Modelines allow arbitrary code execution
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: neovim (show other bugs)
Version: unstable
Hardware: all Linux
: P3 critical
Assignee: cow@altlinux.org
QA Contact: qa-sisyphus
URL: https://cve.mitre.org/cgi-bin/cvename...
Keywords:
Depends on:
Blocks: 36999
  Show dependency tree
 
Reported: 2019-06-08 17:11 MSK by Sergey Vlasov
Modified: 2019-07-09 16:12 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Vlasov 2019-06-08 17:11:07 MSK
При включенной опции modeline возможно выполнение произвольного кода при открытии файла.

Пример:

:!uname -a||" vi:fen:fdm=expr:fde=assert_fails("source\!\ \%"):fdl=0:fdt="

См. также:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930024
https://github.com/neovim/neovim/issues/10130
(в релизе 0.3.7 проблема починена не полностью)
Comment 1 Владимир Диденко 2019-06-08 17:14:21 MSK
Ждем, когда в релизе починят полностью.
Comment 2 Владимир Диденко 2019-07-04 21:57:46 MSK
В сизиф ушел neovim 0.3.8 с правильным фиксом.