CVE-2026-48122 Details
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.
A vulnerability in the Ruby LSP Visual Studio Code extension, affecting versions through 0.10.3, allows for arbitrary code execution by misusing workspace-level settings. These settings could override the path to the Ruby executable, version manager executables, or the Bundler Gemfile used at startup. A malicious repository could introduce a .vscode/settings.json file to redirect these values to attacker-controlled targets. When the repository is opened and trusted, the executed code would run with the developer's privileges. This issue does not affect the Ruby LSP gem or clients in other editors.
Users should update to version 0.10.4 or later of the Ruby LSP VS Code extension. After updating, any previously set workspace-level values for the affected settings will be ignored, so users should move those values to user or machine settings to retain their configuration.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No CVSS 3.x data is available for this CVE.
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 12, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Shopify/ruby-lsp/security/advisories/GHSA-2x7g-8mp4-572w | [email protected] |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
No affected product data is available for this CVE.
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 12, 2026 | CVE Modified | CISA-ADP |
| Aug 7, 2026 | New CVE Received | [email protected] |