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

- Severity: High 7.1 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:L/AC:L/AT:P/PR:N/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.54%, higher than 47% of CVEs (2026-12-01)
- Published: 2026-03-27T19:43:14.000Z
- Modified: 2026-06-17T10:38:29.910Z
- Also known as: GHSA-c4r5-fxqw-vh93
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- Shopify ruby-lsp: < 0.26.9
- Shopify Shopify.ruby-lsp: < 0.10.2
- ruby-lsp (RubyGems): before 0.26.9
- shopify ruby_lsp: before 0.10.2; before 0.26.9

## Every score

- GitHub_M: CVSS:4.0 7.1 High `CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/Shopify/ruby-lsp/security/advisories/GHSA-c4r5-fxqw-vh93> (mitigation, vendor-advisory, web)
- <https://github.com/Shopify/ruby-lsp/releases/tag/v0.26.9> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34060> (advisory)
- <https://github.com/Shopify/ruby-lsp> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-lsp/CVE-2026-34060.yml> (web)

## Sources

- CVE List: [CVE-2026-34060](https://www.cve.org/CVERecord?id=CVE-2026-34060), CVE Terms of Use, modified 2026-04-02
- GitHub Advisory Database: [GHSA-c4r5-fxqw-vh93](https://github.com/advisories/GHSA-c4r5-fxqw-vh93), CC-BY-4.0, modified 2026-03-31
- NVD: [CVE-2026-34060](https://nvd.nist.gov/vuln/detail/CVE-2026-34060), Public domain, modified 2026-06-17

---

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