Shopify ruby-lsp
Ruby LSP has arbitrary code execution through branch setting
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.8critical · scored by CISA ADP · CWE-94
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Shopify ruby-lsp
- < 0.26.9
Fixed in 0.26.9
Shopify Shopify.ruby-lsp
- < 0.10.2
Fixed in 0.10.2
Mitigation
Upgrade ruby-lsp to 0.26.9 or later.
Upgrade Shopify.ruby-lsp to 0.10.2 or later.
References
- Vendor advisory github.com/Shopify/ruby-lsp/security/advisorie…
- Release notes github.com/Shopify/ruby-lsp/releases/tag/v0.26…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.