{"answers":{"affected":"3 open source packages ship an affected version, including github.com/sqls-server/sqls.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-61141 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2025-61141 is a high-severity command injection vulnerability in n/a, published on 30 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-61141 and fix it if it is affected.\n\nWhat it is: CVE-2025-61141 is a high-severity command injection vulnerability in n/a, published on 30 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-61141 exists.\n\nAffected packages and fixed versions:\n- github.com/sqls-server/sqls (Go): affected all versions; no fix listed\n- github.com/sqls-server/sqls (Go): affected all versions; no fix listed\n- github.com/sqls-server/sqls (Go): affected all versions; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-61141/ (Markdown: https://insights.sbomify.com/CVE-2025-61141/index.md)","id":"CVE-2025-61141","markdown":"https://insights.sbomify.com/CVE-2025-61141/index.md","name":"CVE-2025-61141","record":{"aliases":["GHSA-f9f4-5859-29mf","GO-2025-4088"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"SQL client tool","requires_auth":"none","summary":"Attackers can execute arbitrary commands via the EDITOR environment variable in the sqls-server/sqls tool, requiring an upgrade to mitigate.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"sqls-server/sqls is vulnerable to command injection in the config command","id":"CVE-2025-61141","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"command_injection","year":"2025"},"n_packages":3,"n_references":3,"next":{"headline":"Null dereference in n/a","id":"CVE-2025-61143"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":[],"last_affected":[],"package":"github.com/sqls-server/sqls","purl":null,"source":"GHSA-f9f4-5859-29mf"},{"ecosystem":"Go","fixed":[],"introduced":[],"last_affected":[],"package":"github.com/sqls-server/sqls","purl":"pkg:golang/github.com/sqls-server/sqls","source":"GHSA-f9f4-5859-29mf"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/sqls-server/sqls","purl":"pkg:golang/github.com/sqls-server/sqls","source":"GO-2025-4088"}],"prev":{"headline":"JSONPath vulnerable to Prototype Pollution due to insufficient input validation of object keys in lib/index.js","id":"CVE-2025-61140"},"products":["n/a"],"published":"2025-10-30","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-30","vendors":["n/a"]},"summary":"Attackers can execute arbitrary commands via the EDITOR environment variable in the sqls-server/sqls tool, requiring an upgrade to mitigate.","url":"https://insights.sbomify.com/CVE-2025-61141/"}