{"id":"CVE-2025-61141","aliases":["CVE-2025-61141","GHSA-f9f4-5859-29mf","GO-2025-4088"],"related":[],"kind":"vulnerability","state":"published","title":"sqls-server/sqls is vulnerable to command injection in the config command","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\nThis issue has been patched via commit https://github.com/sqls-server/sqls/commit/468a23fc89af89f632cc023a10c031e4bc781797.","format":"markdown","source":"ghsa"},{"lang":"en","text":"sqls-server/sqls is vulnerable to command injection in the config command in github.com/sqls-server/sqls","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-10-30T00:00:00.000Z","modified":"2026-11-05T22:10:00.203Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-77"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"version":"0.2.28","status":"affected"}],"ecosystem":"Go","package":"github.com/sqls-server/sqls","purl":"pkg:golang/github.com/sqls-server/sqls","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/sqls-server/sqls","purl":"pkg:golang/github.com/sqls-server/sqls","source":"go"}],"references":[{"url":"https://github.com/sqls-server/sqls/","tags":[],"sources":["cvelist","nvd"]},{"url":"https://advisory.dw1.io/54/","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lukmanern.github.io/CVE-2025-61141.html","tags":["web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61141","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/sqls-server/sqls/commit/468a23fc89af89f632cc023a10c031e4bc781797","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://advisory.dw1.io/54","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/sqls-server/sqls","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2025-4088","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-f9f4-5859-29mf","tags":["advisory"],"sources":["go"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2025-10-30T21:01:33.407Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-61141","url":"https://www.cve.org/CVERecord?id=CVE-2025-61141","licence":"CVE Terms of Use","modified":"2025-10-30T21:02:01.794Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f9f4-5859-29mf","url":"https://github.com/advisories/GHSA-f9f4-5859-29mf","licence":"CC-BY-4.0","modified":"2025-11-05T22:15:57.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-4088","url":"https://pkg.go.dev/vuln/GO-2025-4088","licence":"CC-BY-4.0","modified":"2026-03-03T04:57:32.300Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-61141","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61141","licence":"Public domain","modified":"2026-11-05T22:10:00.203Z"}],"updatedAt":"2026-11-25T22:59:07.062Z","epss":{"score":0.01086,"percentile":0.6624,"date":"2026-12-01T12:00:22.000Z"}}