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

- Severity: Medium 5.4 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-08-07T22:40:23.811Z
- Modified: 2026-10-23T20:10:00.160Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Shopify ruby-lsp: < 0.10.4

## References

- <https://github.com/Shopify/ruby-lsp/security/advisories/GHSA-2x7g-8mp4-572w>

## Sources

- CVE List: [CVE-2026-48122](https://www.cve.org/CVERecord?id=CVE-2026-48122), CVE Terms of Use, modified 2026-08-12
- NVD: [CVE-2026-48122](https://nvd.nist.gov/vuln/detail/CVE-2026-48122), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-48122 · Whole record: https://cve.day/CVE-2026-48122.json · Rebuilt by cve.day 2026-11-25T22:59:31.901Z
