{"answers":{"affected":"1 open source package ship an affected version, including SonarSource/sonarqube-scan-action.","exploited":"There is no known exploitation of CVE-2025-58178 in the wild and no public exploit code.","fix":"Upgrade SonarSource/sonarqube-scan-action to 5.3.1 or later.","what":"CVE-2025-58178 is a high-severity command injection vulnerability in SonarSource sonarqube-scan-action, published on 2 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-58178 and fix it if it is affected.\n\nWhat it is: CVE-2025-58178 is a high-severity command injection vulnerability in SonarSource sonarqube-scan-action, published on 2 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-58178 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- SonarSource/sonarqube-scan-action (GitHub Actions): affected from 4.0.0; fixed in 5.3.1\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-58178/ (Markdown: https://insights.sbomify.com/CVE-2025-58178/index.md)","id":"CVE-2025-58178","markdown":"https://insights.sbomify.com/CVE-2025-58178/index.md","name":"CVE-2025-58178","record":{"aliases":["GHSA-f79p-9c5r-xg88"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"GitHub Action","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary commands via unsanitized input in the SonarQube Scan GitHub Action, requiring an upgrade to the latest version.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"description":"SonarQube Server and Cloud is a static analysis solution for continuous code quality and security inspection. In versions 4 to 5.3.0, a command injection vulnerability was discovered in the SonarQube Scan GitHub Action that allows untrusted input arguments to be processed without proper sanitization. Arguments sent to the action are treated as shell expressions, allowing potential execution of arbitrary commands. A fix has been released in SonarQube Scan GitHub Action 5.3.1.","ecosystems":["GitHub Actions"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Command Injection via sonarqube-scan-action GitHub Action","id":"CVE-2025-58178","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"GitHub Actions","product":null,"products":[],"type":"command_injection","year":"2025"},"n_packages":1,"n_references":5,"next":{"headline":"Astro Cloudflare adapter is vulnerable to Server-Side Request Forgery via /_image endpoint","id":"CVE-2025-58179"},"packages":[{"ecosystem":"GitHub Actions","fixed":["5.3.1"],"introduced":["4.0.0"],"last_affected":[],"package":"SonarSource/sonarqube-scan-action","purl":null,"source":"GHSA-f79p-9c5r-xg88"}],"prev":{"headline":"n8n stored cross-site scripting in LangChain Chat Trigger node initialMessages parameter","id":"CVE-2025-58177"},"products":["sonarqube-scan-action"],"published":"2025-09-02","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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-09-02","vendors":["SonarSource"]},"summary":"Attackers can execute arbitrary commands via unsanitized input in the SonarQube Scan GitHub Action, requiring an upgrade to the latest version.","url":"https://insights.sbomify.com/CVE-2025-58178/"}