CVE-2025-59844 Argument injection vulnerability in SonarQube Scan Action
Attackers can execute arbitrary commands on Windows runners via the args parameter, exposing sensitive data and compromising the environment.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-59844?
CVE-2025-59844 is a high-severity command injection vulnerability in SonarSource sonarqube-scan-action, published on 26 Sep 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
SonarQube Server and Cloud is a static analysis solution for continuous code quality and security inspection. A command injection vulnerability exists in SonarQube GitHub Action in version 4.0.0 to before version 6.0.0 when workflows pass user-controlled input to the args parameter on Windows runners without proper validation. This vulnerability bypasses a previous security fix and allows arbitrary command execution, potentially leading to exposure of sensitive environment variables and compromise of the runner environment. The vulnerability has been fixed in version 6.0.0. Users should upgrade to this version or later.
Weakness: CWE-78
Which versions are affected by CVE-2025-59844?
1 open source package ship an affected version, including SonarSource/sonarqube-scan-action.
| Package | Affected | Fixed in |
|---|---|---|
SonarSource/sonarqube-scan-action GitHub Actions | From 4.0.0 | 6.0.0 |
How do I fix CVE-2025-59844?
Upgrade SonarSource/sonarqube-scan-action to 6.0.0 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2025-59844 being exploited?
There is no known exploitation of CVE-2025-59844 in the wild and no public exploit code.
Sources
Also known as GHSA-5xq9-5g24-4g6f.