{"id":"CVE-2026-34060","state":"PUBLISHED","title":"Ruby LSP has arbitrary code execution through branch setting","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.","publishedAt":"2026-03-31T01:59:51.170Z","updatedAt":"2026-04-02T14:51:58.711Z","severity":{"score":7.1,"label":"High","version":"4.0","vector":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["Shopify ruby-lsp","Shopify Shopify.ruby-lsp"],"affected":[{"vendor":"Shopify","product":"ruby-lsp","versions":[{"version":"< 0.26.9","status":"affected"}]},{"vendor":"Shopify","product":"Shopify.ruby-lsp","versions":[{"version":"< 0.10.2","status":"affected"}]}],"references":["https://github.com/Shopify/ruby-lsp/security/advisories/GHSA-c4r5-fxqw-vh93","https://github.com/Shopify/ruby-lsp/releases/tag/v0.26.9"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T20:11:40.391Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/34xxx/CVE-2026-34060.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-34060","state":"PUBLISHED","datePublished":"2026-03-31T01:59:51.170Z","dateUpdated":"2026-04-02T14:51:58.711Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-03-25T16:21:40.866Z"},"containers":{"cna":{"title":"Ruby LSP has arbitrary code execution through branch setting","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Shopify","product":"ruby-lsp","versions":[{"version":"< 0.26.9","status":"affected"}]},{"vendor":"Shopify","product":"Shopify.ruby-lsp","versions":[{"version":"< 0.10.2","status":"affected"}]}],"references":[{"url":"https://github.com/Shopify/ruby-lsp/security/advisories/GHSA-c4r5-fxqw-vh93","name":"https://github.com/Shopify/ruby-lsp/security/advisories/GHSA-c4r5-fxqw-vh93","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Shopify/ruby-lsp/releases/tag/v0.26.9","name":"https://github.com/Shopify/ruby-lsp/releases/tag/v0.26.9","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"ACTIVE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":7.1,"baseSeverity":"HIGH","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","lang":"en","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-03-31T01:59:51.170Z"},"source":{"advisory":"GHSA-c4r5-fxqw-vh93","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":9.8,"attackVector":"NETWORK","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-04-02T14:51:08.644486Z","id":"CVE-2026-34060","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-04-02T14:51:58.711Z"}}]}}}