# CVE-2025-61141: sqls-server/sqls is vulnerable to command injection in the config command

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.09%, higher than 66% of CVEs (2026-12-01)
- Published: 2025-10-30T00:00:00.000Z
- Modified: 2026-11-05T22:10:00.203Z
- Also known as: GHSA-f9f4-5859-29mf, GO-2025-4088
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- github.com/sqls-server/sqls (Go): 0.2.28; all versions

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/sqls-server/sqls/>
- <https://advisory.dw1.io/54/>
- <https://lukmanern.github.io/CVE-2025-61141.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-61141> (advisory)
- <https://github.com/sqls-server/sqls/commit/468a23fc89af89f632cc023a10c031e4bc781797> (fix, web)
- <https://advisory.dw1.io/54> (web)
- <https://github.com/sqls-server/sqls> (package)
- <https://pkg.go.dev/vuln/GO-2025-4088> (web)
- <https://github.com/advisories/GHSA-f9f4-5859-29mf> (advisory)

## Sources

- CVE List: [CVE-2025-61141](https://www.cve.org/CVERecord?id=CVE-2025-61141), CVE Terms of Use, modified 2025-10-30
- GitHub Advisory Database: [GHSA-f9f4-5859-29mf](https://github.com/advisories/GHSA-f9f4-5859-29mf), CC-BY-4.0, modified 2025-11-05
- Go Vulnerability Database: [GO-2025-4088](https://pkg.go.dev/vuln/GO-2025-4088), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2025-61141](https://nvd.nist.gov/vuln/detail/CVE-2025-61141), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2025-61141 · Whole record: https://cve.day/CVE-2025-61141.json · Rebuilt by cve.day 2026-11-25T22:59:07.062Z
