CVE-2025-58178: SonarSource sonarqube-scan-action · Command Injection
Affects SonarSource sonarqube-scan-actionSource CVE Database V5
Not known to be exploited · CVSS 7.8 High · fixed in 5.3.1 : patch SonarSource sonarqube-scan-action soon.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 1.0% chance of exploitation in 30 days – higher than 65% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.3.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 2 Sep 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
AI-suggested
European organizations should immediately audit their CI/CD pipelines to identify usage of the SonarQube Scan GitHub Action versions 4 through 5.3.0. The primary mitigation is to upgrade to version 5.3.1 or later, which contains the fix for this command injection vulnerability. Until the upgrade is applied, organizations should restrict access to the GitHub repositories and workflows that utilize this action to trusted personnel only. Implement strict input validation and sanitization on any parameters passed to the action, avoiding the use of untrusted or user-supplied inputs. Employ GitHub Actions workflow permissions to limit the scope of what actions can execute and use branch protection rules to prevent unauthorized workflow changes. Monitoring CI/CD logs for unusual command executions or anomalies can help detect exploitation attempts. Additionally, consider isolating build environments and using ephemeral runners to reduce the impact of potential compromise. Regularly review and update dependencies and third-party actions to minimize exposure to known vulnerabilities.
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.
References
- github.com/SonarSource/sonarqube-scan-action/security/advisories/GHSA-f79p-9c5r-xg88 (opens in a new tab)
- github.com/SonarSource/sonarqube-scan-action/pull/200 (opens in a new tab)
- github.com/SonarSource/sonarqube-scan-action/commit/016cabf33a6b7edf0733e179a03ad408ad4e88ba (opens in a new tab)
- community.sonarsource.com/t/security-advisory-sonarqube-scanner-github-action/147696 (opens in a new tab)
- sonarsource.atlassian.net/browse/SQSCANGHA-101 (opens in a new tab)