CVE-2025-58178: Command Injection via sonarqube-scan-action GitHub Action
Impact 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. Patches A fix has been released in SonarQube Scan GitHub Action v5.3.1.
Published Sep 2, 2025
Affected packages
SonarSource/sonarqube-scan-action
- Ecosystem
- GitHub Actions
- Affected
- >= 4.0.0, <= 5.3.0
- Fixed in
- 5.3.1
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
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.
Patches
A fix has been released in SonarQube Scan GitHub Action v5.3.1.
Credited to Torbjorn-Svensson.
References
- https://github.com/SonarSource/sonarqube-scan-action/security/advisories/GHSA-f79p-9c5r-xg88
- https://github.com/SonarSource/sonarqube-scan-action/pull/200
- https://github.com/SonarSource/sonarqube-scan-action/commit/016cabf33a6b7edf0733e179a03ad408ad4e88ba
- https://community.sonarsource.com/t/security-advisory-sonarqube-scanner-github-action/147696
- https://sonarsource.atlassian.net/browse/SQSCANGHA-101
- https://github.com/advisories/GHSA-f79p-9c5r-xg88
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
