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

> CVE-2026-48122: Workspace settings can override executable and Gemfile paths used by the Ruby LSP VS Code extension. CVSS 5.4 (CVSS 4.0).

Canonical: https://rewindex.com/cve/CVE-2026-48122
Last updated: 2026-10-23T20:10:00Z

- Published: 2026-08-07 22:40 UTC · Updated: 2026-10-23 20:10 UTC · Assigner: GitHub\_M
- CVSS: 5.4 (CVSS 4.0) · Severity: Medium
- EPSS: 0.18%, 7th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-78

## Description

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.

## Affected vendors and products

- Shopify: ruby-lsp

## Tracked companies

- [Shopify](https://rewindex.com/company/shopify.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-48122)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-48122)
- [https://github.com/Shopify/ruby-lsp/security/advisories/GHSA-2x7g-8mp4-572w](https://github.com/Shopify/ruby-lsp/security/advisories/GHSA-2x7g-8mp4-572w)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2026-48122 · Markdown: https://rewindex.com/cve/CVE-2026-48122.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-48122 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T02:15:51.094Z
