Ruby LSP — это реализация протокола языкового сервера для Ruby. Некоторые настройки уровня рабочей области в расширении Ruby LSP VS Code до версии 0.10.4 могли переопределять путь к исполняемому файлу Ruby, исполняемым файлам менеджера версий или Gemfile Bundler, используемому при запуске. Вредоносный репозиторий, содержащий файл `.vscode/settings.json`, может установить эти значения для целей, контролируемых злоумышленником.
Открытие репозитория и доверие к нему приведет к выполнению кода с привилегиями разработчика. Гем Ruby LSP и клиенты языкового сервера в других редакторах не затрагиваются. Версия 0.10.4 расширения Ruby LSP VS Code устраняет проблему.
Показать оригинальное описание (EN)
Ruby LSP is an implementation of the language server protocol for Ruby. Several workspace-level settings in the Ruby LSP VS Code extension prior to version 0.10.4 could override the path to the Ruby executable, the version manager executables, or the Bundler `Gemfile` used at startup. A malicious repository containing a `.vscode/settings.json` could set these values to attacker-controlled targets. Opening and trusting the repository would then execute code with the privileges of the developer. The Ruby LSP gem and clients of the language server in other editors are not affected. Version 0.10.4 of the Ruby LSP VS Code extension fixes the issue.
Характеристики атаки
Последствия
Строка CVSS v4.0