CVE-2025-61141: Github.com/sqls server/sqls Sqls-server/sqls Is Vulnerable To Command Vulnerability

HIGH
Advisory Identifier: GHSA-f9f4-5859-29mf
CVSS 7.5
CWE-77
Published
Advisory Summary

CVE-2025-61141 is a HIGH (CVSS 7.5) sqls-server/sqls is vulnerable to command vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Github.com/sqls server/sqls libraries in the Go ecosystem. The issue involves sqls-server/sqls is vulnerable to command injection in the config command. Remediation is available in the latest vendor maintenance releases.

CVE-2025-61141 at a Glance

CVE Identifier CVE-2025-61141
GHSA Identifier GHSA-f9f4-5859-29mf
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Product Github.com/sqls server/sqls
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2025-61141

To remediate this vulnerability, upgrade all affected Github.com/sqls server/sqls dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/sqls-server/sqls fixed: Latest secure release
Upgrade github.com/sqls-server/sqls to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/sqls-server/sqls

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-61141, inspect your project dependencies for Github.com/sqls server/sqls:

inspect dependencies for github.com/sqls-server/sqls

Analyze the terminal output to locate any version of Github.com/sqls server/sqls in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In Github.com/sqls server/sqls, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

sqls-server/sqls 0.2.28 is vulnerable to command injection in the config command because the openEditor function passes the EDITOR environment variable and config file path to sh -c without sanitization, allowing attackers to execute arbitrary commands. This issue has been patched via commit https://github.com/sqls-server/sqls/commit/468a23fc89af89f632cc023a10c031e4bc781797.

CVE-2025-61141 Affected Github.com/sqls server/sqls Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
github.com/sqls-server/sqls
Go
0.2.28
All 1 versions
0.2.28
None specified

References

Frequently Asked Questions

What is CVE-2025-61141?
CVE-2025-61141 is a security vulnerability in Github.com/sqls server/sqls involving sqls-server/sqls is vulnerable to command injection in the config command under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection').
Which Github.com/sqls server/sqls versions are affected?
Affected versions include releases prior to current release patches across affected packages: github.com/sqls-server/sqls.
What version fixes CVE-2025-61141?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/sqls-server/sqls affected?
Yes, github.com/sqls-server/sqls is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2025-61141?
CVE-2025-61141 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2025-61141?
CVE-2025-61141 is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') (The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.).
How can I check Go dependencies for CVE-2025-61141?
Run the dependency tree command: 'inspect dependencies for github.com/sqls-server/sqls'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-f9f4-5859-29mf",
  "modified" : "2025-11-05T22:15:57Z",
  "published" : "2025-10-30T21:30:46Z",
  "aliases" : [ "CVE-2025-61141" ],
  "summary" : "sqls-server/sqls is vulnerable to command injection in the config command ",
  "details" : "sqls-server/sqls 0.2.28 is vulnerable to command injection in the config command because the openEditor function passes the EDITOR environment variable and config file path to sh -c without sanitization, allowing attackers to execute arbitrary commands.\n\nThis issue has been patched via commit https://github.com/sqls-server/sqls/commit/468a23fc89af89f632cc023a10c031e4bc781797.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/sqls-server/sqls"
    },
    "versions" : [ "0.2.28" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-61141"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sqls-server/sqls/commit/468a23fc89af89f632cc023a10c031e4bc781797"
  }, {
    "type" : "WEB",
    "url" : "https://advisory.dw1.io/54"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sqls-server/sqls"
  }, {
    "type" : "WEB",
    "url" : "https://lukmanern.github.io/CVE-2025-61141.html"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2025-4088"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-77" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-10-31T17:55:40Z",
    "nvd_published_at" : "2025-10-30T20:15:39Z"
  }
}