# CVE-2026-48122: Workspace settings can override executable and Gemfile paths used by the Ruby LSP VS Code extension

- Priority: **Routine**
- Reason: Not severe (CVSS 5.4, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-07 · Modified: 2026-08-12
- Aliases: UBUNTU-CVE-2026-48122
- Record: https://cvemate.com/vulnerability/CVE-2026-48122 · JSON: https://cvemate.com/vulnerability/CVE-2026-48122/json

## Description

```text
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.
```

## Signals

- CVSS: 5.4 medium (v4.0, CVE.org) CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- EPSS: 0.125%, percentile 2.388%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- ubuntu ruby-ruby-lsp (Ubuntu): All versions (No fix recorded)
- shopify ruby-lsp: \< 0.10.4

## References

- <https://github.com/Shopify/ruby-lsp/security/advisories/GHSA-2x7g-8mp4-572w>
- <https://ubuntu.com/security/CVE-2026-48122>
- <https://www.cve.org/CVERecord?id=CVE-2026-48122>

---

Data as of 2026-12-05T04:59:20.848Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
