A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-61141

CVE-2025-61141: sqls-server Command Injection Vulnerability

CVE-2025-61141 is a command injection flaw in sqls-server/sqls 0.2.28 that allows attackers to execute arbitrary commands via unsanitized EDITOR variable. This article covers technical details, affected versions, and mitigation.

Updated: May 19, 2026

CVE-2025-61141 Overview

CVE-2025-61141 is a command injection vulnerability in sqls-server/sqls version 0.2.28, an SQL language server written in Go. The flaw resides in the openEditor function, which passes the user-controlled EDITOR environment variable and config file path to sh -c without input sanitization. Attackers can leverage this to execute arbitrary shell commands on the host system through the config command. The vulnerability is categorized under [CWE-77] (Improper Neutralization of Special Elements used in a Command).

Critical Impact

Successful exploitation enables arbitrary command execution in the context of the user running the sqls process, leading to potential system compromise.

Affected Products

  • sqls-server/sqls version 0.2.28
  • SQL language server deployments using the vulnerable config command
  • Editor integrations (LSP clients) invoking sqls with attacker-influenced EDITOR values

Discovery Timeline

  • 2025-10-30 - CVE-2025-61141 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-61141

Vulnerability Analysis

The vulnerability exists in the openEditor function within sqls-server/sqls 0.2.28. When a user invokes the config command, the application constructs a shell command string by concatenating the value of the EDITOR environment variable with the configuration file path. This string is then passed to sh -c for execution.

Because the EDITOR value is interpolated into the shell command without escaping or argument-array execution, shell metacharacters such as ;, &&, |, and backticks are interpreted by the shell. An attacker who can influence the EDITOR variable can inject arbitrary commands that execute under the privileges of the sqls process.

Root Cause

The root cause is improper neutralization of special elements in a command string [CWE-77]. The application chose sh -c execution with string concatenation rather than invoking the editor binary directly via an argument array (for example, Go's exec.Command(editor, path) without a shell). This design pattern treats untrusted environment input as code.

Attack Vector

Exploitation requires the attacker to control or influence the EDITOR environment variable in the process environment of sqls. This can occur in shared development environments, through malicious project-level configuration, container or CI pipeline manipulation, or via social engineering targeting developers. Once the variable is set with a payload such as vim; <command>, invoking the config command triggers command execution. For detailed technical write-ups, see the DW1 Advisory #54 and Lukmanern CVE-2025-61141 Analysis.

Detection Methods for CVE-2025-61141

Indicators of Compromise

  • Unexpected child processes spawned by sqls such as sh, bash, curl, wget, or nc.
  • EDITOR environment variable values containing shell metacharacters (;, &&, ||, |, backticks, $()).
  • Outbound network connections originating from the sqls process to untrusted hosts.
  • Modifications to user shell profiles or SSH authorized_keys following sqls config invocations.

Detection Strategies

  • Monitor process execution telemetry for sqls parent processes spawning shells or download utilities.
  • Inspect process environment data for EDITOR variables containing command separators or substitution syntax.
  • Audit command-line arguments for invocations matching sh -c patterns originating from sqls.

Monitoring Recommendations

  • Enable detailed process creation logging (Linux auditd execve, macOS Endpoint Security) on developer endpoints running sqls.
  • Alert on sqls writing to or reading from sensitive paths such as ~/.ssh/, ~/.aws/, or shell rc files.
  • Track installations of sqls binaries at version 0.2.28 across managed endpoints via software inventory.

How to Mitigate CVE-2025-61141

Immediate Actions Required

  • Inventory all endpoints and CI runners running sqls-server/sqls 0.2.28 and isolate any that source EDITOR from untrusted contexts.
  • Unset or override the EDITOR environment variable to a known-safe binary path before invoking sqls.
  • Avoid running the sqls config command until a patched version is installed.

Patch Information

At the time of NVD publication, no fixed version is referenced in the advisory. Monitor the GitHub SQLS Server Repository for upstream commits that replace sh -c invocation with direct argument-array execution, and upgrade once a fixed release is published.

Workarounds

  • Set EDITOR to an absolute path to a trusted editor binary (for example, /usr/bin/vim) without any additional arguments or shell metacharacters.
  • Run sqls under a least-privileged user account to limit the blast radius of arbitrary command execution.
  • Restrict the ability of project-level configuration or dotfiles to modify the EDITOR variable in shared environments.
bash
# Configuration example: enforce a safe EDITOR before invoking sqls
export EDITOR=/usr/bin/vim
unset VISUAL
sqls config

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechSqls Server

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.60%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-77
  • Technical References
  • DW1 Advisory #54

  • GitHub SQLS Server Repository

  • Lukmanern CVE-2025-61141 Analysis
  • Latest CVEs
  • CVE-2026-9813: FlowIntel SSRF Vulnerability

  • CVE-2026-4377: D-Link DWR-X1820 Auth Bypass Vulnerability

  • CVE-2026-47074: ex_aws_sns Auth Bypass Vulnerability

  • CVE-2026-46241: Linux Kernel Use-After-Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English