Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 97%

CVE-2026-48122: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Shopify ruby-lsp

0
Medium
VulnerabilityCVE-2026-48122cvecve-2026-48122cwe-78
Published: 08/07/2026 (08/07/2026, 22:40:23 UTC)
Source: CVE Database V5
Vendor/Project: Shopify
Product: ruby-lsp

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.

CVSS v4.0

Score 5.4medium

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
Active
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/15/2026, 14:42:46 UTC

Technical Analysis

Ruby LSP is a language server protocol implementation for Ruby. In the VS Code extension before version 0.10.4, several workspace-level settings could be overridden by a malicious .vscode/settings.json file in a repository. This includes paths to the Ruby executable, version manager executables, or Bundler Gemfile used at startup. If a developer opens and trusts such a repository, the attacker-controlled settings could lead to execution of arbitrary code with the developer's privileges. The vulnerability is specific to the VS Code extension and does not affect the Ruby LSP gem or other editor clients. The issue is fixed in version 0.10.4 of the Ruby LSP VS Code extension.

Potential Impact

An attacker who can convince a developer to open and trust a malicious repository containing a crafted .vscode/settings.json file can execute arbitrary code with the developer's privileges. This could lead to compromise of the developer's environment and potentially further access depending on the developer's permissions. The vulnerability requires user interaction (opening and trusting the repository) and local privileges (developer privileges).

Mitigation Recommendations

Upgrade the Ruby LSP VS Code extension to version 0.10.4 or later, which fixes this vulnerability. Avoid opening and trusting repositories from untrusted sources. Since no official patch link or vendor advisory is provided, check the VS Code marketplace or Shopify's official channels for the update. Patch status is not yet confirmed by a vendor advisory; verify current remediation guidance from the vendor.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-05-20T18:46:58.290Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a7662babf8831d5394db830

Added to database: 08/07/2026, 22:56:58 UTC

Last enriched: 08/15/2026, 14:42:46 UTC

Last updated: 09/08/2026, 01:52:14 UTC

Views: 59

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses