# CVE-2025-58178: Command Injection via sonarqube-scan-action GitHub Action

> CVE-2025-58178: Command Injection via sonarqube-scan-action GitHub Action. CVSS 7.8 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2025-58178
Last updated: 2026-06-17T09:44:01Z

- Published: 2025-09-02 00:51 UTC · Updated: 2026-06-17 09:44 UTC · Assigner: GitHub\_M
- CVSS: 7.8 (CVSS 3.1) · Severity: High · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.1%, 65th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-77

## 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.

## Affected vendors and products

- SonarSource: sonarqube-scan-action

## Tracked companies

- [SonarCloud](https://rewindex.com/company/sonarcloud.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2025-58178)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2025-58178)
- [https://community.sonarsource.com/t/security-advisory-sonarqube-scanner-github-action/147696](https://community.sonarsource.com/t/security-advisory-sonarqube-scanner-github-action/147696)
- [https://github.com/SonarSource/sonarqube-scan-action/commit/016cabf33a6b7edf0733e179a03ad408ad4e88ba](https://github.com/SonarSource/sonarqube-scan-action/commit/016cabf33a6b7edf0733e179a03ad408ad4e88ba)
- [https://github.com/SonarSource/sonarqube-scan-action/pull/200](https://github.com/SonarSource/sonarqube-scan-action/pull/200)
- [https://github.com/SonarSource/sonarqube-scan-action/security/advisories/GHSA-f79p-9c5r-xg88](https://github.com/SonarSource/sonarqube-scan-action/security/advisories/GHSA-f79p-9c5r-xg88)
- [https://sonarsource.atlassian.net/browse/SQSCANGHA-101](https://sonarsource.atlassian.net/browse/SQSCANGHA-101)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2025-58178 · Markdown: https://rewindex.com/cve/CVE-2025-58178.md · JSON: https://rewindex.com/api/v1/cves/CVE-2025-58178 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T03:10:09.429Z
