GHSA-f9f4-5859-29mf

Suggest an improvement
Source
https://github.com/advisories/GHSA-f9f4-5859-29mf
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/10/GHSA-f9f4-5859-29mf/GHSA-f9f4-5859-29mf.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-f9f4-5859-29mf
Aliases
Published
2025-10-30T21:30:46Z
Modified
2025-11-05T22:15:57Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
sqls-server/sqls is vulnerable to command injection in the config command
Details

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.

Database specific
{
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-77"
    ],
    "github_reviewed_at": "2025-10-31T17:55:40Z",
    "nvd_published_at": "2025-10-30T20:15:39Z",
    "severity": "HIGH"
}
References

Affected packages

Go / github.com/sqls-server/sqls

Package

Name
github.com/sqls-server/sqls
View open source insights on deps.dev
Purl
pkg:golang/github.com/sqls-server/sqls

Affected ranges

Affected versions

0.*

0.2.28