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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| github.com/sqls-server/sqls (Go) | 0.2.28, all versions | GitHub Advisory Database, Go Vulnerability Database |
All scores
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-61141 changed 2025-10-30 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-f9f4-5859-29mf changed 2025-11-05 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-4088 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2025-61141 changed 2026-11-05 | Public domain |