CVE-2025-61141
JSON

7.5high

sqls-server/sqls is vulnerable to command injection in the config command

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
1.09% (higher than 66% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-f9f4-5859-29mfGO-2025-4088

Description

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
github.com/sqls-server/sqls (Go)0.2.28, all versionsGitHub Advisory Database, Go Vulnerability Database

All scores

CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Classification

CWE-77

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database

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.

Go Vulnerability Database

sqls-server/sqls is vulnerable to command injection in the config command in github.com/sqls-server/sqls

NVD (es)

sqls-server/sqls 0.2.28 es vulnerable a inyección de comandos en el comando config porque la función openEditor pasa la variable de entorno EDITOR y la ruta del archivo de configuración a sh -c sin sanitización, permitiendo a los atacantes ejecutar comandos arbitrarios.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-61141 changed 2025-10-30CVE Terms of Use
GitHub Advisory DatabaseGHSA-f9f4-5859-29mf changed 2025-11-05CC-BY-4.0
Go Vulnerability DatabaseGO-2025-4088 changed 2026-03-03CC-BY-4.0
NVDCVE-2025-61141 changed 2026-11-05Public domain