Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/sqls-server/sqls
  4. ›
  5. CVE-2025-61141

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

October 30, 2025 (updated November 5, 2025)

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.

References

  • advisory.dw1.io/54
  • github.com/advisories/GHSA-f9f4-5859-29mf
  • github.com/sqls-server/sqls
  • github.com/sqls-server/sqls/commit/468a23fc89af89f632cc023a10c031e4bc781797
  • lukmanern.github.io/CVE-2025-61141.html
  • nvd.nist.gov/vuln/detail/CVE-2025-61141
  • pkg.go.dev/vuln/GO-2025-4088

Code Behaviors & Features

Detect and mitigate CVE-2025-61141 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

Version 0.2.28

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')

Source file

go/github.com/sqls-server/sqls/CVE-2025-61141.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 06 Dec 2025 12:19:36 +0000.