SonarQube Scanner GitHub Action Command Injection Vulnerability

Vulnerability

A command injection vulnerability has been identified in the SonarQube Scanner GitHub Action, affecting versions 4.0.0 through 5.3.0. The vulnerability allows untrusted input arguments to be processed without adequate sanitization, treating them as shell expressions and potentially enabling the execution of arbitrary commands.

Impact

Exploitation of this vulnerability allows for command injection, where an attacker can execute arbitrary commands on the server where the GitHub Action is running.

Reproduction

The vulnerability can be reproduced by using the SonarQube Scanner GitHub Action with input arguments that include crafted payloads exploiting the command injection flaw. This can be done by pushing a commit to a repository that includes a GitHub Actions workflow file referencing the vulnerable version of the SonarQube Scanner Action. The workflow can be triggered manually or automatically, depending on the repository settings.

Remediation

Users can upgrade to SonarQube Scanner GitHub Action version 5.3.1 or later, where this vulnerability has been patched.

Added: Sep 2, 2025, 1:19 AM
Updated: Sep 2, 2025, 1:19 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
10.0
exploitability
6.3
remediation
7.7
relevance
0.4
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.