CVE-2025-61141

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…

High · published October 30, 2025

CVSS v3.1
7.5
EPSS
1%
Percentile
65.0
In the wild
Unconfirmed
What it is

⚡ An overlooked command injection flaw lurks in sqls-server/sqls 0.2.28! The openEditor function is like a delivery service that accepts any package without checking the label. ✉️ Imagine a restaurant that allows customers to write their own dish orders directly into the chef's notebook. If they don't validate those orders, someone could sneak in a recipe for chaos instead of a delicious meal! With this vulnerability, an attacker could execute arbitrary commands on the server, potentially gaining control over sensitive data or disrupting services. This could lead to devastating consequences like data breaches or complete system compromise. The stakes are high!

Put simply

Imagine a restaurant that allows customers to write their own dish orders directly into the chef's notebook. If they don't validate those orders, someone could sneak in a recipe for chaos instead of a delicious meal! The command injection vulnerability arises because the openEditor function passes the EDITOR environment variable and config file path to the shell (sh -c) without proper sanitization. This oversight allows attackers to inject malicious commands through specially crafted inputs.

What to do

With this vulnerability, an attacker could execute arbitrary commands on the server, potentially gaining control over sensitive data or disrupting services. This could lead to devastating consequences like data breaches or complete system compromise. The stakes are high! To remediate this issue, upgrade to a patched version of sqls-server/sqls. Ensure that the EDITOR variable and config file paths are escaped or validated to prevent command injection. Conduct a thorough security review of your application to identify similar vulnerabilities. You've got this! With these fixes in place, your application will be more secure and resilient. 🛡️

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.01086 · 65.0th percentile
Published
2025-10-30T00:00Z
EPSS history
Timeline
  • 30 OCT 00:00Z
    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…
    cvelistv5