Security Vulnerability Report
中文
CVE-2025-61141 CVSS 7.5 HIGH

CVE-2025-61141

Published: 2025-10-30 20:15:39
Last Modified: 2026-04-15 00:35:42

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.

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Configurations (Affected Products)

No configuration data available.

sqls-server/sqls 0.2.28

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
export EDITOR='; cat /etc/passwd; echo '

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-61141", "sourceIdentifier": "[email protected]", "published": "2025-10-30T20:15:39.263", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-77"}]}], "references": [{"url": "https://advisory.dw1.io/54/", "source": "[email protected]"}, {"url": "https://github.com/sqls-server/sqls/", "source": "[email protected]"}, {"url": "https://lukmanern.github.io/CVE-2025-61141.html", "source": "[email protected]"}]}}