Katalog CVE

CVE-2026-48122

ŚrednieCVSS 5.4
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.13%

Percentyl 3 - wyżej niż 3% wszystkich znanych CVE

Streszczenie

Ruby LSP, implementacja protokołu language server dla Ruby, w rozszerzeniu VS Code przed wersją 0.10.4 ma podatność, która pozwala na nadpisanie ścieżki do executables Ruby, menedżerów wersji lub Gemfile Bundlera. Złośliwe repozytorium z plikiem .vscode/settings.json może ustawić te wartości na cele kontrolowane przez atakującego, co prowadzi do wykonania kodu z uprawnieniami dewelopera. Poprawka w wersji 0.10.4.

Ocena ryzyka

Atakujący może wykorzystać złośliwe repozytorium do wykonania kodu na maszynie dewelopera, co może prowadzić do przejęcia kontroli nad środowiskiem deweloperskim.

Rekomendacja

Zaleca się aktualizację rozszerzenia Ruby LSP VS Code do wersji 0.10.4 lub nowszej.

Oryginalny opis (angielski, źródło NVD)

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.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS