Skip to main content
VulnerabilityPublished

CVE-2025-58178: SonarSource sonarqube-scan-action · Command Injection

Affects SonarSource sonarqube-scan-actionSource CVE Database V5

0

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

CVSS 3.1 base score
7.8High
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Sep 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

Community reviews

Loading reviews…