# CVE-2026-34060: Ruby LSP has arbitrary code execution through branch setting

- Priority: **Routine**
- Reason: Not severe (CVSS 7.1, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-03-31 · Modified: 2026-04-02
- Aliases: DEBIAN-CVE-2026-34060, GHSA-c4r5-fxqw-vh93
- Record: https://cvemate.com/vulnerability/CVE-2026-34060 · JSON: https://cvemate.com/vulnerability/CVE-2026-34060/json

## Description

```text
Ruby LSP is an implementation of the language server protocol for Ruby. Prior to Shopify.ruby-lsp version 0.10.2 and ruby-lsp version 0.26.9, the rubyLsp.branch VS Code workspace setting was interpolated without sanitization into a generated Gemfile, allowing arbitrary Ruby code execution when a user opens a project containing a malicious .vscode/settings.json. This issue has been patched in Shopify.ruby-lsp version 0.10.2 and ruby-lsp version 0.26.9.
```

## Signals

- CVSS: 9.8 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.544%, percentile 47.117%, 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

- debian ruby-ruby-lsp (Debian): \< 0.26.9-0.1
- RubyGems ruby-lsp (RubyGems): \< 0.26.9
- shopify ruby\_lsp: \< 0.10.2 \| \< 0.26.9
- shopify ruby-lsp: \< 0.26.9
- shopify shopify.ruby-lsp: \< 0.10.2

## References

- <https://github.com/Shopify/ruby-lsp/security/advisories/GHSA-c4r5-fxqw-vh93>
- <https://github.com/Shopify/ruby-lsp/releases/tag/v0.26.9>
- <https://security-tracker.debian.org/tracker/CVE-2026-34060>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34060>
- <https://github.com/Shopify/ruby-lsp>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-lsp/CVE-2026-34060.yml>

---

Data as of 2026-12-05T04:51:19.904Z. 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
